@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
25 lines (24 loc) • 721 B
TypeScript
/**
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {Function} [fn] The function to customize comparisons.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* function isGreeting(value) {
* return /^h(?:i|ello)$/.test(value);
* }
*
* function customizer(objValue, othValue) {
* if (isGreeting(objValue) && isGreeting(othValue)) {
* return true;
* }
* }
*
* var array = ['hello', 'goodbye'];
* var other = ['hi', 'goodbye'];
*
* isEqualWith(array, other, customizer); // => true
*/
declare const _default: <T>(value: T, other: T, fn: (v1: T, v2: T) => boolean) => boolean;
export default _default;