Retrieves a value as an array if it is one, otherwise returns undefined.
undefined
The type of array elements
The value to check
Optional
Optional type guard to validate array elements
The value if it is an array (with validated elements if is provided), undefined otherwise
is
Retrieves a value as an array if it is one, otherwise returns
undefined.