forEachStep()
Performs the specified action for each step in the maximum range of an `Array`
Range.prototype.forEachStep()
Range.prototype.forEachStep()
The forEachStep()
method performs the specified action for each step in the maximum range of an Array
.
range.class.ts
Parameters
forEachStep: (value:
number
, step:
number
, range: readonly
number
[]) => void
forEachStep: (value:
number
, step:
number
, range: readonly
number
[]) => void
A function that accepts up to three arguments. It's called one time for each step in the range.
Return type
Returns
The return value is the Range
instance.
Example usage
Maximum range
Last updated