CommonIsArray
Callable
Parameters
arg: unknown
The to-be validated object
Returns arg is readonly unknown[]
Whether the passed object is a (potentially readonly) array
The to-be validated object
Whether the passed object is a (potentially readonly) array
A version of Array.isArray more friendly towards readonly arrays.