@womorg/quasi-eius-optio

3.1.33 • Public • Published

@womorg/quasi-eius-optio 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('@womorg/quasi-eius-optio');

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 (24)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @womorg/quasi-eius-optio

    Weekly Downloads

    2,889

    Version

    3.1.33

    License

    MIT

    Unpacked Size

    50.6 kB

    Total Files

    114

    Last publish

    Collaborators

    • uirewikilabs