Search
 
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
Name
9+5 =