Say I have this code
var arr = [{id:1,name:'a'},{id:2,name:'b'},{id:3,name:'c'}];
and I want to remove the item with id = 3 from the array. Is there a way of doing this without splicing? Maye something using underscore or something like that?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…