lodash.compact

The modern build of lodash’s _.compact as a module.

lodash.compact v3.0.0

The modern build of lodash’s _.compact exported as a Node.js/io.js module.

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.compact

In Node.js/io.js:

var compact = require('lodash.compact');

See the documentation or package source for more details.