@n3okill/utils
Version:
Many javascript helpers
13 lines • 415 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.equalPrimitive = equalPrimitive;
/**
* Check if two values are equal, or if they are both the same primitive type.
* @param {T} a - Type.Primitive
* @param {U} b - Type.Primitive
* @returns A boolean value.
*/
function equalPrimitive(a, b) {
return Object.is(a, b) || a === b;
}
//# sourceMappingURL=equalPrimitive.js.map