The modern build of lodash’s _.flatten
exported as a Node.js/io.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.flatten
In Node.js/io.js:
var flatten = require('lodash.flatten');
See the documentation or package source for more details.
# lodash.flatten v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. ## Installation Using npm: ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.flatten ``` In Node.js/io.js: ```js var flatten = require('lodash.flatten'); ``` See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.flatten) for more details.