step()
Allows for an array or an array-like structure to be stepped through in the order specified after each iteration.
This function is valid in v2.21.0 to v2.24.3. This function has been downloaded 38 times.1
-1
.opt_stepValue
will be the only value used for the step value. If given this function will be called on each iteration. This will be passed (1) the value, (2) the index of the value and (3) array
. The return value will be used as the new step value. If nothing, undefined
or null
is returned then opt_stepValue
will be used as the next step value.array.length - 1
if opt_stepValue
is -1
, otherwise this will default to 0
. This represents the starting index.