1.0.4 • Published 12 months ago

transpose-2d-array v1.0.4

Weekly downloads
9
License
ISC
Repository
github
Last release
12 months ago

You can use this method to transpose 2D array.

Build Status install size

Install

$ npm i transpose-2d-array

Usage

import transpose from "transpose-2d-array"

or

const transpose = require("transpose-2d-array")
const arr = [
  [[1], [2]],
  [[1], [2]],
  [[1], [2]],
  [[1], [2]]
]

const result = transpose(arr)

// result will be
//
// [
//   [[1], [1], [1], [1]],
//   [[2], [2], [2], [2]]
// ]
1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago