1.1.0 • Published 9 years ago
flattery v1.1.0
flattery
Flattens an array of nested arrays into a list of scalar elements
Instructions
Install via npm:
npm install flattery --saveUse in your Node scripts like this:
const flattery = require('flattery');
var flattened = flattery([[1, 2, [3]], 4]); // -> [1, 2, 3, 4]License
Copyright (c) Claudio Procida 2015