node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

fj-flatten

fj-flatten

Build Status npm version

FP-style array flatten

Installation

npm install fj-flatten --save

Usage

var flatten = require('fj-flatten');
 
flatten([[1], 2, [3 , [4]]]); // => [1, 2, 3, 4]