Checks if any element in the array inside the Opt satisfies the predicate. Similar to Array.some from JavaScript.
Array.some
opt([1]).existsIn(x => x > 0) // Some(true)opt([-1]).existsIn(x => x > 0) // Some(false)opt([]).existsIn(x => x > 0) // Some(false)none.existsIn(x => x > 0) // None
Checks if any element in the array inside the Opt satisfies the predicate. Similar to
Array.some
from JavaScript.