1.0.0 • Published 9 years ago

array-compact v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

array-compact

Return an array copy without falsy values.

Installation

$ npm install array-compact --save

Usage

const compact = require('array-compact');

let arr = ['', 0, 1, 'abc', false, true];

compact(arr); // => [1, 'abc', true]

Tests

$ make test

License

array-compact is released under the MIT license.