lodash-transpose

0.2.1 • Public • Published

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]]

Readme

Keywords

Package Sidebar

Install

npm i lodash-transpose

Weekly Downloads

49

Version

0.2.1

License

MIT

Last publish

Collaborators

  • jlmorgan