ForEachCallback
Last updated
Was this helpful?
Last updated
Was this helpful?
ForEachCallback<Value, Payload>
Represents a callback function of .forEach()
method which is executed once for each element.
Value
=
any
Payload
=
object
result: boolean
value: Value
index: number
array: any[]
payload?: Payload
The return value is void.
A generic type variable Value
determines the type of the parameter, by default .
The shape of the optional parameter, by default .
The result of the check of a type.
The value that has been checked of a generic type variable .
An optional of checked array
element.
An optional array
of type that each element is checked.
An optional of a generic type variable to provide more data.