SyntaxFix
Write A Post
Hire A Developer
Questions
As a variant
delete array[array.indexOf(item)];
If you know nothing about delete operator, DON'T use this.
delete