UNPKG

@tempots/std

Version:

Std library for TypeScript. Natural complement to the Tempo libraries.

30 lines (29 loc) 977 B
/** * Checks if two values are strictly equal. * * @typeParam A - The type of the values to compare. * @param a - The first value to compare. * @param b - The second value to compare. * @returns `true` if the values are strictly equal, `false` otherwise. * @public */ export declare const strictEqual: <A>(a: A, b: A) => boolean; /** * Checks if two values are equal by comparing their contents. * * @typeParam A - The type of the values being compared. * @param a - The first value to compare. * @param b - The second value to compare. * @returns `true` if the values are deeply equal, `false` otherwise. * @public */ export declare const deepEqual: <A>(a: A, b: A) => boolean; /** * Checks if two values are loosely equal. * * @param a - The first value to compare. * @param b - The second value to compare. * @returns `true` if the values are loosely equal, `false` otherwise. * @public */ export declare const looseEqual: <T>(a: T, b: T) => boolean;