es-toolkit 1.15.1-dev.423 → 1.15.1-dev.424
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.
- package/dist/_chunk/{isFunction-D0hq6d.js → isFunction-DPic3X.js} +3 -5
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/_internal/getSymbols.mjs +1 -2
- package/dist/compat/function/ary.d.mts +1 -1
- package/dist/compat/function/ary.d.ts +1 -1
- package/dist/compat/index.js +3 -8
- package/dist/compat/object/set.mjs +1 -5
- package/dist/compat/predicate/isArrayLike.mjs +1 -2
- package/dist/function/ary.d.mts +1 -1
- package/dist/function/ary.d.ts +1 -1
- package/dist/function/unary.d.mts +1 -1
- package/dist/function/unary.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/predicate/index.js +1 -1
- package/dist/predicate/isEqual.mjs +2 -3
- package/dist/string/camelCase.mjs +2 -2
- package/dist/string/index.js +2 -2
- package/package.json +1 -1
|
@@ -30,8 +30,7 @@ const float32ArrayTag = '[object Float32Array]';
|
|
|
30
30
|
const float64ArrayTag = '[object Float64Array]';
|
|
31
31
|
|
|
32
32
|
function getSymbols(object) {
|
|
33
|
-
return Object.getOwnPropertySymbols(object)
|
|
34
|
-
.filter(symbol => object.propertyIsEnumerable(symbol));
|
|
33
|
+
return Object.getOwnPropertySymbols(object).filter(symbol => object.propertyIsEnumerable(symbol));
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
function getTag(value) {
|
|
@@ -85,7 +84,7 @@ function areObjectsEqual(a, b, stack) {
|
|
|
85
84
|
case numberTag: {
|
|
86
85
|
const x = a.valueOf();
|
|
87
86
|
const y = b.valueOf();
|
|
88
|
-
return x === y || Number.isNaN(x) && Number.isNaN(y);
|
|
87
|
+
return x === y || (Number.isNaN(x) && Number.isNaN(y));
|
|
89
88
|
}
|
|
90
89
|
case booleanTag:
|
|
91
90
|
case dateTag:
|
|
@@ -178,8 +177,7 @@ function areObjectsEqual(a, b, stack) {
|
|
|
178
177
|
return a.name === b.name && a.message === b.message;
|
|
179
178
|
}
|
|
180
179
|
case objectTag: {
|
|
181
|
-
const areEqualInstances = areObjectsEqual(a.constructor, b.constructor, stack) ||
|
|
182
|
-
(isTypedArray.isPlainObject(a) && isTypedArray.isPlainObject(b));
|
|
180
|
+
const areEqualInstances = areObjectsEqual(a.constructor, b.constructor, stack) || (isTypedArray.isPlainObject(a) && isTypedArray.isPlainObject(b));
|
|
183
181
|
if (!areEqualInstances) {
|
|
184
182
|
return false;
|
|
185
183
|
}
|