JSPM

@extra-array/set.min

2.4.21
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q70924F
  • License MIT

Sets value at index (+ve, -ve).

Package Exports

  • @extra-array/set.min

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@extra-array/set.min) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sets value at index (+ve, -ve).

Alternatives: default, update.
This is part of package extra-array.

This is browserified, minified version of @extra-array/set.
It is exported as global variable array_set.
CDN: unpkg, jsDelivr.

array.set(x, i, v);
// x: an array
// i: index (-ve: from right)
// v: value
// --> set array
const array = require('extra-array');

var x = [2, 4, 6, 8];
array.set(x, 1, -4);
// [2, -4, 6, 8]

array.set(x, -1, -8);
// [2, 4, 6, -8]

references