es-toolkit 1.13.1-dev.307 → 1.13.1-dev.309
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/array/index.mjs +35 -35
- package/dist/browser.js +14 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +24 -24
- package/dist/{chunk-3KV2FFWH.mjs → chunk-R4QZREOK.mjs} +70 -56
- package/dist/chunk-R4QZREOK.mjs.map +1 -0
- package/dist/compat/index.d.mts +32 -2
- package/dist/compat/index.d.ts +32 -2
- package/dist/compat/index.js +14 -1
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +53 -54
- package/dist/function/index.mjs +3 -3
- package/dist/index.mjs +55 -55
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- package/dist/chunk-3KV2FFWH.mjs.map +0 -1
package/dist/array/index.mjs
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
zipObject
|
|
4
|
-
} from "../chunk-6GWEY5EL.mjs";
|
|
5
|
-
import {
|
|
6
|
-
zipWith
|
|
7
|
-
} from "../chunk-4KYXHZ4R.mjs";
|
|
8
|
-
import {
|
|
9
|
-
unzip
|
|
10
|
-
} from "../chunk-UYZKMBDO.mjs";
|
|
11
2
|
import {
|
|
12
3
|
unzipWith
|
|
13
4
|
} from "../chunk-IFNXROZR.mjs";
|
|
@@ -27,11 +18,11 @@ import {
|
|
|
27
18
|
zip
|
|
28
19
|
} from "../chunk-IDCUZVJL.mjs";
|
|
29
20
|
import {
|
|
30
|
-
|
|
31
|
-
} from "../chunk-
|
|
21
|
+
zipObject
|
|
22
|
+
} from "../chunk-6GWEY5EL.mjs";
|
|
32
23
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../chunk-
|
|
24
|
+
zipWith
|
|
25
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
35
26
|
import {
|
|
36
27
|
toFilled
|
|
37
28
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
@@ -44,9 +35,6 @@ import {
|
|
|
44
35
|
import {
|
|
45
36
|
unionWith
|
|
46
37
|
} from "../chunk-2ZCITDMK.mjs";
|
|
47
|
-
import {
|
|
48
|
-
uniqWith
|
|
49
|
-
} from "../chunk-237HGSZS.mjs";
|
|
50
38
|
import {
|
|
51
39
|
uniq
|
|
52
40
|
} from "../chunk-DVK2N4KC.mjs";
|
|
@@ -54,11 +42,11 @@ import {
|
|
|
54
42
|
uniqBy
|
|
55
43
|
} from "../chunk-B4COTK4K.mjs";
|
|
56
44
|
import {
|
|
57
|
-
|
|
58
|
-
} from "../chunk-
|
|
45
|
+
uniqWith
|
|
46
|
+
} from "../chunk-237HGSZS.mjs";
|
|
59
47
|
import {
|
|
60
|
-
|
|
61
|
-
} from "../chunk-
|
|
48
|
+
unzip
|
|
49
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
62
50
|
import {
|
|
63
51
|
sample
|
|
64
52
|
} from "../chunk-2KNLZB7V.mjs";
|
|
@@ -80,11 +68,11 @@ import {
|
|
|
80
68
|
takeRight
|
|
81
69
|
} from "../chunk-N3QYJX4T.mjs";
|
|
82
70
|
import {
|
|
83
|
-
|
|
84
|
-
} from "../chunk-
|
|
71
|
+
takeRightWhile
|
|
72
|
+
} from "../chunk-NTLX2MPV.mjs";
|
|
85
73
|
import {
|
|
86
|
-
|
|
87
|
-
} from "../chunk-
|
|
74
|
+
takeWhile
|
|
75
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
88
76
|
import {
|
|
89
77
|
intersectionBy
|
|
90
78
|
} from "../chunk-O6UXZR3U.mjs";
|
|
@@ -104,17 +92,14 @@ import {
|
|
|
104
92
|
minBy
|
|
105
93
|
} from "../chunk-IJD7FE2Z.mjs";
|
|
106
94
|
import {
|
|
107
|
-
|
|
108
|
-
} from "../chunk-
|
|
95
|
+
orderBy
|
|
96
|
+
} from "../chunk-7B7W36UP.mjs";
|
|
109
97
|
import {
|
|
110
|
-
|
|
111
|
-
} from "../chunk-
|
|
98
|
+
partition
|
|
99
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
112
100
|
import {
|
|
113
101
|
flattenDeep
|
|
114
102
|
} from "../chunk-ML727RRJ.mjs";
|
|
115
|
-
import {
|
|
116
|
-
flatten
|
|
117
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
118
103
|
import {
|
|
119
104
|
forEachRight
|
|
120
105
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -125,11 +110,11 @@ import {
|
|
|
125
110
|
head
|
|
126
111
|
} from "../chunk-HM2JT2RX.mjs";
|
|
127
112
|
import {
|
|
128
|
-
|
|
129
|
-
} from "../chunk-
|
|
113
|
+
initial
|
|
114
|
+
} from "../chunk-XPSOKBRZ.mjs";
|
|
130
115
|
import {
|
|
131
|
-
|
|
132
|
-
} from "../chunk-
|
|
116
|
+
intersection
|
|
117
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
133
118
|
import {
|
|
134
119
|
differenceBy
|
|
135
120
|
} from "../chunk-LVWX5B43.mjs";
|
|
@@ -148,12 +133,27 @@ import {
|
|
|
148
133
|
import {
|
|
149
134
|
dropWhile
|
|
150
135
|
} from "../chunk-LJ2C6MVP.mjs";
|
|
136
|
+
import {
|
|
137
|
+
fill
|
|
138
|
+
} from "../chunk-YFN6KOC4.mjs";
|
|
139
|
+
import {
|
|
140
|
+
flatMap
|
|
141
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
142
|
+
import {
|
|
143
|
+
flatten
|
|
144
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
151
145
|
import {
|
|
152
146
|
chunk
|
|
153
147
|
} from "../chunk-E6C5EZQA.mjs";
|
|
154
148
|
import {
|
|
155
149
|
compact
|
|
156
150
|
} from "../chunk-DTJJIMKJ.mjs";
|
|
151
|
+
import {
|
|
152
|
+
countBy
|
|
153
|
+
} from "../chunk-CRSKT4WW.mjs";
|
|
154
|
+
import {
|
|
155
|
+
difference
|
|
156
|
+
} from "../chunk-JPUKH67K.mjs";
|
|
157
157
|
import "../chunk-24FKGR6U.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
package/dist/browser.js
CHANGED
|
@@ -63,7 +63,7 @@ __export(compat_exports, {
|
|
|
63
63
|
dropRightWhile: () => dropRightWhile,
|
|
64
64
|
dropWhile: () => dropWhile,
|
|
65
65
|
endsWith: () => endsWith,
|
|
66
|
-
fill: () =>
|
|
66
|
+
fill: () => fill2,
|
|
67
67
|
first: () => head,
|
|
68
68
|
flatMap: () => flatMap,
|
|
69
69
|
flatten: () => flatten,
|
|
@@ -1148,6 +1148,19 @@ function difference2(arr, ...values) {
|
|
|
1148
1148
|
return difference(arr1, arr2);
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
1151
|
+
// src/compat/array/fill.ts
|
|
1152
|
+
function fill2(array, value, start = 0, end = array.length) {
|
|
1153
|
+
start = Math.floor(start);
|
|
1154
|
+
end = Math.floor(end);
|
|
1155
|
+
if (!start) {
|
|
1156
|
+
start = 0;
|
|
1157
|
+
}
|
|
1158
|
+
if (!end) {
|
|
1159
|
+
end = 0;
|
|
1160
|
+
}
|
|
1161
|
+
return fill(array, value, start, end);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1151
1164
|
// src/compat/_internal/isIndex.ts
|
|
1152
1165
|
var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
|
|
1153
1166
|
function isIndex(value) {
|