flattery
Flattens an array of nested arrays into a list of scalar elements
Instructions
Install via npm
:
npm install flattery --save
Use in your Node scripts like this:
const flattery = ; var flattened = ; // -> [1, 2, 3, 4]
License
Copyright (c) Claudio Procida 2015