@n3okill/utils
Version:
Many javascript helpers
9 lines (8 loc) • 321 B
TypeScript
import { Primitive } from "../type/_types";
/**
* 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 declare function equalPrimitive<T extends Primitive, U extends T>(a: T, b: U): boolean;