UNPKG

@n3okill/utils

Version:
10 lines 304 B
/** * 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