@diahkomalasarinpm/aspernatur-magni-maiores
v1.0.0
Published
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
Downloads
2
Maintainers
Keywords
Readme
@diahkomalasarinpm/aspernatur-magni-maiores
Helper package to shim a method into Array.prototype[Symbol.unscopables]
Example
const assert = require('assert');
const shimUnscopables = require('@diahkomalasarinpm/aspernatur-magni-maiores');
let copyWithin;
let concat;
with ([]) {
assert.equal(concat, Array.prototype.concat);
assert.notEqual(copyWithin, Array.prototype.copyWithin);
}
shimUnscopables('concat');
with ([]) {
assert.notEqual(concat, Array.prototype.concat);
assert.notEqual(copyWithin, Array.prototype.copyWithin);
}
Tests
Simply clone the repo, npm install
, and run npm test
Security
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.