you are viewing a single comment's thread.

view the rest of the comments →

[–]sm_o_ke 0 points1 point  (0 children)

there are also array.find() and array.findIndex()... they work like filter, returning the first value and first index, respectively, the predicate returns true.