Neighbourhood Party Manager
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fromarraypublic

    fromarray

    The opposite of toarray

    Build Status

    Usage:

    var fromarray = require('fromarray');
    
    console.log(fromarray([]));       // undefined
    console.log(fromarray(['test']);  // 'test'
    console.log(fromarray([1,2,3]));  // [1,2,3]
    

    Possibly useful when you have an array but want a scalar.

    License

    MIT

    install

    npm i fromarray

    Downloadsweekly downloads

    1

    version

    0.1.0

    license

    MIT

    homepage

    github.com

    last publish

    collaborators

    • avatar