UNPKG

721 BTypeScriptView Raw
1/**
2 * @param {*} value The value to compare.
3 * @param {*} other The other value to compare.
4 * @param {Function} [fn] The function to customize comparisons.
5 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
6 * @example
7 *
8 * function isGreeting(value) {
9 * return /^h(?:i|ello)$/.test(value);
10 * }
11 *
12 * function customizer(objValue, othValue) {
13 * if (isGreeting(objValue) && isGreeting(othValue)) {
14 * return true;
15 * }
16 * }
17 *
18 * var array = ['hello', 'goodbye'];
19 * var other = ['hi', 'goodbye'];
20 *
21 * isEqualWith(array, other, customizer); // => true
22 */
23declare const _default: <T>(value: T, other: T, fn: (v1: T, v2: T) => boolean) => boolean;
24export default _default;