var array = [{
name: "Mango",
weight: "15gm"
}, {
name: "Banana",
weight: "10gm"
}, {
name: "Apple",
weight: "15gm"
}, {
name: "Grapes",
weight: "5gm"
}, {
name: "Banana",
weight: "15gm"
}];
I need to filter out everything that is not Banana.