0.2.1 • Published 6 years ago

@syednashikaman/flatten v0.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Flatten

A helper function that lets you recursively flatten arrays.

How to Use

const flatten = require('@syednashikaman/flatten');

const nestedArray = [1, [2, 3, [4, 5, [6, 7]]]];
flatten(nestedArray); // [1, 2, 3, 4, 5, 6, 7]

How to Install

$ npm install --save @syednashikaman/flatten

or

$ yarn add @syednashikaman/flatten