I have an array like
vendors = [{ Name: \'Magenic\', ID: \'ABC\' }, { Name: \'Microsoft\', ID: \'DEF\' } // and so on... ];
var without2 = (arr, args) => arr.filter(v => v.id !== args.id); Example:
var without2 = (arr, args) => arr.filter(v => v.id !== args.id);
without2([{id:1},{id:1},{id:2}],{id:2})
Result: without2([{id:1},{id:1},{id:2}],{id:2})