This is not an array. It is an invalid Object.
I suppose you meant:
someArray = [{name:"Kristian", lines:"2,5,10"},
{name:"John", lines:"1,19,26,96"}];
You can use several methods to remove an item from it:
//1
someArray.shift(); // first element removed
//2
someArray = someArray.slice(1); // first element removed
//3
someArray.splice(0,1); // first element removed
//4
someArray.pop(); // last element removed
If you want to remove element at position x
, use:
someArray.splice(x,1);
Reply to the comment of @chill182: you can remove one ore more elements from an array using Array.filter
(see MDN), e.g.
someArray = [{name:"Kristian", lines:"2,5,10"},
{name:"John", lines:"1,19,26,96"},
{name:"Brian",lines:"3,9,62,36" }]
johnRemoved = someArray
.filter(function (el) {
return el.name !== "John";
});