es-toolkit 1.10.1-dev.224 → 1.10.1-dev.227
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/{chunk-GDC64SYJ.mjs → chunk-5ASRKEB4.mjs} +1 -1
- package/dist/{chunk-GDC64SYJ.mjs.map → chunk-5ASRKEB4.mjs.map} +1 -1
- package/dist/{chunk-IZAD2S7R.mjs → chunk-MY4G7R3I.mjs} +2 -2
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +57 -57
- package/dist/function/index.mjs +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -57
- package/dist/math/index.js.map +1 -1
- package/dist/math/index.mjs +2 -2
- package/dist/math/mean.d.mts +1 -1
- package/dist/math/mean.d.ts +1 -1
- package/dist/math/mean.js.map +1 -1
- package/dist/math/mean.mjs +1 -1
- package/dist/math/meanBy.js.map +1 -1
- package/dist/math/meanBy.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-IZAD2S7R.mjs.map → chunk-MY4G7R3I.mjs.map} +0 -0
package/dist/array/index.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
+
import {
|
|
3
|
+
unzipWith
|
|
4
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
5
|
+
import {
|
|
6
|
+
without
|
|
7
|
+
} from "../chunk-PYEYV7BY.mjs";
|
|
2
8
|
import {
|
|
3
9
|
xor
|
|
4
10
|
} from "../chunk-L7FQX5MN.mjs";
|
|
@@ -17,12 +23,21 @@ import {
|
|
|
17
23
|
import {
|
|
18
24
|
zipWith
|
|
19
25
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
26
|
+
import {
|
|
27
|
+
toFilled
|
|
28
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
29
|
+
import {
|
|
30
|
+
union
|
|
31
|
+
} from "../chunk-R6QA7PLZ.mjs";
|
|
20
32
|
import {
|
|
21
33
|
unionBy
|
|
22
34
|
} from "../chunk-NFS7RWWE.mjs";
|
|
23
35
|
import {
|
|
24
36
|
unionWith
|
|
25
37
|
} from "../chunk-2ZCITDMK.mjs";
|
|
38
|
+
import {
|
|
39
|
+
uniq
|
|
40
|
+
} from "../chunk-DVK2N4KC.mjs";
|
|
26
41
|
import {
|
|
27
42
|
uniqBy
|
|
28
43
|
} from "../chunk-OXAZEEGP.mjs";
|
|
@@ -33,11 +48,13 @@ import {
|
|
|
33
48
|
unzip
|
|
34
49
|
} from "../chunk-UYZKMBDO.mjs";
|
|
35
50
|
import {
|
|
36
|
-
|
|
37
|
-
} from "../chunk-
|
|
51
|
+
sample
|
|
52
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
38
53
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../chunk-
|
|
54
|
+
sampleSize
|
|
55
|
+
} from "../chunk-EHSKB6DF.mjs";
|
|
56
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
57
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
41
58
|
import {
|
|
42
59
|
shuffle
|
|
43
60
|
} from "../chunk-G7UQ5PUR.mjs";
|
|
@@ -57,14 +74,11 @@ import {
|
|
|
57
74
|
takeWhile
|
|
58
75
|
} from "../chunk-2IXFGSUA.mjs";
|
|
59
76
|
import {
|
|
60
|
-
|
|
61
|
-
} from "../chunk-
|
|
62
|
-
import {
|
|
63
|
-
union
|
|
64
|
-
} from "../chunk-R6QA7PLZ.mjs";
|
|
77
|
+
intersectionBy
|
|
78
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
65
79
|
import {
|
|
66
|
-
|
|
67
|
-
} from "../chunk-
|
|
80
|
+
intersectionWith
|
|
81
|
+
} from "../chunk-XI7KRD2C.mjs";
|
|
68
82
|
import {
|
|
69
83
|
keyBy
|
|
70
84
|
} from "../chunk-AJKZMN2V.mjs";
|
|
@@ -84,13 +98,8 @@ import {
|
|
|
84
98
|
partition
|
|
85
99
|
} from "../chunk-DN3NOZ3H.mjs";
|
|
86
100
|
import {
|
|
87
|
-
|
|
88
|
-
} from "../chunk-
|
|
89
|
-
import {
|
|
90
|
-
sampleSize
|
|
91
|
-
} from "../chunk-EHSKB6DF.mjs";
|
|
92
|
-
import "../chunk-GIWAOOFY.mjs";
|
|
93
|
-
import "../chunk-SYWMYQYJ.mjs";
|
|
101
|
+
flattenDeep
|
|
102
|
+
} from "../chunk-ML727RRJ.mjs";
|
|
94
103
|
import {
|
|
95
104
|
forEachRight
|
|
96
105
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -107,11 +116,11 @@ import {
|
|
|
107
116
|
intersection
|
|
108
117
|
} from "../chunk-FVVSE2F2.mjs";
|
|
109
118
|
import {
|
|
110
|
-
|
|
111
|
-
} from "../chunk-
|
|
119
|
+
differenceBy
|
|
120
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
112
121
|
import {
|
|
113
|
-
|
|
114
|
-
} from "../chunk-
|
|
122
|
+
differenceWith
|
|
123
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
115
124
|
import {
|
|
116
125
|
drop
|
|
117
126
|
} from "../chunk-S3CORED5.mjs";
|
|
@@ -130,9 +139,6 @@ import {
|
|
|
130
139
|
import {
|
|
131
140
|
flatMap
|
|
132
141
|
} from "../chunk-KBXHURLW.mjs";
|
|
133
|
-
import {
|
|
134
|
-
flattenDeep
|
|
135
|
-
} from "../chunk-ML727RRJ.mjs";
|
|
136
142
|
import {
|
|
137
143
|
flatten
|
|
138
144
|
} from "../chunk-33MSBDC6.mjs";
|
|
@@ -148,12 +154,6 @@ import {
|
|
|
148
154
|
import {
|
|
149
155
|
difference
|
|
150
156
|
} from "../chunk-JPUKH67K.mjs";
|
|
151
|
-
import {
|
|
152
|
-
differenceBy
|
|
153
|
-
} from "../chunk-LVWX5B43.mjs";
|
|
154
|
-
import {
|
|
155
|
-
differenceWith
|
|
156
|
-
} from "../chunk-6NVQAHXP.mjs";
|
|
157
157
|
import "../chunk-2MM5EJJX.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/math/mean.ts"],"sourcesContent":["import { sum } from './sum.ts';\n\n/**\n * Calculates the average of an array of numbers.\n *\n * If the array is empty, this function returns `NaN`.\n *\n * @param {number[]} nums - An array of numbers to calculate the average.\n * @returns {number} The average of all the numbers in the array.\n *\n * @example\n * const numbers = [1, 2, 3, 4, 5];\n * const result =
|
|
1
|
+
{"version":3,"sources":["../src/math/mean.ts"],"sourcesContent":["import { sum } from './sum.ts';\n\n/**\n * Calculates the average of an array of numbers.\n *\n * If the array is empty, this function returns `NaN`.\n *\n * @param {number[]} nums - An array of numbers to calculate the average.\n * @returns {number} The average of all the numbers in the array.\n *\n * @example\n * const numbers = [1, 2, 3, 4, 5];\n * const result = mean(numbers);\n * // result will be 3\n */\nexport function mean(nums: readonly number[]): number {\n return sum(nums) / nums.length;\n}\n"],"mappings":";;;;;AAeO,SAAS,KAAK,MAAiC;AACpD,SAAO,IAAI,IAAI,IAAI,KAAK;AAC1B;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mean
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ASRKEB4.mjs";
|
|
4
4
|
|
|
5
5
|
// src/math/meanBy.ts
|
|
6
6
|
function meanBy(items, getValue) {
|
|
@@ -11,4 +11,4 @@ function meanBy(items, getValue) {
|
|
|
11
11
|
export {
|
|
12
12
|
meanBy
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-MY4G7R3I.mjs.map
|