Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

toarr

jshanson79MIT0.0.1

Convert array-likes into arrays.

array, array-likes, convert

readme

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