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
You could also try doing something like this:
var myArray = [{'name': 'test'}, {'name':'test2'}]; var myObject = {'name': 'test'}; myArray.splice(myArray.indexOf(myObject),1);