node package manager

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]