node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

lodash-transpose

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