Wondering what’s next for npm?Check out our public roadmap! »

    toarr

    0.0.1 • Public • Published

    toarr NPM version

    Convert array-likes into arrays.

    import toarr from 'toarr';
     
    const args = (function () { return arguments; })('a', 'b', 'c');
    console.log(args.constructor === Array); // => false;
     
    const arr = toarr(args);
    console.log(arr.constructor === Array); // => true;

    Installation

    npm i toarr --save
    

    License

    MIT

    Install

    npm i toarr

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar