jonschlinkert

jonschlinkert/arrayify-compact

Similar to Lo-Dash's compact method, but coerces values to arrays first, then returns a flattened array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are all falsey

JavaScript
5
1
MIT License

Arrayify-compact is a JavaScript utility that coerces any given value into a flattened array and removes all falsey values (false, null, 0, "", undefined, NaN). It is designed for developers working with JavaScript or Node.js who need a quick way to clean and flatten arrays, similar to Lodash's compact method but with added type coercion.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of jonschlinkert/arrayify-compact

Account's avatar
Flatten nested arrays
Account's avatar
Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.
Account's avatar
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Account's avatar
simple, flexible, fun test framework

Support the repos that depend on jonschlinkert/arrayify-compact

Top contributors

jonschlinkert's profile
jonschlinkert
2 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet