The lodash method `_.compact` exported as a module.
npm install lodash.compactThe lodash method _.compact exported as a Node.js module.
Using npm:
``bash`
$ {sudo -H} npm i -g npm
$ npm i --save lodash.compact
In Node.js:
`js``
var compact = require('lodash.compact');
See the documentation or package source for more details.