How to remove a specific item from an array
How to remove a specific item 9 from an array arr?
There are different methods which we can use to remove elements from an arraysIf we want new array without specific value
const result =
arr.filter((item) =>{ return item !== 9;
});
Comments