isArray()
Last updated
Was this helpful?
Last updated
Was this helpful?
isArray()
Checks if value is of the type obtained from its equal to 'array'
or an type and passes the test method.
Type
=
any
The Type
generic type variable indicates the element type of the given via the , by default is .
Payload
extends
object
=
object
value: any
callback: ResultCallback<any, Payload>
payload?: Payload
value is Array<Type>
array
callback
and payload
The Payload
generic type variable constrained by indicates the type of optional parameter of the supplied function and optional parameter of the function from which it captures its value.
The value of type to check.
A callback function
of type with parameters, the that has been checked, the of this check, and of generic type variable with optional properties from the provided , to handle them before the return. By default, it uses function.
An optional of the generic type variable is assigned to the of the given function.
The return type is a because of used the is
operator indicating the value is an that takes generic type variable by default of value as the type of its elements.
The return value is a indicating whether the provided is an .