@n3okill/utils
Version:
Many javascript helpers
19 lines • 622 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.equal = equal;
const _internal_1 = require("./_internal");
/**
* "Given two objects of the same type, return true if they are equal."
*
* The function is generic, meaning it can be used with any type
* @param {T} a - The first object to compare.
* @param {U} b - U extends T
* @returns A boolean value.
*/
function equal(a, b) {
if ((0, _internal_1.constructorName)(a) !== (0, _internal_1.constructorName)(b)) {
return false;
}
return (0, _internal_1._filterFunction)(a, b);
}
//# sourceMappingURL=equal.js.map
;