DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove falsy values from array with lodash
_.compact([0, 1, false, 2, '', 3]); // => [1, 2, 3]
Source by lodash.com #
PREVIOUS
NEXT
Tagged:
#remove
#falsy
#values
#array
#lodash
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit