es-toolkit 1.22.0-dev.703 → 1.22.0-dev.704
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.
|
@@ -23,10 +23,7 @@ function includes(source, target, fromIndex, guard) {
|
|
|
23
23
|
if (Array.isArray(source)) {
|
|
24
24
|
return source.includes(target, fromIndex);
|
|
25
25
|
}
|
|
26
|
-
const keys =
|
|
27
|
-
for (const key in source) {
|
|
28
|
-
keys.push(key);
|
|
29
|
-
}
|
|
26
|
+
const keys = Object.keys(source);
|
|
30
27
|
if (fromIndex < 0) {
|
|
31
28
|
fromIndex = Math.max(0, keys.length + fromIndex);
|
|
32
29
|
}
|
package/dist/compat/index.js
CHANGED
|
@@ -633,10 +633,7 @@ function includes(source, target, fromIndex, guard) {
|
|
|
633
633
|
if (Array.isArray(source)) {
|
|
634
634
|
return source.includes(target, fromIndex);
|
|
635
635
|
}
|
|
636
|
-
const keys =
|
|
637
|
-
for (const key in source) {
|
|
638
|
-
keys.push(key);
|
|
639
|
-
}
|
|
636
|
+
const keys = Object.keys(source);
|
|
640
637
|
if (fromIndex < 0) {
|
|
641
638
|
fromIndex = Math.max(0, keys.length + fromIndex);
|
|
642
639
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.22.0-dev.
|
|
4
|
+
"version": "1.22.0-dev.704+7e4dd66c",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|