How can I remove an object from an array? I wish to remove the object that includes name Kristian from someArray. For example:
Kristian
someArray
som
There seems to be an error in your array syntax so assuming you mean an array as opposed to an object, Array.splice is your friend here:
someArray = [{name:"Kristian", lines:"2,5,10"}, {name:"John", lines:"1,19,26,96"}]; someArray.splice(1,1)