es-shim-unscopables (1.1.0)

Published 2026-02-24 13:56:04 +00:00 by atheaadmin

Installation

registry=
npm install es-shim-unscopables@1.1.0
"es-shim-unscopables": "1.1.0"

About this package

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.

Dependencies

Dependencies

ID Version
hasown ^2.0.2

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.3
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.3
@types/object-inspect ^1.13.0
@types/tape ^5.8.1
auto-changelog ^2.5.0
encoding ^0.1.13
es-value-fixtures ^1.7.1
eslint =8.8.0
evalmd ^0.0.19
for-each ^0.3.5
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
object-inspect ^1.13.4
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript ^5.8.0-dev.20250211
Details
npm
2026-02-24 13:56:04 +00:00
1
Jordan Harband
MIT
latest
4.9 KiB
Assets (1)
Versions (1) View all
1.1.0 2026-02-24