es-toolkit 1.12.0-dev.277 → 1.12.0-dev.278
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 +31 -31
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +2 -0
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +53 -52
- package/dist/function/index.mjs +6 -6
- package/dist/index.mjs +52 -52
- package/package.json +1 -1
package/dist/array/index.mjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
+
import {
|
|
3
|
+
zipWith
|
|
4
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
5
|
+
import {
|
|
6
|
+
unzip
|
|
7
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
8
|
+
import {
|
|
9
|
+
unzipWith
|
|
10
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
2
11
|
import {
|
|
3
12
|
without
|
|
4
13
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -18,8 +27,11 @@ import {
|
|
|
18
27
|
zipObject
|
|
19
28
|
} from "../chunk-6GWEY5EL.mjs";
|
|
20
29
|
import {
|
|
21
|
-
|
|
22
|
-
} from "../chunk-
|
|
30
|
+
takeWhile
|
|
31
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
32
|
+
import {
|
|
33
|
+
toFilled
|
|
34
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
23
35
|
import {
|
|
24
36
|
union
|
|
25
37
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -39,11 +51,11 @@ import {
|
|
|
39
51
|
uniqWith
|
|
40
52
|
} from "../chunk-237HGSZS.mjs";
|
|
41
53
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../chunk-
|
|
54
|
+
partition
|
|
55
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
44
56
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunk-
|
|
57
|
+
sample
|
|
58
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
47
59
|
import {
|
|
48
60
|
sampleSize
|
|
49
61
|
} from "../chunk-EHSKB6DF.mjs";
|
|
@@ -65,11 +77,11 @@ import {
|
|
|
65
77
|
takeRightWhile
|
|
66
78
|
} from "../chunk-NTLX2MPV.mjs";
|
|
67
79
|
import {
|
|
68
|
-
|
|
69
|
-
} from "../chunk-
|
|
80
|
+
intersection
|
|
81
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
70
82
|
import {
|
|
71
|
-
|
|
72
|
-
} from "../chunk-
|
|
83
|
+
intersectionBy
|
|
84
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
73
85
|
import {
|
|
74
86
|
intersectionWith
|
|
75
87
|
} from "../chunk-XI7KRD2C.mjs";
|
|
@@ -89,14 +101,14 @@ import {
|
|
|
89
101
|
orderBy
|
|
90
102
|
} from "../chunk-7B7W36UP.mjs";
|
|
91
103
|
import {
|
|
92
|
-
|
|
93
|
-
} from "../chunk-
|
|
94
|
-
import {
|
|
95
|
-
sample
|
|
96
|
-
} from "../chunk-2KNLZB7V.mjs";
|
|
104
|
+
flatMap
|
|
105
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
97
106
|
import {
|
|
98
107
|
flattenDeep
|
|
99
108
|
} from "../chunk-ML727RRJ.mjs";
|
|
109
|
+
import {
|
|
110
|
+
flatten
|
|
111
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
100
112
|
import {
|
|
101
113
|
forEachRight
|
|
102
114
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -110,11 +122,11 @@ import {
|
|
|
110
122
|
initial
|
|
111
123
|
} from "../chunk-XPSOKBRZ.mjs";
|
|
112
124
|
import {
|
|
113
|
-
|
|
114
|
-
} from "../chunk-
|
|
125
|
+
difference
|
|
126
|
+
} from "../chunk-JPUKH67K.mjs";
|
|
115
127
|
import {
|
|
116
|
-
|
|
117
|
-
} from "../chunk-
|
|
128
|
+
differenceBy
|
|
129
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
118
130
|
import {
|
|
119
131
|
differenceWith
|
|
120
132
|
} from "../chunk-6NVQAHXP.mjs";
|
|
@@ -133,12 +145,6 @@ import {
|
|
|
133
145
|
import {
|
|
134
146
|
fill
|
|
135
147
|
} from "../chunk-YFN6KOC4.mjs";
|
|
136
|
-
import {
|
|
137
|
-
flatMap
|
|
138
|
-
} from "../chunk-UY76KTPE.mjs";
|
|
139
|
-
import {
|
|
140
|
-
flatten
|
|
141
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
142
148
|
import {
|
|
143
149
|
chunk
|
|
144
150
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -148,12 +154,6 @@ import {
|
|
|
148
154
|
import {
|
|
149
155
|
countBy
|
|
150
156
|
} from "../chunk-CRSKT4WW.mjs";
|
|
151
|
-
import {
|
|
152
|
-
difference
|
|
153
|
-
} from "../chunk-JPUKH67K.mjs";
|
|
154
|
-
import {
|
|
155
|
-
differenceBy
|
|
156
|
-
} from "../chunk-LVWX5B43.mjs";
|
|
157
157
|
import "../chunk-424M7IR7.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
package/dist/compat/index.d.mts
CHANGED
|
@@ -42,7 +42,7 @@ export { zip } from '../array/zip.mjs';
|
|
|
42
42
|
export { zipObject } from '../array/zipObject.mjs';
|
|
43
43
|
export { zipWith } from '../array/zipWith.mjs';
|
|
44
44
|
export { without } from '../array/without.mjs';
|
|
45
|
-
export { head } from '../array/head.mjs';
|
|
45
|
+
export { head as first, head } from '../array/head.mjs';
|
|
46
46
|
export { tail } from '../array/tail.mjs';
|
|
47
47
|
export { toFilled } from '../array/toFilled.mjs';
|
|
48
48
|
export { last } from '../array/last.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export { zip } from '../array/zip.js';
|
|
|
42
42
|
export { zipObject } from '../array/zipObject.js';
|
|
43
43
|
export { zipWith } from '../array/zipWith.js';
|
|
44
44
|
export { without } from '../array/without.js';
|
|
45
|
-
export { head } from '../array/head.js';
|
|
45
|
+
export { head as first, head } from '../array/head.js';
|
|
46
46
|
export { tail } from '../array/tail.js';
|
|
47
47
|
export { toFilled } from '../array/toFilled.js';
|
|
48
48
|
export { last } from '../array/last.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -75,6 +75,7 @@ __export(compat_exports, {
|
|
|
75
75
|
dropWhile: () => dropWhile,
|
|
76
76
|
endsWith: () => endsWith,
|
|
77
77
|
fill: () => fill,
|
|
78
|
+
first: () => head,
|
|
78
79
|
flatMap: () => flatMap,
|
|
79
80
|
flatten: () => flatten,
|
|
80
81
|
flattenDeep: () => flattenDeep,
|
|
@@ -1268,6 +1269,7 @@ function min(items = []) {
|
|
|
1268
1269
|
dropWhile,
|
|
1269
1270
|
endsWith,
|
|
1270
1271
|
fill,
|
|
1272
|
+
first,
|
|
1271
1273
|
flatMap,
|
|
1272
1274
|
flatten,
|
|
1273
1275
|
flattenDeep,
|