var data = {id:123,no:145,name:6878,suffix:null}; var id = "0,1"; id = id.split(","); var i = 0; for (var n in data) { if (id.indexOf(i.toString())!=-1) delete data[n]; i++; } console.log(data);