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

Package Sidebar

Install

npm i toarr

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jshanson7