| Server IP : 74.208.250.37 / Your IP : 216.73.216.114 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/node_modules/tcompare/dist/cjs/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HasStrict = void 0;
const has_js_1 = require("./has.js");
const strict_js_1 = require("./strict.js");
class HasStrict extends has_js_1.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_js_1.Strict.prototype.test.call(this);
}
}
}
exports.HasStrict = HasStrict;
//# sourceMappingURL=has-strict.js.map