Nightmarish Pawnshop Mystic
    Have ideas to improve npm?Join in the discussion! »

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

    Keywords

    Install

    npm i horzcat

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar