/** * Equality test function. * Null and undefined treated as equal. * * * If `a` is an 'object' and provides an `equals` function, then the method will delegate to it. * * If `a` and `b` are arrays then both will be equal if all items are equal. * * @example * ```ts * import { equal } from "apprt-core/equals"; * * if (equal(a, b)) { * // do something if true * } * ``` * @param a value or object to compare with `b` * @param b value or object to compare with `a` * @returns true if `a` is equal to `b`. */ declare function equal(a: any, b: any): boolean; /** * Deep equality test function. * Null and undefined treated as equal. * * * If `a` is an 'object' and provides an `equals` function, then the method will delegate to it. * * If `a` is an 'object' without an `equals` then `a` and `b` are equal if all (own) properties are equal. * * If `a` and `b` are arrays then both will be equal if all items are equal. * * @example * ```ts * import { deepEqual } from "apprt-core/equals"; * * if (deepEqual(a, b)){ * // do something if true * } * ``` * @param a value or object to compare with `b` * @param b value or object to compare with `a` * @returns true if `a` is equal to `b`. */ declare function deepEqual(a: any, b: any): boolean; export { deepEqual, equal };