null
if not found.true
, then item will be included to the result, otherwise it will be excluded.FIND(animals, item.name == "cat")
{"name":"cat","weight":48}
FIND(animals, item.name == "horse")
undefined
FIND(animals, index == 2)
{"name":"rat","weight":10}
FIND<product>(products, product.name == "Duct tape")
{"name":"Duct tape","category":"Utility"}
FIND<product, position>(products, position == 1)
{"name":"Swiss army knife","category":"Tools"}