es-toolkit 1.17.0-dev.522 → 1.17.0-dev.523

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.
@@ -0,0 +1,18 @@
1
+ import { ExtractNestedArrayType } from './flattenDeep.mjs';
2
+
3
+ /**
4
+ * Recursively maps each element in an array using a provided iteratee function and then deeply flattens the resulting array.
5
+ *
6
+ * @template T - The type of elements within the array.
7
+ * @template U - The type of elements within the returned array from the iteratee function.
8
+ * @param {T[]} arr - The array to flatten.
9
+ * @param {(item: T) => U} iteratee - The function that produces the new array elements.
10
+ * @returns {Array<ExtractNestedArrayType<U>>} A new array that has been flattened.
11
+ *
12
+ * @example
13
+ * const result = flatMapDeep([1, 2, 3], n => [[n, n]]);
14
+ * // [1, 1, 2, 2, 3, 3]
15
+ */
16
+ declare function flatMapDeep<T, U>(arr: readonly T[], iteratee: (item: T) => U): Array<ExtractNestedArrayType<U>>;
17
+
18
+ export { flatMapDeep };
@@ -0,0 +1,18 @@
1
+ import { ExtractNestedArrayType } from './flattenDeep.js';
2
+
3
+ /**
4
+ * Recursively maps each element in an array using a provided iteratee function and then deeply flattens the resulting array.
5
+ *
6
+ * @template T - The type of elements within the array.
7
+ * @template U - The type of elements within the returned array from the iteratee function.
8
+ * @param {T[]} arr - The array to flatten.
9
+ * @param {(item: T) => U} iteratee - The function that produces the new array elements.
10
+ * @returns {Array<ExtractNestedArrayType<U>>} A new array that has been flattened.
11
+ *
12
+ * @example
13
+ * const result = flatMapDeep([1, 2, 3], n => [[n, n]]);
14
+ * // [1, 1, 2, 2, 3, 3]
15
+ */
16
+ declare function flatMapDeep<T, U>(arr: readonly T[], iteratee: (item: T) => U): Array<ExtractNestedArrayType<U>>;
17
+
18
+ export { flatMapDeep };
@@ -0,0 +1,7 @@
1
+ import { flattenDeep } from './flattenDeep.mjs';
2
+
3
+ function flatMapDeep(arr, iteratee) {
4
+ return flattenDeep(arr.map((item) => iteratee(item)));
5
+ }
6
+
7
+ export { flatMapDeep };
@@ -22,4 +22,4 @@ type ExtractNestedArrayType<T> = T extends ReadonlyArray<infer U> ? ExtractNeste
22
22
  */
23
23
  declare function flattenDeep<T>(arr: readonly T[]): Array<ExtractNestedArrayType<T>>;
24
24
 
25
- export { flattenDeep };
25
+ export { type ExtractNestedArrayType, flattenDeep };
@@ -22,4 +22,4 @@ type ExtractNestedArrayType<T> = T extends ReadonlyArray<infer U> ? ExtractNeste
22
22
  */
23
23
  declare function flattenDeep<T>(arr: readonly T[]): Array<ExtractNestedArrayType<T>>;
24
24
 
25
- export { flattenDeep };
25
+ export { type ExtractNestedArrayType, flattenDeep };
@@ -11,6 +11,7 @@ export { dropRightWhile } from './dropRightWhile.mjs';
11
11
  export { dropWhile } from './dropWhile.mjs';
12
12
  export { fill } from './fill.mjs';
13
13
  export { flatMap } from './flatMap.mjs';
14
+ export { flatMapDeep } from './flatMapDeep.mjs';
14
15
  export { flatten } from './flatten.mjs';
15
16
  export { flattenDeep } from './flattenDeep.mjs';
16
17
  export { forEachRight } from './forEachRight.mjs';
@@ -11,6 +11,7 @@ export { dropRightWhile } from './dropRightWhile.js';
11
11
  export { dropWhile } from './dropWhile.js';
12
12
  export { fill } from './fill.js';
13
13
  export { flatMap } from './flatMap.js';
14
+ export { flatMapDeep } from './flatMapDeep.js';
14
15
  export { flatten } from './flatten.js';
15
16
  export { flattenDeep } from './flattenDeep.js';
16
17
  export { forEachRight } from './forEachRight.js';
