@n3okill/utils
Version:
Many javascript helpers
10 lines • 304 B
JavaScript
/**
* 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.
*/
export function equalPrimitive(a, b) {
return Object.is(a, b) || a === b;
}
//# sourceMappingURL=equalPrimitive.js.map