2311061106/frontend/node_modules/es-shim-unscopables
23175 b8b09fd9d4
Some checks failed
autograde-final-vibevault / check-trigger (push) Successful in 13s
autograde-final-vibevault / grade (push) Failing after 55s
完成作业
2025-12-14 16:02:40 +08:00
..
.github 完成作业 2025-12-14 16:02:40 +08:00
test 完成作业 2025-12-14 16:02:40 +08:00
.eslintrc 完成作业 2025-12-14 16:02:40 +08:00
.nycrc 完成作业 2025-12-14 16:02:40 +08:00
CHANGELOG.md 完成作业 2025-12-14 16:02:40 +08:00
index.d.ts 完成作业 2025-12-14 16:02:40 +08:00
index.js 完成作业 2025-12-14 16:02:40 +08:00
LICENSE 完成作业 2025-12-14 16:02:40 +08:00
package.json 完成作业 2025-12-14 16:02:40 +08:00
README.md 完成作业 2025-12-14 16:02:40 +08:00
tsconfig.json 完成作业 2025-12-14 16:02:40 +08:00

es-shim-unscopables Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Helper package to shim a method into Array.prototype[Symbol.unscopables]

Example

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);
}

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.