@@ -2,65 +2,548 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const initial = require('../_chunk/initial-L_KfII.js');
5
+ const randomInt = require('../_chunk/randomInt-CF7bZK.js');
6
+
7
+ function at(arr, indices) {
8
+ const result = [];
9
+ for (let i = 0; i < indices.length; i++) {
10
+ const index = indices[i];
11
+ result.push(arr.at(index));
12
+ }
13
+ return result;
14
+ }
15
+
16
+ function chunk(arr, size) {
17
+ if (!Number.isInteger(size) || size <= 0) {
18
+ throw new Error('Size must be an integer greater than zero.');
19
+ }
20
+ const chunkLength = Math.ceil(arr.length / size);
21
+ const result = Array(chunkLength);
22
+ for (let index = 0; index < chunkLength; index++) {
23
+ const start = index * size;
24
+ const end = start + size;
25
+ result[index] = arr.slice(start, end);
26
+ }
27
+ return result;
28
+ }
29
+
30
+ function compact(arr) {
31
+ const result = [];
32
+ for (const item of arr) {
33
+ if (item) {
34
+ result.push(item);
35
+ }
36
+ }
37
+ return result;
38
+ }
39
+
40
+ function countBy(arr, mapper) {
41
+ const result = {};
42
+ for (const item of arr) {
43
+ const key = mapper(item);
44
+ result[key] = (result[key] ?? 0) + 1;
45
+ }
46
+ return result;
47
+ }
48
+
49
+ function difference(firstArr, secondArr) {
50
+ const secondSet = new Set(secondArr);
51
+ return firstArr.filter(item => !secondSet.has(item));
52
+ }
53
+
54
+ function differenceBy(firstArr, secondArr, mapper) {
55
+ const mappedSecondSet = new Set(secondArr.map(item => mapper(item)));
56
+ return firstArr.filter(item => {
57
+ return !mappedSecondSet.has(mapper(item));
58
+ });
59
+ }
60
+
61
+ function differenceWith(firstArr, secondArr, areItemsEqual) {
62
+ return firstArr.filter(firstItem => {
63
+ return secondArr.every(secondItem => {
64
+ return !areItemsEqual(firstItem, secondItem);
65
+ });
66
+ });
67
+ }
68
+
69
+ function drop(arr, itemsCount) {
70
+ itemsCount = Math.max(itemsCount, 0);
71
+ return arr.slice(itemsCount);
72
+ }
73
+
74
+ function dropRight(arr, itemsCount) {
75
+ itemsCount = Math.min(-itemsCount, 0);
76
+ if (itemsCount === 0) {
77
+ return arr.slice();
78
+ }
79
+ return arr.slice(0, itemsCount);
80
+ }
81
+
82
+ function dropRightWhile(arr, canContinueDropping) {
83
+ for (let i = arr.length - 1; i >= 0; i--) {
84
+ if (!canContinueDropping(arr[i])) {
85
+ return arr.slice(0, i + 1);
86
+ }
87
+ }
88
+ return [];
89
+ }
90
+
91
+ function dropWhile(arr, canContinueDropping) {
92
+ const dropEndIndex = arr.findIndex(item => !canContinueDropping(item));
93
+ if (dropEndIndex === -1) {
94
+ return [];
95
+ }
96
+ return arr.slice(dropEndIndex);
97
+ }
98
+
99
+ function fill(array, value, start = 0, end = array.length) {
100
+ const length = array.length;
101
+ const finalStart = Math.max(start >= 0 ? start : length + start, 0);
102
+ const finalEnd = Math.min(end >= 0 ? end : length + end, length);
103
+ for (let i = finalStart; i < finalEnd; i++) {
104
+ array[i] = value;
105
+ }
106
+ return array;
107
+ }
108
+
109
+ function flatten(arr, depth = 1) {
110
+ const result = [];
111
+ const flooredDepth = Math.floor(depth);
112
+ const recursive = (arr, currentDepth) => {
113
+ for (const item of arr) {
114
+ if (Array.isArray(item) && currentDepth < flooredDepth) {
115
+ recursive(item, currentDepth + 1);
116
+ }
117
+ else {
118
+ result.push(item);
119
+ }
120
+ }
121
+ };
122
+ recursive(arr, 0);
123
+ return result;
124
+ }
125
+
126
+ function flatMap(arr, iteratee, depth = 1) {
127
+ return flatten(arr.map(item => iteratee(item)), depth);
128
+ }
6
129
 
