how to delete number from array by id javascript code example Example: remove a specific element from an array array.splice(array.indexOf(item), 1);