node package manager
Loosely couple your services. Use Orgs to version and reuse your code. 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]