Checks if all elements in the array inside the Opt satisfy the predicate. Similar to Array.every from JavaScript.
Array.every
opt([1]).forAllIn(x => x > 0) // Some(true)opt([-1]).forAllIn(x => x > 0) // Some(false)opt([]).forAllIn(x => x > 0) // Some(true)none.forAllIn(x => x > 0) // None
Checks if all elements in the array inside the Opt satisfy the predicate. Similar to
Array.every
from JavaScript.