{ } qjs-modules

extendArray

Source: lib/extendArray.js (pure JS) — default export: extendArray

Installs extra (non-enumerable) methods onto Array.prototype.

Exports

ExportArgsKindDescription
extendArray(proto=Array.prototype)0–1functionDefines the extension methods on proto. (default export)
ArrayExtensions—constThe bag of methods that get installed.
ArrayPrototype—constShortcut for Array.prototype.

Added Array.prototype methods

at, clear, findLast, findLastIndex, unique, add, search, pushIf, pushUnique, unshiftUnique, insert, inserter, delete, remove, removeIf, rotateRight, rotateLeft, match, group, groupToMap, equal.

Export list

Generated by utilities/doc-api.js from the extendArray dump of utilities/api-surface.sh: 71 members. Edit the text above this block, not the block.

Functions: ArrayPrototype[Symbol.iterator](), ArrayPrototype[Symbol.unscopables](), default(), extendArray()

ArrayExtensions

object

  • static methods: add(), at(), back(), clear(), delete(), equal(), findLast(), findLastIndex(), front(), group(), groupToMap(), head(), insert(), inserter(), match(), partition(), pushIf(), pushUnique(), remove(), removeIf(), rotateLeft(), rotateRight(), search(), tail(), unique(), unshiftUnique()

ArrayPrototype

object

  • static methods: at(), concat(), copyWithin(), entries(), every(), fill(), filter(), find(), findIndex(), findLast(), findLastIndex(), flat(), flatMap(), forEach(), includes(), indexOf(), join(), keys(), lastIndexOf(), map(), pop(), push(), reduce(), reduceRight(), reverse(), shift(), slice(), some(), sort(), splice(), toLocaleString(), toReversed(), toSorted(), toSpliced(), toString(), unshift(), values(), with()
  • static values: length = 0