npm.io
0.2.1 • Published 10 years ago

lodash-transpose

Licence
MIT
Version
0.2.1
Deps
1
Vulns
0
Weekly
0
Stars
2

lodash-transpose Build Status

Adds matrix transpose functionality to lodash.

Usage

var _ = require("lodash-transpose"); // Includes lodash

var matrix = [
  [1, 2, 3],
  [4, 5, 6]
];

_.isMatrix(matrix); // => true
_.transpose(matrix); // => [[1, 4], [2, 5], [3, 6]]

Keywords