Filter a Javascript Array
Filter a Javascript Array
Following code filters the array.
var result = jsObjects.filter(obj => {
return obj.b === 6
})
Following code filters the array.
var result = jsObjects.filter(obj => {
return obj.b === 6
})
Leave a comment