Array.prototype.filter

Run Settings
LanguageJavascript
Language Version
Run Command
console.log("Hello World!"); let foo = [{id: 1, val:10},{id:2, val:20},{id:3, val: 30}, {id:4, val: 40}] foo = foo.filter(ele => { if(ele.id !== 2){ return ele } }) console.log(foo)
Editor Settings
Theme
Key bindings
Full width
Lines