horzcat

1.0.0 • Public • Published

horzcat

Horizontally concatenate arrays

Written with performance in mind, using array preallocation and simple for loops to maximize speed.

Getting Started

npm install horzcat

Usage

const horzcat = require('horzcat');

let a = [
    [0, 1, 2],
    [3, 4, 5]
];

let b = [
    [6, 7],
    [8, 9],
];

let c = horzcat(a, b);
console.log(c);
/*
[
    [ 0, 1, 2, 6, 7 ],
    [ 3, 4, 5, 8, 9 ]
]
*/

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i horzcat

      Weekly Downloads

      0

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      3.37 kB

      Total Files

      4

      Last publish

      Collaborators

      • pwstegman