1let originalArray = [
2 {name: 'John', age: 23, color: 'red'},
3 {name: 'Ann', age: 21, color: 'blue'},
4 {name: 'Mike', age: 13, color: 'green'}
5];
6
7let filteredArray = originalArray.filter(value => value.age > 18);
1var arr = ['bill', 'is', 'not', 'lame'];
2
3arr.splice(output_items.indexOf('not'), 1);
4
5console.log(arr) //returns ['bill', 'is', 'lame']
1var id = 88;
2
3for(var i = 0; i < data.length; i++) {
4 if(data[i].id == id) {
5 data.splice(i, 1);
6 break;
7 }
8}