We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Sets value at index. 🏃 📼 📦 🌔 📒
Alternatives: set, set$, setPath$. Similar: get, set, remove.
array.set(x, i, v); // x: an array // i: index // v: value
const array = require("extra-array"); var x = [2, 4, 6, 8]; array.set(x, 1, 40); // [ 2, 40, 6, 8 ] array.set(x, 3, 80); // [ 2, 4, 6, 80 ]
There was an error while loading. Please reload this page.