7
130
  function flattenDeep(arr) {
8
- return initial.flatten(arr, Infinity);
9
- }
10
-
11
- exports.at = initial.at;
12
- exports.chunk = initial.chunk;
13
- exports.compact = initial.compact;
14
- exports.countBy = initial.countBy;
15
- exports.difference = initial.difference;
16
- exports.differenceBy = initial.differenceBy;
17
- exports.differenceWith = initial.differenceWith;
18
- exports.drop = initial.drop;
19
- exports.dropRight = initial.dropRight;
20
- exports.dropRightWhile = initial.dropRightWhile;
21
- exports.dropWhile = initial.dropWhile;
22
- exports.fill = initial.fill;
23
- exports.flatMap = initial.flatMap;
24
- exports.flatten = initial.flatten;
25
- exports.forEachRight = initial.forEachRight;
26
- exports.groupBy = initial.groupBy;
27
- exports.head = initial.head;
28
- exports.initial = initial.initial;
29
- exports.intersection = initial.intersection;
30
- exports.intersectionBy = initial.intersectionBy;
31
- exports.intersectionWith = initial.intersectionWith;
32
- exports.isSubset = initial.isSubset;
33
- exports.join = initial.join;
34
- exports.keyBy = initial.keyBy;
35
- exports.last = initial.last;
36
- exports.maxBy = initial.maxBy;
37
- exports.minBy = initial.minBy;
38
- exports.orderBy = initial.orderBy;
39
- exports.partition = initial.partition;
40
- exports.pullAt = initial.pullAt;
41
- exports.sample = initial.sample;
42
- exports.sampleSize = initial.sampleSize;
43
- exports.shuffle = initial.shuffle;
44
- exports.sortBy = initial.sortBy;
45
- exports.tail = initial.tail;
46
- exports.take = initial.take;
47
- exports.takeRight = initial.takeRight;
48
- exports.takeRightWhile = initial.takeRightWhile;
49
- exports.takeWhile = initial.takeWhile;
50
- exports.toFilled = initial.toFilled;
51
- exports.union = initial.union;
52
- exports.unionBy = initial.unionBy;
53
- exports.unionWith = initial.unionWith;
54
- exports.uniq = initial.uniq;
55
- exports.uniqBy = initial.uniqBy;
56
- exports.uniqWith = initial.uniqWith;
57
- exports.unzip = initial.unzip;
58
- exports.unzipWith = initial.unzipWith;
59
- exports.without = initial.without;
60
- exports.xor = initial.xor;
61
- exports.xorBy = initial.xorBy;
62
- exports.xorWith = initial.xorWith;
63
- exports.zip = initial.zip;
64
- exports.zipObject = initial.zipObject;
65
- exports.zipWith = initial.zipWith;
131
+ return flatten(arr, Infinity);
132
+ }
133
+
134
+ function flatMapDeep(arr, iteratee) {
135
+ return flattenDeep(arr.map((item) => iteratee(item)));
136
+ }
137
+
138
+ function forEachRight(arr, callback) {
139
+ for (let i = arr.length - 1; i >= 0; i--) {
140
+ const element = arr[i];
141
+ callback(element, i, arr);
142
+ }
143
+ }
144
+
145
+ function groupBy(arr, getKeyFromItem) {
146
+ const result = {};
147
+ for (const item of arr) {
148
+ const key = getKeyFromItem(item);
149
+ if (result[key] == null) {
150
+ result[key] = [];
151
+ }
152
+ result[key].push(item);
153
+ }
154
+ return result;
155
+ }
156
+
157
+ function intersection(firstArr, secondArr) {
158
+ const secondSet = new Set(secondArr);
159
+ return firstArr.filter(item => {
160
+ return secondSet.has(item);
161
+ });
162
+ }
163
+
164
+ function intersectionBy(firstArr, secondArr, mapper) {
165
+ const mappedSecondSet = new Set(secondArr.map(mapper));
166
+ return firstArr.filter(item => mappedSecondSet.has(mapper(item)));
167
+ }
168
+
169
+ function intersectionWith(firstArr, secondArr, areItemsEqual) {
170
+ return firstArr.filter(firstItem => {
171
+ return secondArr.some(secondItem => {
172
+ return areItemsEqual(firstItem, secondItem);
173
+ });
174
+ });
175
+ }
176
+
177
+ function join(array, separator = ',') {
178
+ return array.join(separator);
179
+ }
180
+
181
+ function keyBy(arr, getKeyFromItem) {
182
+ const result = {};
183
+ for (const item of arr) {
184
+ const key = getKeyFromItem(item);
185
+ result[key] = item;
186
+ }
187
+ return result;
188
+ }
189
+
190
+ function maxBy(items, getValue) {
191
+ let maxElement = items[0];
192
+ let max = -Infinity;
193
+ for (const element of items) {
194
+ const value = getValue(element);
195
+ if (value > max) {
196
+ max = value;
197
+ maxElement = element;
198
+ }
199
+ }
200
+ return maxElement;
201
+ }
202
+
203
+ function minBy(items, getValue) {
204
+ let minElement = items[0];
205
+ let min = Infinity;
206
+ for (const element of items) {
207
+ const value = getValue(element);
208
+ if (value < min) {
209
+ min = value;
210
+ minElement = element;
211
+ }
212
+ }
213
+ return minElement;
214
+ }
215
+
216
+ function compareValues(a, b, order) {
217
+ if (a < b) {
218
+ return order === 'asc' ? -1 : 1;
219
+ }
220
+ if (a > b) {
221
+ return order === 'asc' ? 1 : -1;
222
+ }
223
+ return 0;
224
+ }
225
+
226
+ function orderBy(arr, criteria, orders) {
227
+ return arr.slice().sort((a, b) => {
228
+ const ordersLength = orders.length;
229
+ for (let i = 0; i < criteria.length; i++) {
230
+ const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
231
+ const criterion = criteria[i];
232
+ const criterionIsFunction = typeof criterion === 'function';
233
+ const valueA = criterionIsFunction ? criterion(a) : a[criterion];
234
+ const valueB = criterionIsFunction ? criterion(b) : b[criterion];
235
+ const result = compareValues(valueA, valueB, order);
236
+ if (result !== 0) {
237
+ return result;
238
+ }
239
+ }
240
+ return 0;
241
+ });
242
+ }
243
+
244
+ function partition(arr, isInTruthy) {
245
+ const truthy = [];
246
+ const falsy = [];
247
+ for (const item of arr) {
248
+ if (isInTruthy(item)) {
249
+ truthy.push(item);
250
+ }
251
+ else {
252
+ falsy.push(item);
253
+ }
254
+ }
255
+ return [truthy, falsy];
256
+ }
257
+
258
+ function pullAt(arr, indicesToRemove) {
259
+ const removed = at(arr, indicesToRemove);
260
+ const indices = new Set(indicesToRemove.slice().sort((x, y) => y - x));
261
+ for (const index of indices) {
262
+ arr.splice(index, 1);
263
+ }
264
+ return removed;
265
+ }
266
+
267
+ function sortBy(arr, criteria) {
268
+ return orderBy(arr, criteria, ['asc']);
269
+ }
270
+
271
+ function sample(arr) {
272
+ const randomIndex = Math.floor(Math.random() * arr.length);
273
+ return arr[randomIndex];
274
+ }
275
+
276
+ function sampleSize(array, size) {
277
+ if (size > array.length) {
278
+ throw new Error('Size must be less than or equal to the length of array.');
279
+ }
280
+ const result = new Array(size);
281
+ const selected = new Set();
282
+ for (let step = array.length - size, resultIndex = 0; step < array.length; step++, resultIndex++) {
283
+ let index = randomInt.randomInt(0, step + 1);
284
+ if (selected.has(index)) {
285
+ index = step;
286
+ }
287
+ selected.add(index);
288
+ result[resultIndex] = array[index];
289
+ }
290
+ return result;
291
+ }
292
+
293
+ function shuffle(arr) {
294
+ const result = arr.slice();
295
+ for (let i = result.length - 1; i >= 1; i--) {
296
+ const j = Math.floor(Math.random() * (i + 1));
297
+ [result[i], result[j]] = [result[j], result[i]];
298
+ }
299
+ return result;
300
+ }
301
+
302
+ function take(arr, count) {
303
+ return arr.slice(0, count);
304
+ }
305
+
306
+ function takeRight(arr, count = 1) {
307
+ if (count <= 0) {
308
+ return [];
309
+ }
310
+ return arr.slice(-count);
311
+ }
312
+
313
+ function takeRightWhile(arr, shouldContinueTaking) {
314
+ for (let i = arr.length - 1; i >= 0; i--) {
315
+ if (!shouldContinueTaking(arr[i])) {
316
+ return arr.slice(i + 1);
317
+ }
318
+ }
319
+ return arr.slice();
320
+ }
321
+
322
+ function takeWhile(arr, shouldContinueTaking) {
323
+ const result = [];
324
+ for (const item of arr) {
325
+ if (!shouldContinueTaking(item)) {
326
+ break;
327
+ }
328
+ result.push(item);
329
+ }
330
+ return result;
331
+ }
332
+
333
+ function uniq(arr) {
334
+ return Array.from(new Set(arr));
335
+ }
336
+
337
+ function union(arr1, arr2) {
338
+ return uniq(arr1.concat(arr2));
339
+ }
340
+
341
+ function unionBy(arr1, arr2, mapper) {
342
+ const map = new Map();
343
+ for (const item of [...arr1, ...arr2]) {
344
+ const key = mapper(item);
345
+ if (!map.has(key)) {
346
+ map.set(key, item);
347
+ }
348
+ }
349
+ return Array.from(map.values());
350
+ }
351
+
352
+ function uniqWith(arr, areItemsEqual) {
353
+ const result = [];
354
+ for (const item of arr) {
355
+ const isUniq = result.every(v => !areItemsEqual(v, item));
356
+ if (isUniq) {
357
+ result.push(item);
358
+ }
359
+ }
360
+ return result;
361
+ }
362
+
363
+ function unionWith(arr1, arr2, areItemsEqual) {
364
+ return uniqWith(arr1.concat(arr2), areItemsEqual);
365
+ }
366
+
367
+ function uniqBy(arr, mapper) {
368
+ const map = new Map();
369
+ for (const item of arr) {
370
+ const key = mapper(item);
371
+ if (!map.has(key)) {
372
+ map.set(key, item);
373
+ }
374
+ }
375
+ return Array.from(map.values());
376
+ }
377
+
378
+ function unzip(zipped) {
379
+ let maxLen = 0;
380
+ for (let i = 0; i < zipped.length; i++) {
381
+ if (zipped[i].length > maxLen) {
382
+ maxLen = zipped[i].length;
383
+ }
384
+ }
385
+ const result = new Array(maxLen);
386
+ for (let i = 0; i < maxLen; i++) {
387
+ result[i] = new Array(zipped.length);
388
+ for (let j = 0; j < zipped.length; j++) {
389
+ result[i][j] = zipped[j][i];
390
+ }
391
+ }
392
+ return result;
393
+ }
394
+
395
+ function unzipWith(target, iteratee) {
396
+ const maxLength = Math.max(...target.map(innerArray => innerArray.length));
397
+ const result = new Array(maxLength);
398
+ for (let i = 0; i < maxLength; i++) {
399
+ const group = new Array(target.length);
400
+ for (let j = 0; j < target.length; j++) {
401
+ group[j] = target[j][i];
402
+ }
403
+ result[i] = iteratee(...group);
404
+ }
405
+ return result;
406
+ }
407
+
408
+ function xor(arr1, arr2) {
409
+ return difference(union(arr1, arr2), intersection(arr1, arr2));
410
+ }
411
+
412
+ function xorBy(arr1, arr2, mapper) {
413
+ const union = unionBy(arr1, arr2, mapper);
414
+ const intersection = intersectionBy(arr1, arr2, mapper);
415
+ return differenceBy(union, intersection, mapper);
416
+ }
417
+
418
+ function xorWith(arr1, arr2, areElementsEqual) {
419
+ const union = unionWith(arr1, arr2, areElementsEqual);
420
+ const intersection = intersectionWith(arr1, arr2, areElementsEqual);
421
+ return differenceWith(union, intersection, areElementsEqual);
422
+ }
423
+
424
+ function zip(...arrs) {
425
+ const result = [];
426
+ const maxIndex = Math.max(...arrs.map(x => x.length));
427
+ for (let i = 0; i < maxIndex; i++) {
428
+ const element = [];
429
+ for (const arr of arrs) {
430
+ element.push(arr[i]);
431
+ }
432
+ result.push(element);
433
+ }
434
+ return result;
435
+ }
436
+
437
+ function zipObject(keys, values) {
438
+ const result = {};
439
+ for (let i = 0; i < keys.length; i++) {
440
+ result[keys[i]] = values[i];
441
+ }
442
+ return result;
443
+ }
444
+
445
+ function zipWith(arr1, ...rest) {
446
+ const arrs = [arr1, ...rest.slice(0, -1)];
447
+ const combine = rest[rest.length - 1];
448
+ const result = [];
449
+ const maxIndex = Math.max(...arrs.map(arr => arr.length));
450
+ for (let i = 0; i < maxIndex; i++) {
451
+ const elements = arrs.map(arr => arr[i]);
452
+ result.push(combine(...elements));
453
+ }
454
+ return result;
455
+ }
456
+
457
+ function without(array, ...values) {
458
+ const valuesSet = new Set(values);
459
+ return array.filter(item => !valuesSet.has(item));
460
+ }
461
+
462
+ function head(arr) {
463
+ return arr[0];
464
+ }
465
+
466
+ function isSubset(superset, subset) {
467
+ return difference(subset, superset).length === 0;
468
+ }
469
+
470
+ function tail(arr) {
471
+ return arr.slice(1);
472
+ }
473
+
474
+ function toFilled(arr, value, start = 0, end = arr.length) {
475
+ const length = arr.length;
476
+ const finalStart = Math.max(start >= 0 ? start : length + start, 0);
477
+ const finalEnd = Math.min(end >= 0 ? end : length + end, length);
478
+ const newArr = arr.slice();
479
+ for (let i = finalStart; i < finalEnd; i++) {
480
+ newArr[i] = value;
481
+ }
482
+ return newArr;
483
+ }
484
+
485
+ function last(arr) {
486
+ return arr[arr.length - 1];
487
+ }
488
+
489
+ function initial(arr) {
490
+ return arr.slice(0, -1);
491
+ }
492
+
493
+ exports.at = at;
494
+ exports.chunk = chunk;
495
+ exports.compact = compact;
496
+ exports.countBy = countBy;
497
+ exports.difference = difference;
498
+ exports.differenceBy = differenceBy;
499
+ exports.differenceWith = differenceWith;
500
+ exports.drop = drop;
501
+ exports.dropRight = dropRight;
502
+ exports.dropRightWhile = dropRightWhile;
503
+ exports.dropWhile = dropWhile;
504
+ exports.fill = fill;
505
+ exports.flatMap = flatMap;
506
+ exports.flatMapDeep = flatMapDeep;
507
+ exports.flatten = flatten;
66
508
  exports.flattenDeep = flattenDeep;
