extendArray
Source: lib/extendArray.js (pure JS) — default export: extendArray
Installs extra (non-enumerable) methods onto Array.prototype.
Exports
| Export | Args | Kind | Description |
|---|---|---|---|
extendArray(proto=Array.prototype) | 0–1 | function | Defines the extension methods on proto. (default export) |
ArrayExtensions | — | const | The bag of methods that get installed. |
ArrayPrototype | — | const | Shortcut 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