- Source:
Methods
polyfillArrayAt()
Adds support for Array.prototype.at, which is a fairly recent feature, compared to most other basic array operations, resulting in even modern Chrome, Firefox and Safari versions not having implemented this. But adding this is quite forward, it just being general array index access with possible negative index.
- Source:
- See:
Example
polyfillArrayAt()
=> adds Array.prototype.at if not already defined