es-toolkit 1.10.1-dev.226 → 1.10.1-dev.228
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,10 +1,4 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
unzipWith
|
|
4
|
-
} from "../chunk-IFNXROZR.mjs";
|
|
5
|
-
import {
|
|
6
|
-
without
|
|
7
|
-
} from "../chunk-PYEYV7BY.mjs";
|
|
8
2
|
import {
|
|
9
3
|
xor
|
|
10
4
|
} from "../chunk-L7FQX5MN.mjs";
|
|
@@ -23,21 +17,12 @@ import {
|
|
|
23
17
|
import {
|
|
24
18
|
zipWith
|
|
25
19
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
26
|
-
import {
|
|
27
|
-
toFilled
|
|
28
|
-
} from "../chunk-OP4OAKQJ.mjs";
|
|
29
|
-
import {
|
|
30
|
-
union
|
|
31
|
-
} from "../chunk-R6QA7PLZ.mjs";
|
|
32
20
|
import {
|
|
33
21
|
unionBy
|
|
34
22
|
} from "../chunk-NFS7RWWE.mjs";
|
|
35
23
|
import {
|
|
36
24
|
unionWith
|
|
37
25
|
} from "../chunk-2ZCITDMK.mjs";
|
|
38
|
-
import {
|
|
39
|
-
uniq
|
|
40
|
-
} from "../chunk-DVK2N4KC.mjs";
|
|
41
26
|
import {
|
|
42
27
|
uniqBy
|
|
43
28
|
} from "../chunk-OXAZEEGP.mjs";
|
|
@@ -48,13 +33,11 @@ import {
|
|
|
48
33
|
unzip
|
|
49
34
|
} from "../chunk-UYZKMBDO.mjs";
|
|
50
35
|
import {
|
|
51
|
-
|
|
52
|
-
} from "../chunk-
|
|
36
|
+
unzipWith
|
|
37
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
53
38
|
import {
|
|
54
|
-
|
|
55
|
-
} from "../chunk-
|
|
56
|
-
import "../chunk-GIWAOOFY.mjs";
|
|
57
|
-
import "../chunk-SYWMYQYJ.mjs";
|
|
39
|
+
without
|
|
40
|
+
} from "../chunk-PYEYV7BY.mjs";
|
|
58
41
|
import {
|
|
59
42
|
shuffle
|
|
60
43
|
} from "../chunk-G7UQ5PUR.mjs";
|
|
@@ -74,11 +57,14 @@ import {
|
|
|
74
57
|
takeWhile
|
|
75
58
|
} from "../chunk-2IXFGSUA.mjs";
|
|
76
59
|
import {
|
|
77
|
-
|
|
78
|
-
} from "../chunk-
|
|
60
|
+
toFilled
|
|
61
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
79
62
|
import {
|
|
80
|
-
|
|
81
|
-
} from "../chunk-
|
|
63
|
+
union
|
|
64
|
+
} from "../chunk-R6QA7PLZ.mjs";
|
|
65
|
+
import {
|
|
66
|
+
uniq
|
|
67
|
+
} from "../chunk-DVK2N4KC.mjs";
|
|
82
68
|
import {
|
|
83
69
|
keyBy
|
|
84
70
|
} from "../chunk-AJKZMN2V.mjs";
|
|
@@ -98,8 +84,13 @@ import {
|
|
|
98
84
|
partition
|
|
99
85
|
} from "../chunk-DN3NOZ3H.mjs";
|
|
100
86
|
import {
|
|
101
|
-
|
|
102
|
-
} from "../chunk-
|
|
87
|
+
sample
|
|
88
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
89
|
+
import {
|
|
90
|
+
sampleSize
|
|
91
|
+
} from "../chunk-EHSKB6DF.mjs";
|
|
92
|
+
import "../chunk-GIWAOOFY.mjs";
|
|
93
|
+
import "../chunk-SYWMYQYJ.mjs";
|
|
103
94
|
import {
|
|
104
95
|
forEachRight
|
|
105
96
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -116,11 +107,11 @@ import {
|
|
|
116
107
|
intersection
|
|
117
108
|
} from "../chunk-FVVSE2F2.mjs";
|
|
118
109
|
import {
|
|
119
|
-
|
|
120
|
-
} from "../chunk-
|
|
110
|
+
intersectionBy
|
|
111
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
121
112
|
import {
|
|
122
|
-
|
|
123
|
-
} from "../chunk-
|
|
113
|
+
intersectionWith
|
|
114
|
+
} from "../chunk-XI7KRD2C.mjs";
|
|
124
115
|
import {
|
|
125
116
|
drop
|
|
126
117
|
} from "../chunk-S3CORED5.mjs";
|
|
@@ -139,6 +130,9 @@ import {
|
|
|
139
130
|
import {
|
|
140
131
|
flatMap
|
|
141
132
|
} from "../chunk-KBXHURLW.mjs";
|
|
133
|
+
import {
|
|
134
|
+
flattenDeep
|
|
135
|
+
} from "../chunk-ML727RRJ.mjs";
|
|
142
136
|
import {
|
|
143
137
|
flatten
|
|
144
138
|
} from "../chunk-33MSBDC6.mjs";
|
|
@@ -154,6 +148,12 @@ import {
|
|
|
154
148
|
import {
|
|
155
149
|
difference
|
|
156
150
|
} 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
|