arrify-yh

    0.0.1 • Public • Published

    arrify Build Status

    Convert a value to an array

    Install

    $ npm install --save arrify
    

    Usage

    const arrify = require('arrify');
    
    arrify('unicorn');
    //=> ['unicorn']
    
    arrify(['unicorn']);
    //=> ['unicorn']
    
    arrify(null);
    //=> []
    
    arrify(undefined);
    //=> []

    Supplying null or undefined results in an empty array.

    License

    MIT © Sindre Sorhus

    Install

    npm i arrify-yh

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    2.34 kB

    Total Files

    4

    Last publish

    Collaborators

    • lucas_m