Lodash.js - compact() function
By Bartłomiej Bartel
2,825p
20 Nov 2015 07:34
A simple Lodash.js example of the compact() function, which deletes all the falsy values from an array.
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
Enter a description.