Filter

Run Settings
LanguageJavaScript
Language Version
Run Command
const listAverage = [ { "item_code": "", "prices": 0, "hpp": 0, "qty": 0 }, { "item_code": "10100101", "prices": 21258, "hpp": 1000, "qty": 10 }, { "item_code": "10100102", "prices": 25510, "hpp": 500000, "qty": 10 }, { "item_code": "10100103", "prices": 29762, "hpp": 3000, "qty": 10 } ]; let grossProfitArr = listAverage.filter(function(obj) { return obj.item_code !== "10100102"; }); console.log(grossProfitArr);
Editor Settings
Theme
Key bindings
Full width
Lines