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);
    

/flattenarrayes6/

    Package Sidebar

    Install

    npm i flattenarrayes6

    Weekly Downloads

    7

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    2.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • ioedeveloper