UNPKG

@extra-array/index-range

Version:

Gets index range of part of array.

9 lines (5 loc) 144 B
const array = require("extra-array"); var x = [2, 4, 6, 8]; array.indexRange(x, 1); array.indexRange(x, 1, -1); array.indexRange(x, 1, -10);