Mohammad Asif cf937194cb Removed un-waned things 1. | 5 月之前 | |
---|---|---|
.. | ||
.github | 5 月之前 | |
test | 5 月之前 | |
.eslintrc | 5 月之前 | |
.nycrc | 5 月之前 | |
CHANGELOG.md | 5 月之前 | |
LICENSE | 5 月之前 | |
README.md | 5 月之前 | |
index.js | 5 月之前 | |
package.json | 5 月之前 |
Helper package to shim a method into Array.prototype[Symbol.unscopables]
const assert = require('assert');
const shimUnscopables = require('es-shim-unscopables');
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);
}
Simply clone the repo, npm install
, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.