fast-equals 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,178 +0,0 @@
1
- /**
2
- * Cache used to store references to objects, used for circular
3
- * reference checks.
4
- */
5
- export interface Cache<Key extends object, Value> {
6
- delete(key: Key): boolean;
7
- get(key: Key): Value | undefined;
8
- set(key: Key, value: any): any;
9
- }
10
- export interface State<Meta> {
11
- /**
12
- * Cache used to identify circular references
13
- */
14
- readonly cache: Cache<any, any> | undefined;
15
- /**
16
- * Method used to determine equality of nested value.
17
- */
18
- readonly equals: InternalEqualityComparator<Meta>;
19
- /**
20
- * Additional value that can be used for comparisons.
21
- */
22
- meta: Meta;
23
- /**
24
- * Whether the equality comparison is strict, meaning it matches
25
- * all properties (including symbols and non-enumerable properties)
26
- * with equal shape of descriptors.
27
- */
28
- readonly strict: boolean;
29
- }
30
- export interface CircularState<Meta> extends State<Meta> {
31
- readonly cache: Cache<any, any>;
32
- }
33
- export interface DefaultState<Meta> extends State<Meta> {
34
- readonly cache: undefined;
35
- }
36
- export interface Dictionary<Value = any> {
37
- [key: string | symbol]: Value;
38
- $$typeof?: any;
39
- }
40
- export interface ComparatorConfig<Meta> {
41
- /**
42
- * Whether the array buffers passed are equal in value. In strict mode, this includes
43
- * additional properties added to the array.
44
- */
45
- areArrayBuffersEqual: TypeEqualityComparator<any, Meta>;
46
- /**
47
- * Whether the arrays passed are equal in value. In strict mode, this includes
48
- * additional properties added to the array.
49
- */
50
- areArraysEqual: TypeEqualityComparator<any, Meta>;
51
- /**
52
- * Whether the data views passed are equal in value.
53
- */
54
- areDataViewsEqual: TypeEqualityComparator<any, Meta>;
55
- /**
56
- * Whether the dates passed are equal in value.
57
- */
58
- areDatesEqual: TypeEqualityComparator<any, Meta>;
59
- /**
60
- * Whether the errors passed are equal in value.
61
- */
62
- areErrorsEqual: TypeEqualityComparator<any, Meta>;
63
- /**
64
- * Whether the functions passed are equal in value.
65
- */
66
- areFunctionsEqual: TypeEqualityComparator<any, Meta>;
67
- /**
68
- * Whether the maps passed are equal in value. In strict mode, this includes
69
- * additional properties added to the map.
70
- */
71
- areMapsEqual: TypeEqualityComparator<any, Meta>;
72
- /**
73
- * Whether the numbers passed are equal in value.
74
- */
75
- areNumbersEqual: TypeEqualityComparator<any, Meta>;
76
- /**
77
- * Whether the objects passed are equal in value. In strict mode, this includes
78
- * non-enumerable properties added to the map, as well as symbol properties.
79
- */
80
- areObjectsEqual: TypeEqualityComparator<any, Meta>;
81
- /**
82
- * Whether the primitive wrappers passed are equal in value.
83
- */
84
- arePrimitiveWrappersEqual: TypeEqualityComparator<any, Meta>;
85
- /**
86
- * Whether the regexps passed are equal in value.
87
- */
88
- areRegExpsEqual: TypeEqualityComparator<any, Meta>;
89
- /**
90
- * Whether the sets passed are equal in value. In strict mode, this includes
91
- * additional properties added to the set.
92
- */
93
- areSetsEqual: TypeEqualityComparator<any, Meta>;
94
- /**
95
- * Whether the typed arrays passed are equal in value. In strict mode, this includes
96
- * additional properties added to the typed array.
97
- */
98
- areTypedArraysEqual: TypeEqualityComparator<any, Meta>;
99
- /**
100
- * Whether the URLs passed are equal in value.
101
- */
102
- areUrlsEqual: TypeEqualityComparator<any, Meta>;
103
- /**
104
- * Whether two values with unknown `@@toStringTag` are equal in value. This comparator is
105
- * called when no other comparator applies.
106
- *
107
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
108
- */
109
- unknownTagComparators: Record<string, TypeEqualityComparator<any, Meta>> | undefined;
110
- }
111
- export type CreateCustomComparatorConfig<Meta> = (config: ComparatorConfig<Meta>) => Partial<ComparatorConfig<Meta>>;
112
- export type CreateState<Meta> = () => {
113
- cache?: Cache<any, any> | undefined;
114
- meta?: Meta;
115
- };
116
- export type EqualityComparator<Meta> = <A, B>(a: A, b: B, state: State<Meta>) => boolean;
117
- export type AnyEqualityComparator<Meta> = (a: any, b: any, state: State<Meta>) => boolean;
118
- export type EqualityComparatorCreator<Meta> = (fn: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
119
- export type InternalEqualityComparator<Meta> = (
120
- a: any,
121
- b: any,
122
- indexOrKeyA: any,
123
- indexOrKeyB: any,
124
- parentA: any,
125
- parentB: any,
126
- state: State<Meta>,
127
- ) => boolean;
128
- export type PrimitiveWrapper = Boolean | Number | String;
129
- /**
130
- * Type which encompasses possible instances of TypedArray
131
- * classes.
132
- */
133
- export type TypedArray =
134
- | BigInt64Array
135
- | BigUint64Array
136
- | Float32Array
137
- | Float64Array
138
- | Int8Array
139
- | Int16Array
140
- | Int32Array
141
- | Uint16Array
142
- | Uint32Array
143
- | Uint8Array
144
- | Uint8ClampedArray;
145
- export type TypeEqualityComparator<Type, Meta = undefined> = (a: Type, b: Type, state: State<Meta>) => boolean;
146
- export interface CustomEqualCreatorOptions<Meta> {
147
- /**
148
- * Whether circular references should be supported. It causes the
149
- * comparison to be slower, but for objects that have circular references
150
- * it is required to avoid stack overflows.
151
- */
152
- circular?: boolean;
153
- /**
154
- * Create a custom configuration of type-specific equality comparators.
155
- * This receives the default configuration, which allows either replacement
156
- * or supersetting of the default methods.
157
- */
158
- createCustomConfig?: CreateCustomComparatorConfig<Meta>;
159
- /**
160
- * Create a custom internal comparator, which is used as an override to the
161
- * default entry point for nested value equality comparisons. This is often
162
- * used for doing custom logic for specific types (such as handling a specific
163
- * class instance differently than other objects) or to incorporate `meta` in
164
- * the comparison. See the recipes for examples.
165
- */
166
- createInternalComparator?: (compare: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
167
- /**
168
- * Create a custom `state` object passed between the methods. This allows for
169
- * custom `cache` and/or `meta` values to be used.
170
- */
171
- createState?: CreateState<Meta>;
172
- /**
173
- * Whether the equality comparison is strict, meaning it matches
174
- * all properties (including symbols and non-enumerable properties)
175
- * with equal shape of descriptors.
176
- */
177
- strict?: boolean;
178
- }
@@ -1,33 +0,0 @@
1
- import type { AnyEqualityComparator, Dictionary, State, TypeEqualityComparator } from './internalTypes.d.cts';
2
- /**
3
- * Combine two comparators into a single comparators.
4
- */
5
- export declare function combineComparators<Meta>(
6
- comparatorA: AnyEqualityComparator<Meta>,
7
- comparatorB: AnyEqualityComparator<Meta>,
8
- ): <A, B>(a: A, b: B, state: State<Meta>) => boolean;
9
- /**
10
- * Wrap the provided `areItemsEqual` method to manage the circular state, allowing
11
- * for circular references to be safely included in the comparison without creating
12
- * stack overflows.
13
- */
14
- export declare function createIsCircular<AreItemsEqual extends TypeEqualityComparator<any, any>>(
15
- areItemsEqual: AreItemsEqual,
16
- ): AreItemsEqual;
17
- /**
18
- * Get the `@@toStringTag` of the value, if it exists.
19
- */
20
- export declare function getShortTag(value: any): string | undefined;
21
- /**
22
- * Get the properties to strictly examine, which include both own properties that are
23
- * not enumerable and symbol properties.
24
- */
25
- export declare function getStrictProperties(object: Dictionary): Array<string | symbol>;
26
- /**
27
- * Whether the object contains the property passed as an own property.
28
- */
29
- export declare const hasOwn: (o: object, v: PropertyKey) => boolean;
30
- /**
31
- * Whether the values passed are strictly equal or both NaN.
32
- */
33
- export declare function sameValueZeroEqual(a: any, b: any): boolean;
@@ -1,60 +0,0 @@
1
- import type {
2
- ComparatorConfig,
3
- CreateState,
4
- CustomEqualCreatorOptions,
5
- EqualityComparator,
6
- InternalEqualityComparator,
7
- } from './internalTypes.d.mts';
8
- interface CreateIsEqualOptions<Meta> {
9
- circular: boolean;
10
- comparator: EqualityComparator<Meta>;
11
- createState: CreateState<Meta> | undefined;
12
- equals: InternalEqualityComparator<Meta>;
13
- strict: boolean;
14
- }
15
- /**
16
- * Create a comparator method based on the type-specific equality comparators passed.
17
- */
18
- export declare function createEqualityComparator<Meta>({
19
- areArrayBuffersEqual,
20
- areArraysEqual,
21
- areDataViewsEqual,
22
- areDatesEqual,
23
- areErrorsEqual,
24
- areFunctionsEqual,
25
- areMapsEqual,
26
- areNumbersEqual,
27
- areObjectsEqual,
28
- arePrimitiveWrappersEqual,
29
- areRegExpsEqual,
30
- areSetsEqual,
31
- areTypedArraysEqual,
32
- areUrlsEqual,
33
- unknownTagComparators,
34
- }: ComparatorConfig<Meta>): EqualityComparator<Meta>;
35
- /**
36
- * Create the configuration object used for building comparators.
37
- */
38
- export declare function createEqualityComparatorConfig<Meta>({
39
- circular,
40
- createCustomConfig,
41
- strict,
42
- }: CustomEqualCreatorOptions<Meta>): ComparatorConfig<Meta>;
43
- /**
44
- * Default equality comparator pass-through, used as the standard `isEqual` creator for
45
- * use inside the built comparator.
46
- */
47
- export declare function createInternalEqualityComparator<Meta>(
48
- compare: EqualityComparator<Meta>,
49
- ): InternalEqualityComparator<Meta>;
50
- /**
51
- * Create the `isEqual` function used by the consuming application.
52
- */
53
- export declare function createIsEqual<Meta>({
54
- circular,
55
- comparator,
56
- createState,
57
- equals,
58
- strict,
59
- }: CreateIsEqualOptions<Meta>): <A, B>(a: A, b: B) => boolean;
60
- export {};
@@ -1,62 +0,0 @@
1
- import type { Dictionary, PrimitiveWrapper, State, TypedArray } from './internalTypes.d.mts';
2
- import type { sameValueZeroEqual } from './utils.d.mts';
3
- /**
4
- * Whether the array buffers are equal in value.
5
- */
6
- export declare function areArrayBuffersEqual(a: ArrayBuffer, b: ArrayBuffer): boolean;
7
- /**
8
- * Whether the arrays are equal in value.
9
- */
10
- export declare function areArraysEqual(a: any[], b: any[], state: State<any>): boolean;
11
- /**
12
- * Whether the dataviews are equal in value.
13
- */
14
- export declare function areDataViewsEqual(a: DataView, b: DataView): boolean;
15
- /**
16
- * Whether the dates passed are equal in value.
17
- */
18
- export declare function areDatesEqual(a: Date, b: Date): boolean;
19
- /**
20
- * Whether the errors passed are equal in value.
21
- */
22
- export declare function areErrorsEqual(a: Error, b: Error): boolean;
23
- /**
24
- * Whether the functions passed are equal in value.
25
- */
26
- export declare function areFunctionsEqual(a: (...args: any[]) => any, b: (...args: any[]) => any): boolean;
27
- /**
28
- * Whether the `Map`s are equal in value.
29
- */
30
- export declare function areMapsEqual(a: Map<any, any>, b: Map<any, any>, state: State<any>): boolean;
31
- /**
32
- * Whether the numbers are equal in value.
33
- */
34
- export declare const areNumbersEqual: typeof sameValueZeroEqual;
35
- /**
36
- * Whether the objects are equal in value.
37
- */
38
- export declare function areObjectsEqual(a: Dictionary, b: Dictionary, state: State<any>): boolean;
39
- /**
40
- * Whether the objects are equal in value with strict property checking.
41
- */
42
- export declare function areObjectsEqualStrict(a: Dictionary, b: Dictionary, state: State<any>): boolean;
43
- /**
44
- * Whether the primitive wrappers passed are equal in value.
45
- */
46
- export declare function arePrimitiveWrappersEqual(a: PrimitiveWrapper, b: PrimitiveWrapper): boolean;
47
- /**
48
- * Whether the regexps passed are equal in value.
49
- */
50
- export declare function areRegExpsEqual(a: RegExp, b: RegExp): boolean;
51
- /**
52
- * Whether the `Set`s are equal in value.
53
- */
54
- export declare function areSetsEqual(a: Set<any>, b: Set<any>, state: State<any>): boolean;
55
- /**
56
- * Whether the TypedArray instances are equal in value.
57
- */
58
- export declare function areTypedArraysEqual(a: TypedArray, b: TypedArray): boolean;
59
- /**
60
- * Whether the URL instances are equal in value.
61
- */
62
- export declare function areUrlsEqual(a: URL, b: URL): boolean;
@@ -1,178 +0,0 @@
1
- /**
2
- * Cache used to store references to objects, used for circular
3
- * reference checks.
4
- */
5
- export interface Cache<Key extends object, Value> {
6
- delete(key: Key): boolean;
7
- get(key: Key): Value | undefined;
8
- set(key: Key, value: any): any;
9
- }
10
- export interface State<Meta> {
11
- /**
12
- * Cache used to identify circular references
13
- */
14
- readonly cache: Cache<any, any> | undefined;
15
- /**
16
- * Method used to determine equality of nested value.
17
- */
18
- readonly equals: InternalEqualityComparator<Meta>;
19
- /**
20
- * Additional value that can be used for comparisons.
21
- */
22
- meta: Meta;
23
- /**
24
- * Whether the equality comparison is strict, meaning it matches
25
- * all properties (including symbols and non-enumerable properties)
26
- * with equal shape of descriptors.
27
- */
28
- readonly strict: boolean;
29
- }
30
- export interface CircularState<Meta> extends State<Meta> {
31
- readonly cache: Cache<any, any>;
32
- }
33
- export interface DefaultState<Meta> extends State<Meta> {
34
- readonly cache: undefined;
35
- }
36
- export interface Dictionary<Value = any> {
37
- [key: string | symbol]: Value;
38
- $$typeof?: any;
39
- }
40
- export interface ComparatorConfig<Meta> {
41
- /**
42
- * Whether the array buffers passed are equal in value. In strict mode, this includes
43
- * additional properties added to the array.
44
- */
45
- areArrayBuffersEqual: TypeEqualityComparator<any, Meta>;
46
- /**
47
- * Whether the arrays passed are equal in value. In strict mode, this includes
48
- * additional properties added to the array.
49
- */
50
- areArraysEqual: TypeEqualityComparator<any, Meta>;
51
- /**
52
- * Whether the data views passed are equal in value.
53
- */
54
- areDataViewsEqual: TypeEqualityComparator<any, Meta>;
55
- /**
56
- * Whether the dates passed are equal in value.
57
- */
58
- areDatesEqual: TypeEqualityComparator<any, Meta>;
59
- /**
60
- * Whether the errors passed are equal in value.
61
- */
62
- areErrorsEqual: TypeEqualityComparator<any, Meta>;
63
- /**
64
- * Whether the functions passed are equal in value.
65
- */
66
- areFunctionsEqual: TypeEqualityComparator<any, Meta>;
67
- /**
68
- * Whether the maps passed are equal in value. In strict mode, this includes
69
- * additional properties added to the map.
70
- */
71
- areMapsEqual: TypeEqualityComparator<any, Meta>;
72
- /**
73
- * Whether the numbers passed are equal in value.
74
- */
75
- areNumbersEqual: TypeEqualityComparator<any, Meta>;
76
- /**
77
- * Whether the objects passed are equal in value. In strict mode, this includes
78
- * non-enumerable properties added to the map, as well as symbol properties.
79
- */
80
- areObjectsEqual: TypeEqualityComparator<any, Meta>;
81
- /**
82
- * Whether the primitive wrappers passed are equal in value.
83
- */
84
- arePrimitiveWrappersEqual: TypeEqualityComparator<any, Meta>;
85
- /**
86
- * Whether the regexps passed are equal in value.
87
- */
88
- areRegExpsEqual: TypeEqualityComparator<any, Meta>;
89
- /**
90
- * Whether the sets passed are equal in value. In strict mode, this includes
91
- * additional properties added to the set.
92
- */
93
- areSetsEqual: TypeEqualityComparator<any, Meta>;
94
- /**
95
- * Whether the typed arrays passed are equal in value. In strict mode, this includes
96
- * additional properties added to the typed array.
97
- */
98
- areTypedArraysEqual: TypeEqualityComparator<any, Meta>;
99
- /**
100
- * Whether the URLs passed are equal in value.
101
- */
102
- areUrlsEqual: TypeEqualityComparator<any, Meta>;
103
- /**
104
- * Whether two values with unknown `@@toStringTag` are equal in value. This comparator is
105
- * called when no other comparator applies.
106
- *
107
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
108
- */
109
- unknownTagComparators: Record<string, TypeEqualityComparator<any, Meta>> | undefined;
110
- }
111
- export type CreateCustomComparatorConfig<Meta> = (config: ComparatorConfig<Meta>) => Partial<ComparatorConfig<Meta>>;
112
- export type CreateState<Meta> = () => {
113
- cache?: Cache<any, any> | undefined;
114
- meta?: Meta;
115
- };
116
- export type EqualityComparator<Meta> = <A, B>(a: A, b: B, state: State<Meta>) => boolean;
117
- export type AnyEqualityComparator<Meta> = (a: any, b: any, state: State<Meta>) => boolean;
118
- export type EqualityComparatorCreator<Meta> = (fn: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
119
- export type InternalEqualityComparator<Meta> = (
120
- a: any,
121
- b: any,
122
- indexOrKeyA: any,
123
- indexOrKeyB: any,
124
- parentA: any,
125
- parentB: any,
126
- state: State<Meta>,
127
- ) => boolean;
128
- export type PrimitiveWrapper = Boolean | Number | String;
129
- /**
130
- * Type which encompasses possible instances of TypedArray
131
- * classes.
132
- */
133
- export type TypedArray =
134
- | BigInt64Array
135
- | BigUint64Array
136
- | Float32Array
137
- | Float64Array
138
- | Int8Array
139
- | Int16Array
140
- | Int32Array
141
- | Uint16Array
142
- | Uint32Array
143
- | Uint8Array
144
- | Uint8ClampedArray;
145
- export type TypeEqualityComparator<Type, Meta = undefined> = (a: Type, b: Type, state: State<Meta>) => boolean;
146
- export interface CustomEqualCreatorOptions<Meta> {
147
- /**
148
- * Whether circular references should be supported. It causes the
149
- * comparison to be slower, but for objects that have circular references
150
- * it is required to avoid stack overflows.
151
- */
152
- circular?: boolean;
153
- /**
154
- * Create a custom configuration of type-specific equality comparators.
155
- * This receives the default configuration, which allows either replacement
156
- * or supersetting of the default methods.
157
- */
158
- createCustomConfig?: CreateCustomComparatorConfig<Meta>;
159
- /**
160
- * Create a custom internal comparator, which is used as an override to the
161
- * default entry point for nested value equality comparisons. This is often
162
- * used for doing custom logic for specific types (such as handling a specific
163
- * class instance differently than other objects) or to incorporate `meta` in
164
- * the comparison. See the recipes for examples.
165
- */
166
- createInternalComparator?: (compare: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
167
- /**
168
- * Create a custom `state` object passed between the methods. This allows for
169
- * custom `cache` and/or `meta` values to be used.
170
- */
171
- createState?: CreateState<Meta>;
172
- /**
173
- * Whether the equality comparison is strict, meaning it matches
174
- * all properties (including symbols and non-enumerable properties)
175
- * with equal shape of descriptors.
176
- */
177
- strict?: boolean;
178
- }
@@ -1,33 +0,0 @@
1
- import type { AnyEqualityComparator, Dictionary, State, TypeEqualityComparator } from './internalTypes.d.mts';
2
- /**
3
- * Combine two comparators into a single comparators.
4
- */
5
- export declare function combineComparators<Meta>(
6
- comparatorA: AnyEqualityComparator<Meta>,
7
- comparatorB: AnyEqualityComparator<Meta>,
8
- ): <A, B>(a: A, b: B, state: State<Meta>) => boolean;
9
- /**
10
- * Wrap the provided `areItemsEqual` method to manage the circular state, allowing
11
- * for circular references to be safely included in the comparison without creating
12
- * stack overflows.
13
- */
14
- export declare function createIsCircular<AreItemsEqual extends TypeEqualityComparator<any, any>>(
15
- areItemsEqual: AreItemsEqual,
16
- ): AreItemsEqual;
17
- /**
18
- * Get the `@@toStringTag` of the value, if it exists.
19
- */
20
- export declare function getShortTag(value: any): string | undefined;
21
- /**
22
- * Get the properties to strictly examine, which include both own properties that are
23
- * not enumerable and symbol properties.
24
- */
25
- export declare function getStrictProperties(object: Dictionary): Array<string | symbol>;
26
- /**
27
- * Whether the object contains the property passed as an own property.
28
- */
29
- export declare const hasOwn: (o: object, v: PropertyKey) => boolean;
30
- /**
31
- * Whether the values passed are strictly equal or both NaN.
32
- */
33
- export declare function sameValueZeroEqual(a: any, b: any): boolean;
@@ -1,26 +0,0 @@
1
- import type { ComparatorConfig, CreateState, CustomEqualCreatorOptions, EqualityComparator, InternalEqualityComparator } from './internalTypes.js';
2
- interface CreateIsEqualOptions<Meta> {
3
- circular: boolean;
4
- comparator: EqualityComparator<Meta>;
5
- createState: CreateState<Meta> | undefined;
6
- equals: InternalEqualityComparator<Meta>;
7
- strict: boolean;
8
- }
9
- /**
10
- * Create a comparator method based on the type-specific equality comparators passed.
11
- */
12
- export declare function createEqualityComparator<Meta>({ areArrayBuffersEqual, areArraysEqual, areDataViewsEqual, areDatesEqual, areErrorsEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, arePrimitiveWrappersEqual, areRegExpsEqual, areSetsEqual, areTypedArraysEqual, areUrlsEqual, unknownTagComparators, }: ComparatorConfig<Meta>): EqualityComparator<Meta>;
13
- /**
14
- * Create the configuration object used for building comparators.
15
- */
16
- export declare function createEqualityComparatorConfig<Meta>({ circular, createCustomConfig, strict, }: CustomEqualCreatorOptions<Meta>): ComparatorConfig<Meta>;
17
- /**
18
- * Default equality comparator pass-through, used as the standard `isEqual` creator for
19
- * use inside the built comparator.
20
- */
21
- export declare function createInternalEqualityComparator<Meta>(compare: EqualityComparator<Meta>): InternalEqualityComparator<Meta>;
22
- /**
23
- * Create the `isEqual` function used by the consuming application.
24
- */
25
- export declare function createIsEqual<Meta>({ circular, comparator, createState, equals, strict }: CreateIsEqualOptions<Meta>): <A, B>(a: A, b: B) => boolean;
26
- export {};
@@ -1,62 +0,0 @@
1
- import type { Dictionary, PrimitiveWrapper, State, TypedArray } from './internalTypes.js';
2
- import { sameValueZeroEqual } from './utils.js';
3
- /**
4
- * Whether the array buffers are equal in value.
5
- */
6
- export declare function areArrayBuffersEqual(a: ArrayBuffer, b: ArrayBuffer): boolean;
7
- /**
8
- * Whether the arrays are equal in value.
9
- */
10
- export declare function areArraysEqual(a: any[], b: any[], state: State<any>): boolean;
11
- /**
12
- * Whether the dataviews are equal in value.
13
- */
14
- export declare function areDataViewsEqual(a: DataView, b: DataView): boolean;
15
- /**
16
- * Whether the dates passed are equal in value.
17
- */
18
- export declare function areDatesEqual(a: Date, b: Date): boolean;
19
- /**
20
- * Whether the errors passed are equal in value.
21
- */
22
- export declare function areErrorsEqual(a: Error, b: Error): boolean;
23
- /**
24
- * Whether the functions passed are equal in value.
25
- */
26
- export declare function areFunctionsEqual(a: (...args: any[]) => any, b: (...args: any[]) => any): boolean;
27
- /**
28
- * Whether the `Map`s are equal in value.
29
- */
30
- export declare function areMapsEqual(a: Map<any, any>, b: Map<any, any>, state: State<any>): boolean;
31
- /**
32
- * Whether the numbers are equal in value.
33
- */
34
- export declare const areNumbersEqual: typeof sameValueZeroEqual;
35
- /**
36
- * Whether the objects are equal in value.
37
- */
38
- export declare function areObjectsEqual(a: Dictionary, b: Dictionary, state: State<any>): boolean;
39
- /**
40
- * Whether the objects are equal in value with strict property checking.
41
- */
42
- export declare function areObjectsEqualStrict(a: Dictionary, b: Dictionary, state: State<any>): boolean;
43
- /**
44
- * Whether the primitive wrappers passed are equal in value.
45
- */
46
- export declare function arePrimitiveWrappersEqual(a: PrimitiveWrapper, b: PrimitiveWrapper): boolean;
47
- /**
48
- * Whether the regexps passed are equal in value.
49
- */
50
- export declare function areRegExpsEqual(a: RegExp, b: RegExp): boolean;
51
- /**
52
- * Whether the `Set`s are equal in value.
53
- */
54
- export declare function areSetsEqual(a: Set<any>, b: Set<any>, state: State<any>): boolean;
55
- /**
56
- * Whether the TypedArray instances are equal in value.
57
- */
58
- export declare function areTypedArraysEqual(a: TypedArray, b: TypedArray): boolean;
59
- /**
60
- * Whether the URL instances are equal in value.
61
- */
62
- export declare function areUrlsEqual(a: URL, b: URL): boolean;