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?