For empty array ([]) returns None, otherwise acts same as opt.
[]
optEmptyArray(undefined) // NoneoptEmptyArray([]) // NoneoptEmptyArray([1]) // Some([1]) Copy
optEmptyArray(undefined) // NoneoptEmptyArray([]) // NoneoptEmptyArray([1]) // Some([1])
Generated using TypeDoc
For empty array (
[]
) returns None, otherwise acts same as opt.