Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove several elements from array

var array = [1, 2, 3, 4];var evens = _.remove(array, function(n) { return n % 2 === 0;});console.log(array);// => [1, 3]console.log(evens);// => [2, 4]
Source by love2dev.com #
 
PREVIOUS NEXT
Tagged: #js #remove #elements #array
ADD COMMENT
Topic
Name
1+2 =