509
+ exports.forEachRight = forEachRight;
510
+ exports.groupBy = groupBy;
511
+ exports.head = head;
512
+ exports.initial = initial;
513
+ exports.intersection = intersection;
514
+ exports.intersectionBy = intersectionBy;
515
+ exports.intersectionWith = intersectionWith;
516
+ exports.isSubset = isSubset;
517
+ exports.join = join;
518
+ exports.keyBy = keyBy;
519
+ exports.last = last;
520
+ exports.maxBy = maxBy;
521
+ exports.minBy = minBy;
522
+ exports.orderBy = orderBy;
523
+ exports.partition = partition;
524
+ exports.pullAt = pullAt;
525
+ exports.sample = sample;
526
+ exports.sampleSize = sampleSize;
527
+ exports.shuffle = shuffle;
528
+ exports.sortBy = sortBy;
529
+ exports.tail = tail;
530
+ exports.take = take;
531
+ exports.takeRight = takeRight;
532
+ exports.takeRightWhile = takeRightWhile;
533
+ exports.takeWhile = takeWhile;
534
+ exports.toFilled = toFilled;
535
+ exports.union = union;
536
+ exports.unionBy = unionBy;
537
+ exports.unionWith = unionWith;
538
+ exports.uniq = uniq;
539
+ exports.uniqBy = uniqBy;
540
+ exports.uniqWith = uniqWith;
541
+ exports.unzip = unzip;
542
+ exports.unzipWith = unzipWith;
543
+ exports.without = without;
544
+ exports.xor = xor;
545
+ exports.xorBy = xorBy;
546
+ exports.xorWith = xorWith;
547
+ exports.zip = zip;
548
+ exports.zipObject = zipObject;
549
+ exports.zipWith = zipWith;
@@ -11,6 +11,7 @@ export { dropRightWhile } from './dropRightWhile.mjs';
11
11
  export { dropWhile } from './dropWhile.mjs';
12
12
  export { fill } from './fill.mjs';
13
13
  export { flatMap } from './flatMap.mjs';
14
+ export { flatMapDeep } from './flatMapDeep.mjs';
14
15
  export { flatten } from './flatten.mjs';
15
16
  export { flattenDeep } from './flattenDeep.mjs';
16
17
  export { forEachRight } from './forEachRight.mjs';