remove object from list javascript code example Example: javascript pop object from array array.pop()