remove object javascript but not remove another object code example Example: remove object from array javascript someArray.splice(x, 1);