Converting Array to Option<NonEmptyArray> with a Simple Predicate

I was about to ask if there is built-in tool to do Array -> Option<NonEmptyArray>, then realized is as simple as const maybeNonEmptyArray = Option.liftPredicate(A.isNonEmptyArray)
Was this page helpful?