delete object from an array of objects javascript code example Example: javascript delete object from array someArray.splice(x, 1);