167
rated 0 times
[
169]
[
2]
/ answers: 1 / hits: 19217
/ 10 Years ago, wed, may 28, 2014, 12:00:00
I have an array of objects in javascript. Each object is of the form
obj {
location: left, // some string
weight: 0 // can be zero or non zero
}
I want to return a filtered copy of the array where the objects with a weight property of zero are removed
What is the clean way to do this with underscore?
More From » underscore.js