@newdash/newdash
Version:
javascript/typescript utility library
21 lines (20 loc) • 583 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashEqual = void 0;
const toHashCode_1 = __importDefault(require("./toHashCode"));
/**
*
* check object is equal with [[toHashCode]]
*
* @since 5.15.0
* @category Functional
* @param obj1
* @param obj2
*/
function hashEqual(obj1, obj2) {
return (0, toHashCode_1.default)(obj1) === (0, toHashCode_1.default)(obj2);
}
exports.hashEqual = hashEqual;