UNPKG

@extra-array/index

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