UNPKG

644 BTypeScriptView Raw
1/**
2 * 深度比较两个对象之间的值是否相等,使用自定义比较函数
3 * @param obj1 值1
4 * @param obj2 值2
5 */
6export declare function isEqualWith(obj1: any, obj2: any): boolean;
7
8/**
9 * 深度比较两个对象之间的值是否相等,使用自定义比较函数
10 * @param obj1 值1
11 * @param obj2 值2
12 * @param func 自定义函数
13 */
14export declare function isEqualWith<T, U>(obj1: T, obj2: U, func: (val1: any, val2: any, key: any, obj1: T, obj2: U) => any): boolean;
15
16declare module './ctor' {
17 interface XEUtilsMethods {
18 isEqualWith: typeof isEqualWith;
19 }
20}
21
22export default isEqualWith