fromarray

0.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i fromarray

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • deathcap