Find a first item which holds true for a given predicate and return it wrapped in Some. Return None when no match is found.
find((x: number) => x > 0)([-1, 0, 1]) // Some(1)find((x: number) => x > 5)([0, 3, 5]) // None
Find a first item which holds true for a given predicate and return it wrapped in Some. Return None when no match is found.