delete element from array of objects javascript code example Example: javascript pop object from array array.pop()