How can I remove an object from an array?(如何从数组中删除对象?)
I wish to remove the object that includes name Kristian
from someArray
.(我希望从someArray
删除包含名称Kristian
的对象。) For example:(例如:)
someArray = [{name:"Kristian", lines:"2,5,10"},
{name:"John", lines:"1,19,26,96"}];
I want to achieve:(我要实现:)
someArray = [{name:"John", lines:"1,19,26,96"}];
ask by Clem translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…