true
, then item will be excluded from the result, otherwise it will be included. Note that only first matching item is removed; if multiple items matches the criteria, then only first one is removed. If no matching item is found, then the original list is returned unchanged.REMOVE_ITEM(animals, item.name == "rat")
[{"name":"dog","weight":123},{"name":"cat","weight":48},{"name":"pig","weight":230}]
REMOVE_ITEM(animals, index == 1)
[{"name":"dog","weight":123},{"name":"rat","weight":10},{"name":"pig","weight":230}]
REMOVE_ITEM<product>(products, product.name == "Swiss army knife")
[{"name":"Duct tape","category":"Utility"},{"name":"Glue","category":"Utility"}]
REMOVE_ITEM<product, position>(products, position > 1 && product.category == "Utility")
[{"name":"Duct tape","category":"Utility"},{"name":"Swiss army knife","category":"Tools"}]