fj-flatten 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]