lodash.compact

The lodash method `_.compact` exported as a module.

Usage no npm install needed!

<script type="module">
  import lodashCompact from 'https://cdn.skypack.dev/lodash.compact';
</script>

README

lodash.compact v3.0.1

The lodash method _.compact exported as a Node.js module.

Installation

Using npm:

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

In Node.js:

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

See the documentation or package source for more details.