solo-flatten

1.0.0 • Public • Published

solo-flatten

Takes a nested array and returns a single flattened array

import flatten from 'solo-flatten';
 
const nest = [1, [2, 3, 4], [5, 6, 7], 8, 9, 10];
flatten(nest);
// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Package Sidebar

Install

npm i solo-flatten

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.01 kB

Total Files

3

Last publish

Collaborators

  • mopeyjellyfish