UNPKG

@extra-array/set

Version:
7 lines (4 loc) 104 B
const array = require("extra-array"); var x = [2, 4, 6, 8]; array.set(x, 1, 40); array.set(x, 3, 80);