Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 393 Bytes

README.markdown

File metadata and controls

16 lines (10 loc) · 393 Bytes

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]