Nietzsche's Preposterous Moustache
Miss any of our Open RFC calls?Watch the recordings here! »

flattenarrayes6

1.3.0 • Public • Published

FLATTEN ARRAY

A javascript library that flattens a nested array into a single flat array.

How To Use

  1. run npm install flattenarrayes6 to download and install package.
  2.  const flat = require('flattenarrayes6');
     const nested_array = [1,[2,3],[5,[6,7],[8,9]]];
     const flattened_array = flat(nested_array);
     console.log(flattened_array);
    

Install

npm i flattenarrayes6

DownloadsWeekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • avatar