es-toolkit 1.23.0 → 1.24.0

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +1 -1
  3. package/dist/_chunk/{isWeakSet-BAMm2l.js → isWeakSet-Bd6nry.js} +59 -46
  4. package/dist/_chunk/{range-BXlMmn.js → sumBy-BkErWJ.js} +25 -5
  5. package/dist/_chunk/{isObjectLike-aywuSF.js → toMerged-DDLv0D.js} +88 -86
  6. package/dist/_chunk/{flowRight-Dv8J0U.js → unary-BZ5Ixo.js} +27 -64
  7. package/dist/_chunk/{zipWith-EOU_KZ.js → zipWith-wpjySR.js} +8 -17
  8. package/dist/array/dropRightWhile.d.mts +2 -2
  9. package/dist/array/dropRightWhile.d.ts +2 -2
  10. package/dist/array/dropRightWhile.mjs +1 -1
  11. package/dist/array/dropWhile.d.mts +1 -1
  12. package/dist/array/dropWhile.d.ts +1 -1
  13. package/dist/array/index.js +1 -1
  14. package/dist/array/unionBy.mjs +3 -10
  15. package/dist/browser.global.js +1 -1
  16. package/dist/browser.global.js.map +1 -1
  17. package/dist/compat/_internal/MAX_ARRAY_LENGTH.mjs +3 -0
  18. package/dist/compat/_internal/isIterateeCall.mjs +17 -0
  19. package/dist/compat/array/difference.d.mts +9 -3
  20. package/dist/compat/array/difference.d.ts +9 -3
  21. package/dist/compat/array/difference.mjs +12 -3
  22. package/dist/compat/array/dropRightWhile.d.mts +60 -0
  23. package/dist/compat/array/dropRightWhile.d.ts +60 -0
  24. package/dist/compat/array/dropRightWhile.mjs +27 -0
  25. package/dist/compat/array/every.mjs +4 -5
  26. package/dist/compat/array/filter.mjs +4 -5
  27. package/dist/compat/array/find.mjs +4 -5
  28. package/dist/compat/array/includes.mjs +2 -1
  29. package/dist/compat/array/slice.d.mts +18 -0
  30. package/dist/compat/array/slice.d.ts +18 -0
  31. package/dist/compat/array/slice.mjs +38 -0
  32. package/dist/compat/array/take.d.mts +25 -0
  33. package/dist/compat/array/take.d.ts +25 -0
  34. package/dist/compat/array/take.mjs +10 -0
  35. package/dist/compat/function/before.d.mts +26 -0
  36. package/dist/compat/function/before.d.ts +26 -0
  37. package/dist/compat/function/before.mjs +20 -0
  38. package/dist/compat/function/curryRight.d.mts +50 -0
  39. package/dist/compat/function/curryRight.d.ts +50 -0
  40. package/dist/compat/function/curryRight.mjs +64 -0
  41. package/dist/compat/index.d.mts +86 -75
  42. package/dist/compat/index.d.ts +86 -75
  43. package/dist/compat/index.js +779 -496
  44. package/dist/compat/index.mjs +86 -75
  45. package/dist/compat/object/defaults.d.mts +120 -0
  46. package/dist/compat/object/defaults.d.ts +120 -0
  47. package/dist/compat/object/defaults.mjs +21 -0
  48. package/dist/compat/object/invertBy.d.mts +27 -0
  49. package/dist/compat/object/invertBy.d.ts +27 -0
  50. package/dist/compat/object/invertBy.mjs +27 -0
  51. package/dist/compat/object/omit.d.mts +1 -1
  52. package/dist/compat/object/omit.d.ts +1 -1
  53. package/dist/compat/object/pick.d.mts +1 -1
  54. package/dist/compat/object/pick.d.ts +1 -1
  55. package/dist/compat/object/toDefaulted.d.mts +122 -0
  56. package/dist/compat/object/toDefaulted.d.ts +122 -0
  57. package/dist/compat/object/toDefaulted.mjs +9 -0
  58. package/dist/compat/predicate/isArrayBuffer.d.mts +20 -0
  59. package/dist/compat/predicate/isArrayBuffer.d.ts +20 -0
  60. package/dist/compat/predicate/isArrayBuffer.mjs +7 -0
  61. package/dist/compat/predicate/isDate.d.mts +16 -0
  62. package/dist/compat/predicate/isDate.d.ts +16 -0
  63. package/dist/compat/predicate/isDate.mjs +7 -0
  64. package/dist/compat/predicate/isEqualWith.d.mts +38 -0
  65. package/dist/compat/predicate/isEqualWith.d.ts +38 -0
  66. package/dist/compat/predicate/isEqualWith.mjs +23 -0
  67. package/dist/compat/predicate/isMap.d.mts +20 -0
  68. package/dist/compat/predicate/isMap.d.ts +20 -0
  69. package/dist/compat/predicate/isMap.mjs +7 -0
  70. package/dist/compat/predicate/isMatch.mjs +2 -1
  71. package/dist/compat/predicate/isSet.d.mts +20 -0
  72. package/dist/compat/predicate/isSet.d.ts +20 -0
  73. package/dist/compat/predicate/isSet.mjs +7 -0
  74. package/dist/compat/string/upperCase.mjs +0 -1
  75. package/dist/compat/util/constant.d.mts +16 -0
  76. package/dist/compat/util/constant.d.ts +16 -0
  77. package/dist/compat/util/constant.mjs +5 -0
  78. package/dist/compat/util/defaultTo.d.mts +17 -0
  79. package/dist/compat/util/defaultTo.d.ts +17 -0
  80. package/dist/compat/util/defaultTo.mjs +8 -0
  81. package/dist/compat/util/eq.d.mts +16 -0
  82. package/dist/compat/util/eq.d.ts +16 -0
  83. package/dist/compat/util/eq.mjs +5 -0
  84. package/dist/compat/util/times.d.mts +14 -0
  85. package/dist/compat/util/times.d.ts +14 -0
  86. package/dist/compat/util/times.mjs +15 -0
  87. package/dist/compat/util/toLength.d.mts +18 -0
  88. package/dist/compat/util/toLength.d.ts +18 -0
  89. package/dist/compat/util/toLength.mjs +12 -0
  90. package/dist/function/before.d.mts +2 -2
  91. package/dist/function/before.d.ts +2 -2
  92. package/dist/function/before.mjs +2 -2
  93. package/dist/function/index.d.mts +10 -10
  94. package/dist/function/index.d.ts +10 -10
  95. package/dist/function/index.js +65 -32
  96. package/dist/function/index.mjs +10 -10
  97. package/dist/function/once.d.mts +16 -1
  98. package/dist/function/once.d.ts +16 -1
  99. package/dist/function/once.mjs +5 -7
  100. package/dist/index.d.mts +43 -41
  101. package/dist/index.d.ts +43 -41
  102. package/dist/index.js +59 -57
  103. package/dist/index.mjs +43 -41
  104. package/dist/math/index.d.mts +2 -1
  105. package/dist/math/index.d.ts +2 -1
  106. package/dist/math/index.js +9 -8
  107. package/dist/math/index.mjs +2 -1
  108. package/dist/math/rangeRight.d.mts +38 -0
  109. package/dist/math/rangeRight.d.ts +38 -0
  110. package/dist/math/rangeRight.mjs +20 -0
  111. package/dist/object/index.d.mts +7 -7
  112. package/dist/object/index.d.ts +7 -7
  113. package/dist/object/index.js +32 -32
  114. package/dist/object/index.mjs +7 -7
  115. package/dist/object/omitBy.d.mts +1 -1
  116. package/dist/object/omitBy.d.ts +1 -1
  117. package/dist/object/omitBy.mjs +4 -3
  118. package/dist/object/pickBy.mjs +4 -3
  119. package/dist/predicate/index.d.mts +11 -10
  120. package/dist/predicate/index.d.ts +11 -10
  121. package/dist/predicate/index.js +8 -7
  122. package/dist/predicate/index.mjs +11 -10
  123. package/dist/predicate/isBlob.d.mts +19 -0
  124. package/dist/predicate/isBlob.d.ts +19 -0
  125. package/dist/predicate/isBlob.mjs +8 -0
  126. package/dist/predicate/isEqualWith.mjs +2 -1
  127. package/dist/promise/index.d.mts +1 -1
  128. package/dist/promise/index.d.ts +1 -1
  129. package/dist/promise/index.mjs +1 -1
  130. package/dist/string/index.d.mts +12 -12
  131. package/dist/string/index.d.ts +12 -12
  132. package/dist/string/index.js +20 -20
  133. package/dist/string/index.mjs +12 -12
  134. package/package.json +10 -6
  135. package/dist/_chunk/{pad-BWiShN.js → upperFirst-BUECmK.js} +84 -84
@@ -0,0 +1,64 @@
1
+ function curryRight(func, arity = func.length, guard) {
2
+ arity = guard ? func.length : arity;
3
+ arity = Number.parseInt(arity, 10);
4
+ if (Number.isNaN(arity) || arity < 1) {
5
+ arity = 0;
6
+ }
7
+ const wrapper = function (...partialArgs) {
8
+ const holders = partialArgs.filter(item => item === curryRight.placeholder);
9
+ const length = partialArgs.length - holders.length;
10
+ if (length < arity) {
11
+ return makeCurryRight(func, arity - length, partialArgs);
12
+ }
13
+ if (this instanceof wrapper) {
14
+ return new func(...partialArgs);
15
+ }
16
+ return func.apply(this, partialArgs);
17
+ };
18
+ wrapper.placeholder = curryRightPlaceholder;
19
+ return wrapper;
20
+ }
21
+ function makeCurryRight(func, arity, partialArgs) {
22
+ function wrapper(...providedArgs) {
23
+ const holders = providedArgs.filter(item => item === curryRight.placeholder);
24
+ const length = providedArgs.length - holders.length;
25
+ providedArgs = composeArgs(providedArgs, partialArgs);
26
+ if (length < arity) {
27
+ return makeCurryRight(func, arity - length, providedArgs);
28
+ }
29
+ if (this instanceof wrapper) {
30
+ return new func(...providedArgs);
31
+ }
32
+ return func.apply(this, providedArgs);
33
+ }
34
+ wrapper.placeholder = curryRightPlaceholder;
35
+ return wrapper;
36
+ }
37
+ function composeArgs(providedArgs, partialArgs) {
38
+ const placeholderLength = partialArgs.filter(arg => arg === curryRight.placeholder).length;
39
+ const rangeLength = Math.max(providedArgs.length - placeholderLength, 0);
40
+ const args = [];
41
+ let providedIndex = 0;
42
+ for (let i = 0; i < rangeLength; i++) {
43
+ args.push(providedArgs[providedIndex++]);
44
+ }
45
+ for (let i = 0; i < partialArgs.length; i++) {
46
+ const arg = partialArgs[i];
47
+ if (arg === curryRight.placeholder) {
48
+ if (providedIndex < providedArgs.length) {
49
+ args.push(providedArgs[providedIndex++]);
50
+ }
51
+ else {
52
+ args.push(arg);
53
+ }
54
+ }
55
+ else {
56
+ args.push(arg);
57
+ }
58
+ }
59
+ return args;
60
+ }
61
+ const curryRightPlaceholder = Symbol('curryRight.placeholder');
62
+ curryRight.placeholder = curryRightPlaceholder;
63
+
64
+ export { curryRight };
@@ -4,7 +4,6 @@ export { countBy } from '../array/countBy.mjs';
4
4
  export { differenceBy } from '../array/differenceBy.mjs';
5
5
  export { differenceWith } from '../array/differenceWith.mjs';
6
6
  export { dropRight } from '../array/dropRight.mjs';
7
- export { dropRightWhile } from '../array/dropRightWhile.mjs';
8
7
  export { flatMap } from '../array/flatMap.mjs';
9
8
  export { flatMapDeep } from '../array/flatMapDeep.mjs';
10
9
  export { forEachRight } from '../array/forEachRight.mjs';
@@ -25,7 +24,6 @@ export { sample } from '../array/sample.mjs';
25
24
  export { sampleSize } from '../array/sampleSize.mjs';
26
25
  export { shuffle } from '../array/shuffle.mjs';
27
26
  export { tail } from '../array/tail.mjs';
28
- export { take } from '../array/take.mjs';
29
27
  export { takeRight } from '../array/takeRight.mjs';
30
28
  export { takeRightWhile } from '../array/takeRightWhile.mjs';
31
29
  export { takeWhile } from '../array/takeWhile.mjs';
@@ -47,63 +45,60 @@ export { zipObject } from '../array/zipObject.mjs';
47
45
  export { zipWith } from '../array/zipWith.mjs';
48
46
  export { AbortError } from '../error/AbortError.mjs';
49
47
  export { TimeoutError } from '../error/TimeoutError.mjs';
50
- export { before } from '../function/before.mjs';
51
48
  export { after } from '../function/after.mjs';
49
+ export { MemoizeCache, memoize } from '../function/memoize.mjs';
50
+ export { negate } from '../function/negate.mjs';
52
51
  export { noop } from '../function/noop.mjs';
53
52
  export { once } from '../function/once.mjs';
54
- export { negate } from '../function/negate.mjs';
55
- export { MemoizeCache, memoize } from '../function/memoize.mjs';
56
- export { unary } from '../function/unary.mjs';
57
53
  export { partial } from '../function/partial.mjs';
58
54
  export { partialRight } from '../function/partialRight.mjs';
59
- export { curryRight } from '../function/curryRight.mjs';
55
+ export { unary } from '../function/unary.mjs';
60
56
  export { mean } from '../math/mean.mjs';
61
57
  export { meanBy } from '../math/meanBy.mjs';
62
58
  export { randomInt } from '../math/randomInt.mjs';
59
+ export { range } from '../math/range.mjs';
60
+ export { rangeRight } from '../math/rangeRight.mjs';
63
61
  export { sum } from '../math/sum.mjs';
64
62
  export { sumBy } from '../math/sumBy.mjs';
65
- export { range } from '../math/range.mjs';
66
- export { omitBy } from '../object/omitBy.mjs';
67
- export { pickBy } from '../object/pickBy.mjs';
68
- export { invert } from '../object/invert.mjs';
69
63
  export { clone } from '../object/clone.mjs';
70
64
  export { flattenObject } from '../object/flattenObject.mjs';
65
+ export { invert } from '../object/invert.mjs';
66
+ export { omitBy } from '../object/omitBy.mjs';
67
+ export { pickBy } from '../object/pickBy.mjs';
71
68
  export { toMerged } from '../object/toMerged.mjs';
72
- export { isArrayBuffer } from '../predicate/isArrayBuffer.mjs';
73
- export { isDate } from '../predicate/isDate.mjs';
69
+ export { isBlob } from '../predicate/isBlob.mjs';
74
70
  export { isEqual } from '../predicate/isEqual.mjs';
75
- export { isEqualWith } from '../predicate/isEqualWith.mjs';
76
- export { isMap } from '../predicate/isMap.mjs';
77
- export { isNotNil } from '../predicate/isNotNil.mjs';
78
- export { isNull } from '../predicate/isNull.mjs';
79
- export { isUndefined } from '../predicate/isUndefined.mjs';
80
- export { isLength } from '../predicate/isLength.mjs';
81
71
  export { isFunction } from '../predicate/isFunction.mjs';
82
- export { isPrimitive } from '../predicate/isPrimitive.mjs';
72
+ export { isJSONArray } from '../predicate/isJSONArray.mjs';
83
73
  export { isJSONObject } from '../predicate/isJSONObject.mjs';
84
74
  export { isJSONValue } from '../predicate/isJSONValue.mjs';
85
- export { isJSONArray } from '../predicate/isJSONArray.mjs';
86
- export { isSet } from '../predicate/isSet.mjs';
75
+ export { isLength } from '../predicate/isLength.mjs';
76
+ export { isNotNil } from '../predicate/isNotNil.mjs';
77
+ export { isNull } from '../predicate/isNull.mjs';
78
+ export { isPrimitive } from '../predicate/isPrimitive.mjs';
79
+ export { isUndefined } from '../predicate/isUndefined.mjs';
87
80
  export { delay } from '../promise/delay.mjs';
88
- export { withTimeout } from '../promise/withTimeout.mjs';
89
81
  export { timeout } from '../promise/timeout.mjs';
82
+ export { withTimeout } from '../promise/withTimeout.mjs';
90
83
  export { capitalize } from '../string/capitalize.mjs';
91
- export { pascalCase } from '../string/pascalCase.mjs';
92
84
  export { constantCase } from '../string/constantCase.mjs';
93
- export { upperFirst } from '../string/upperFirst.mjs';
94
- export { lowerFirst } from '../string/lowerFirst.mjs';
95
85
  export { deburr } from '../string/deburr.mjs';
96
86
  export { escape } from '../string/escape.mjs';
97
87
  export { escapeRegExp } from '../string/escapeRegExp.mjs';
88
+ export { lowerFirst } from '../string/lowerFirst.mjs';
89
+ export { pascalCase } from '../string/pascalCase.mjs';
98
90
  export { unescape } from '../string/unescape.mjs';
91
+ export { upperFirst } from '../string/upperFirst.mjs';
99
92
  export { castArray } from './array/castArray.mjs';
100
93
  export { chunk } from './array/chunk.mjs';
101
94
  export { concat } from './array/concat.mjs';
102
95
  export { difference } from './array/difference.mjs';
103
96
  export { drop } from './array/drop.mjs';
97
+ export { dropRightWhile } from './array/dropRightWhile.mjs';
104
98
  export { dropWhile } from './array/dropWhile.mjs';
105
99
  export { every } from './array/every.mjs';
106
100
  export { fill } from './array/fill.mjs';
101
+ export { filter } from './array/filter.mjs';
107
102
  export { find } from './array/find.mjs';
108
103
  export { findIndex } from './array/findIndex.mjs';
109
104
  export { findLastIndex } from './array/findLastIndex.mjs';
@@ -114,90 +109,106 @@ export { includes } from './array/includes.mjs';
114
109
  export { indexOf } from './array/indexOf.mjs';
115
110
  export { join } from './array/join.mjs';
116
111
  export { orderBy } from './array/orderBy.mjs';
117
- export { sortBy } from './array/sortBy.mjs';
118
112
  export { size } from './array/size.mjs';
113
+ export { slice } from './array/slice.mjs';
119
114
  export { some } from './array/some.mjs';
115
+ export { sortBy } from './array/sortBy.mjs';
116
+ export { take } from './array/take.mjs';
120
117
  export { zipObjectDeep } from './array/zipObjectDeep.mjs';
121
- export { filter } from './array/filter.mjs';
122
118
  export { ary } from './function/ary.mjs';
119
+ export { attempt } from './function/attempt.mjs';
120
+ export { before } from './function/before.mjs';
123
121
  export { bind } from './function/bind.mjs';
124
122
  export { bindKey } from './function/bindKey.mjs';
125
- export { defer } from './function/defer.mjs';
126
- export { rest } from './function/rest.mjs';
127
- export { spread } from './function/spread.mjs';
128
- export { attempt } from './function/attempt.mjs';
129
- export { rearg } from './function/rearg.mjs';
130
123
  export { curry } from './function/curry.mjs';
124
+ export { curryRight } from './function/curryRight.mjs';
131
125
  export { debounce } from './function/debounce.mjs';
132
- export { throttle } from './function/throttle.mjs';
126
+ export { defer } from './function/defer.mjs';
133
127
  export { flip } from './function/flip.mjs';
134
128
  export { flow } from './function/flow.mjs';
135
129
  export { flowRight } from './function/flowRight.mjs';
130
+ export { rearg } from './function/rearg.mjs';
131
+ export { rest } from './function/rest.mjs';
132
+ export { spread } from './function/spread.mjs';
133
+ export { throttle } from './function/throttle.mjs';
134
+ export { ceil } from './math/ceil.mjs';
135
+ export { clamp } from './math/clamp.mjs';
136
+ export { floor } from './math/floor.mjs';
137
+ export { inRange } from './math/inRange.mjs';
138
+ export { max } from './math/max.mjs';
139
+ export { min } from './math/min.mjs';
140
+ export { parseInt } from './math/parseInt.mjs';
141
+ export { random } from './math/random.mjs';
142
+ export { round } from './math/round.mjs';
143
+ export { cloneDeep } from './object/cloneDeep.mjs';
144
+ export { defaults } from './object/defaults.mjs';
145
+ export { fromPairs } from './object/fromPairs.mjs';
136
146
  export { get } from './object/get.mjs';
137
- export { set } from './object/set.mjs';
138
- export { pick } from './object/pick.mjs';
139
- export { omit } from './object/omit.mjs';
140
147
  export { has } from './object/has.mjs';
141
- export { property } from './object/property.mjs';
148
+ export { invertBy } from './object/invertBy.mjs';
142
149
  export { mapKeys } from './object/mapKeys.mjs';
143
150
  export { mapValues } from './object/mapValues.mjs';
144
151
  export { merge } from './object/merge.mjs';
145
152
  export { mergeWith } from './object/mergeWith.mjs';
146
- export { fromPairs } from './object/fromPairs.mjs';
153
+ export { omit } from './object/omit.mjs';
154
+ export { pick } from './object/pick.mjs';
155
+ export { property } from './object/property.mjs';
156
+ export { set } from './object/set.mjs';
157
+ export { toDefaulted } from './object/toDefaulted.mjs';
147
158
  export { unset } from './object/unset.mjs';
148
- export { cloneDeep } from './object/cloneDeep.mjs';
149
- export { isPlainObject } from './predicate/isPlainObject.mjs';
150
- export { isArray } from './predicate/isArray.mjs';
159
+ export { conforms } from './predicate/conforms.mjs';
160
+ export { conformsTo } from './predicate/conformsTo.mjs';
151
161
  export { isArguments } from './predicate/isArguments.mjs';
162
+ export { isArray } from './predicate/isArray.mjs';
163
+ export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
152
164
  export { isArrayLike } from './predicate/isArrayLike.mjs';
153
- export { isSymbol } from './predicate/isSymbol.mjs';
154
- export { isObject } from './predicate/isObject.mjs';
155
- export { isObjectLike } from './predicate/isObjectLike.mjs';
165
+ export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
156
166
  export { isBoolean } from './predicate/isBoolean.mjs';
167
+ export { isDate } from './predicate/isDate.mjs';
168
+ export { isEqualWith } from './predicate/isEqualWith.mjs';
157
169
  export { isError } from './predicate/isError.mjs';
158
170
  export { isFinite } from './predicate/isFinite.mjs';
159
- export { isTypedArray } from './predicate/isTypedArray.mjs';
171
+ export { isInteger } from './predicate/isInteger.mjs';
172
+ export { isMap } from './predicate/isMap.mjs';
160
173
  export { isMatch } from './predicate/isMatch.mjs';
174
+ export { isNaN } from './predicate/isNaN.mjs';
175
+ export { isNil } from './predicate/isNil.mjs';
176
+ export { isNumber } from './predicate/isNumber.mjs';
177
+ export { isObject } from './predicate/isObject.mjs';
178
+ export { isObjectLike } from './predicate/isObjectLike.mjs';
179
+ export { isPlainObject } from './predicate/isPlainObject.mjs';
161
180
  export { isRegExp } from './predicate/isRegExp.mjs';
181
+ export { isSafeInteger } from './predicate/isSafeInteger.mjs';
182
+ export { isSet } from './predicate/isSet.mjs';
162
183
  export { isString } from './predicate/isString.mjs';
163
- export { matches } from './predicate/matches.mjs';
164
- export { matchesProperty } from './predicate/matchesProperty.mjs';
184
+ export { isSymbol } from './predicate/isSymbol.mjs';
185
+ export { isTypedArray } from './predicate/isTypedArray.mjs';
165
186
  export { isWeakMap } from './predicate/isWeakMap.mjs';
166
187
  export { isWeakSet } from './predicate/isWeakSet.mjs';
167
- export { conforms } from './predicate/conforms.mjs';
168
- export { conformsTo } from './predicate/conformsTo.mjs';
169
- export { isInteger } from './predicate/isInteger.mjs';
170
- export { isSafeInteger } from './predicate/isSafeInteger.mjs';
171
- export { isNumber } from './predicate/isNumber.mjs';
172
- export { isNaN } from './predicate/isNaN.mjs';
173
- export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
174
- export { isNil } from './predicate/isNil.mjs';
188
+ export { matches } from './predicate/matches.mjs';
189
+ export { matchesProperty } from './predicate/matchesProperty.mjs';
175
190
  export { camelCase } from './string/camelCase.mjs';
191
+ export { endsWith } from './string/endsWith.mjs';
176
192
  export { kebabCase } from './string/kebabCase.mjs';
177
- export { snakeCase } from './string/snakeCase.mjs';
178
- export { startCase } from './string/startCase.mjs';
179
193
  export { lowerCase } from './string/lowerCase.mjs';
180
- export { upperCase } from './string/upperCase.mjs';
181
- export { startsWith } from './string/startsWith.mjs';
182
- export { endsWith } from './string/endsWith.mjs';
183
194
  export { pad } from './string/pad.mjs';
184
- export { padStart } from './string/padStart.mjs';
185
195
  export { padEnd } from './string/padEnd.mjs';
196
+ export { padStart } from './string/padStart.mjs';
186
197
  export { repeat } from './string/repeat.mjs';
198
+ export { snakeCase } from './string/snakeCase.mjs';
199
+ export { startCase } from './string/startCase.mjs';
200
+ export { startsWith } from './string/startsWith.mjs';
201
+ export { upperCase } from './string/upperCase.mjs';
187
202
  export { trim } from './string/trim.mjs';
188
- export { trimStart } from './string/trimStart.mjs';
189
203
  export { trimEnd } from './string/trimEnd.mjs';
190
- export { clamp } from './math/clamp.mjs';
191
- export { max } from './math/max.mjs';
192
- export { min } from './math/min.mjs';
193
- export { ceil } from './math/ceil.mjs';
194
- export { floor } from './math/floor.mjs';
195
- export { round } from './math/round.mjs';
196
- export { parseInt } from './math/parseInt.mjs';
197
- export { inRange } from './math/inRange.mjs';
198
- export { random } from './math/random.mjs';
204
+ export { trimStart } from './string/trimStart.mjs';
205
+ export { constant } from './util/constant.mjs';
206
+ export { defaultTo } from './util/defaultTo.mjs';
207
+ export { eq } from './util/eq.mjs';
208
+ export { times } from './util/times.mjs';
209
+ export { toFinite } from './util/toFinite.mjs';
210
+ export { toInteger } from './util/toInteger.mjs';
211
+ export { toLength } from './util/toLength.mjs';
212
+ export { toNumber } from './util/toNumber.mjs';
199
213
  export { toPath } from './util/toPath.mjs';
200
214
  export { toString } from './util/toString.mjs';
201
- export { toNumber } from './util/toNumber.mjs';
202
- export { toInteger } from './util/toInteger.mjs';
203
- export { toFinite } from './util/toFinite.mjs';
@@ -4,7 +4,6 @@ export { countBy } from '../array/countBy.js';
4
4
  export { differenceBy } from '../array/differenceBy.js';
5
5
  export { differenceWith } from '../array/differenceWith.js';
6
6
  export { dropRight } from '../array/dropRight.js';
7
- export { dropRightWhile } from '../array/dropRightWhile.js';
8
7
  export { flatMap } from '../array/flatMap.js';
9
8
  export { flatMapDeep } from '../array/flatMapDeep.js';
10
9
  export { forEachRight } from '../array/forEachRight.js';
@@ -25,7 +24,6 @@ export { sample } from '../array/sample.js';
25
24
  export { sampleSize } from '../array/sampleSize.js';
26
25
  export { shuffle } from '../array/shuffle.js';
27
26
  export { tail } from '../array/tail.js';
28
- export { take } from '../array/take.js';
29
27
  export { takeRight } from '../array/takeRight.js';
30
28
  export { takeRightWhile } from '../array/takeRightWhile.js';
31
29
  export { takeWhile } from '../array/takeWhile.js';
@@ -47,63 +45,60 @@ export { zipObject } from '../array/zipObject.js';
47
45
  export { zipWith } from '../array/zipWith.js';
48
46
  export { AbortError } from '../error/AbortError.js';
49
47
  export { TimeoutError } from '../error/TimeoutError.js';
50
- export { before } from '../function/before.js';
51
48
  export { after } from '../function/after.js';
49
+ export { MemoizeCache, memoize } from '../function/memoize.js';
50
+ export { negate } from '../function/negate.js';
52
51
  export { noop } from '../function/noop.js';
53
52
  export { once } from '../function/once.js';
54
- export { negate } from '../function/negate.js';
55
- export { MemoizeCache, memoize } from '../function/memoize.js';
56
- export { unary } from '../function/unary.js';
57
53
  export { partial } from '../function/partial.js';
58
54
  export { partialRight } from '../function/partialRight.js';
59
- export { curryRight } from '../function/curryRight.js';
55
+ export { unary } from '../function/unary.js';
60
56
  export { mean } from '../math/mean.js';
61
57
  export { meanBy } from '../math/meanBy.js';
62
58
  export { randomInt } from '../math/randomInt.js';
59
+ export { range } from '../math/range.js';
60
+ export { rangeRight } from '../math/rangeRight.js';
63
61
  export { sum } from '../math/sum.js';
64
62
  export { sumBy } from '../math/sumBy.js';
65
- export { range } from '../math/range.js';
66
- export { omitBy } from '../object/omitBy.js';
67
- export { pickBy } from '../object/pickBy.js';
68
- export { invert } from '../object/invert.js';
69
63
  export { clone } from '../object/clone.js';
70
64
  export { flattenObject } from '../object/flattenObject.js';
65
+ export { invert } from '../object/invert.js';
66
+ export { omitBy } from '../object/omitBy.js';
67
+ export { pickBy } from '../object/pickBy.js';
71
68
  export { toMerged } from '../object/toMerged.js';
72
- export { isArrayBuffer } from '../predicate/isArrayBuffer.js';
73
- export { isDate } from '../predicate/isDate.js';
69
+ export { isBlob } from '../predicate/isBlob.js';
74
70
  export { isEqual } from '../predicate/isEqual.js';
75
- export { isEqualWith } from '../predicate/isEqualWith.js';
76
- export { isMap } from '../predicate/isMap.js';
77
- export { isNotNil } from '../predicate/isNotNil.js';
78
- export { isNull } from '../predicate/isNull.js';
79
- export { isUndefined } from '../predicate/isUndefined.js';
80
- export { isLength } from '../predicate/isLength.js';
81
71
  export { isFunction } from '../predicate/isFunction.js';
82
- export { isPrimitive } from '../predicate/isPrimitive.js';
72
+ export { isJSONArray } from '../predicate/isJSONArray.js';
83
73
  export { isJSONObject } from '../predicate/isJSONObject.js';
84
74
  export { isJSONValue } from '../predicate/isJSONValue.js';
85
- export { isJSONArray } from '../predicate/isJSONArray.js';
86
- export { isSet } from '../predicate/isSet.js';
75
+ export { isLength } from '../predicate/isLength.js';
76
+ export { isNotNil } from '../predicate/isNotNil.js';
77
+ export { isNull } from '../predicate/isNull.js';
78
+ export { isPrimitive } from '../predicate/isPrimitive.js';
79
+ export { isUndefined } from '../predicate/isUndefined.js';
87
80
  export { delay } from '../promise/delay.js';
88
- export { withTimeout } from '../promise/withTimeout.js';
89
81
  export { timeout } from '../promise/timeout.js';
82
+ export { withTimeout } from '../promise/withTimeout.js';
90
83
  export { capitalize } from '../string/capitalize.js';
91
- export { pascalCase } from '../string/pascalCase.js';
92
84
  export { constantCase } from '../string/constantCase.js';
93
- export { upperFirst } from '../string/upperFirst.js';
94
- export { lowerFirst } from '../string/lowerFirst.js';
95
85
  export { deburr } from '../string/deburr.js';
96
86
  export { escape } from '../string/escape.js';
97
87
  export { escapeRegExp } from '../string/escapeRegExp.js';
88
+ export { lowerFirst } from '../string/lowerFirst.js';
89
+ export { pascalCase } from '../string/pascalCase.js';
98
90
  export { unescape } from '../string/unescape.js';
91
+ export { upperFirst } from '../string/upperFirst.js';
99
92
  export { castArray } from './array/castArray.js';
100
93
  export { chunk } from './array/chunk.js';
101
94
  export { concat } from './array/concat.js';
102
95
  export { difference } from './array/difference.js';
103
96
  export { drop } from './array/drop.js';
97
+ export { dropRightWhile } from './array/dropRightWhile.js';
104
98
  export { dropWhile } from './array/dropWhile.js';
105
99
  export { every } from './array/every.js';
106
100
  export { fill } from './array/fill.js';
101
+ export { filter } from './array/filter.js';
107
102
  export { find } from './array/find.js';
108
103
  export { findIndex } from './array/findIndex.js';
109
104
  export { findLastIndex } from './array/findLastIndex.js';
@@ -114,90 +109,106 @@ export { includes } from './array/includes.js';
114
109
  export { indexOf } from './array/indexOf.js';
115
110
  export { join } from './array/join.js';
116
111
  export { orderBy } from './array/orderBy.js';
117
- export { sortBy } from './array/sortBy.js';
118
112
  export { size } from './array/size.js';
113
+ export { slice } from './array/slice.js';
119
114
  export { some } from './array/some.js';
115
+ export { sortBy } from './array/sortBy.js';
116
+ export { take } from './array/take.js';
120
117
  export { zipObjectDeep } from './array/zipObjectDeep.js';
121
- export { filter } from './array/filter.js';
122
118
  export { ary } from './function/ary.js';
119
+ export { attempt } from './function/attempt.js';
120
+ export { before } from './function/before.js';
123
121
  export { bind } from './function/bind.js';
124
122
  export { bindKey } from './function/bindKey.js';
125
- export { defer } from './function/defer.js';
126
- export { rest } from './function/rest.js';
127
- export { spread } from './function/spread.js';
128
- export { attempt } from './function/attempt.js';
129
- export { rearg } from './function/rearg.js';
130
123
  export { curry } from './function/curry.js';
124
+ export { curryRight } from './function/curryRight.js';
131
125
  export { debounce } from './function/debounce.js';
132
- export { throttle } from './function/throttle.js';
126
+ export { defer } from './function/defer.js';
133
127
  export { flip } from './function/flip.js';
134
128
  export { flow } from './function/flow.js';
135
129
  export { flowRight } from './function/flowRight.js';
130
+ export { rearg } from './function/rearg.js';
131
+ export { rest } from './function/rest.js';
132
+ export { spread } from './function/spread.js';
133
+ export { throttle } from './function/throttle.js';
134
+ export { ceil } from './math/ceil.js';
135
+ export { clamp } from './math/clamp.js';
136
+ export { floor } from './math/floor.js';
137
+ export { inRange } from './math/inRange.js';
138
+ export { max } from './math/max.js';
139
+ export { min } from './math/min.js';
140
+ export { parseInt } from './math/parseInt.js';
141
+ export { random } from './math/random.js';
142
+ export { round } from './math/round.js';
143
+ export { cloneDeep } from './object/cloneDeep.js';
144
+ export { defaults } from './object/defaults.js';
145
+ export { fromPairs } from './object/fromPairs.js';
136
146
  export { get } from './object/get.js';
137
- export { set } from './object/set.js';
138
- export { pick } from './object/pick.js';
139
- export { omit } from './object/omit.js';
140
147
  export { has } from './object/has.js';
141
- export { property } from './object/property.js';
148
+ export { invertBy } from './object/invertBy.js';
142
149
  export { mapKeys } from './object/mapKeys.js';
143
150
  export { mapValues } from './object/mapValues.js';
144
151
  export { merge } from './object/merge.js';
145
152
  export { mergeWith } from './object/mergeWith.js';
146
- export { fromPairs } from './object/fromPairs.js';
153
+ export { omit } from './object/omit.js';
154
+ export { pick } from './object/pick.js';
155
+ export { property } from './object/property.js';
156
+ export { set } from './object/set.js';
157
+ export { toDefaulted } from './object/toDefaulted.js';
147
158
  export { unset } from './object/unset.js';
148
- export { cloneDeep } from './object/cloneDeep.js';
149
- export { isPlainObject } from './predicate/isPlainObject.js';
150
- export { isArray } from './predicate/isArray.js';
159
+ export { conforms } from './predicate/conforms.js';
160
+ export { conformsTo } from './predicate/conformsTo.js';
151
161
  export { isArguments } from './predicate/isArguments.js';
162
+ export { isArray } from './predicate/isArray.js';
163
+ export { isArrayBuffer } from './predicate/isArrayBuffer.js';
152
164
  export { isArrayLike } from './predicate/isArrayLike.js';
153
- export { isSymbol } from './predicate/isSymbol.js';
154
- export { isObject } from './predicate/isObject.js';
155
- export { isObjectLike } from './predicate/isObjectLike.js';
165
+ export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
156
166
  export { isBoolean } from './predicate/isBoolean.js';
167
+ export { isDate } from './predicate/isDate.js';
168
+ export { isEqualWith } from './predicate/isEqualWith.js';
157
169
  export { isError } from './predicate/isError.js';
158
170
  export { isFinite } from './predicate/isFinite.js';
159
- export { isTypedArray } from './predicate/isTypedArray.js';
171
+ export { isInteger } from './predicate/isInteger.js';
172
+ export { isMap } from './predicate/isMap.js';
160
173
  export { isMatch } from './predicate/isMatch.js';
174
+ export { isNaN } from './predicate/isNaN.js';
175
+ export { isNil } from './predicate/isNil.js';
176
+ export { isNumber } from './predicate/isNumber.js';
177
+ export { isObject } from './predicate/isObject.js';
178
+ export { isObjectLike } from './predicate/isObjectLike.js';
179
+ export { isPlainObject } from './predicate/isPlainObject.js';
161
180
  export { isRegExp } from './predicate/isRegExp.js';
181
+ export { isSafeInteger } from './predicate/isSafeInteger.js';
182
+ export { isSet } from './predicate/isSet.js';
162
183
  export { isString } from './predicate/isString.js';
163
- export { matches } from './predicate/matches.js';
164
- export { matchesProperty } from './predicate/matchesProperty.js';
184
+ export { isSymbol } from './predicate/isSymbol.js';
185
+ export { isTypedArray } from './predicate/isTypedArray.js';
165
186
  export { isWeakMap } from './predicate/isWeakMap.js';
166
187
  export { isWeakSet } from './predicate/isWeakSet.js';
167
- export { conforms } from './predicate/conforms.js';
168
- export { conformsTo } from './predicate/conformsTo.js';
169
- export { isInteger } from './predicate/isInteger.js';
170
- export { isSafeInteger } from './predicate/isSafeInteger.js';
171
- export { isNumber } from './predicate/isNumber.js';
172
- export { isNaN } from './predicate/isNaN.js';
173
- export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
174
- export { isNil } from './predicate/isNil.js';
188
+ export { matches } from './predicate/matches.js';
189
+ export { matchesProperty } from './predicate/matchesProperty.js';
175
190
  export { camelCase } from './string/camelCase.js';
191
+ export { endsWith } from './string/endsWith.js';
176
192
  export { kebabCase } from './string/kebabCase.js';
177
- export { snakeCase } from './string/snakeCase.js';
178
- export { startCase } from './string/startCase.js';
179
193
  export { lowerCase } from './string/lowerCase.js';
180
- export { upperCase } from './string/upperCase.js';
181
- export { startsWith } from './string/startsWith.js';
182
- export { endsWith } from './string/endsWith.js';
183
194
  export { pad } from './string/pad.js';
184
- export { padStart } from './string/padStart.js';
185
195
  export { padEnd } from './string/padEnd.js';
196
+ export { padStart } from './string/padStart.js';
186
197
  export { repeat } from './string/repeat.js';
198
+ export { snakeCase } from './string/snakeCase.js';
199
+ export { startCase } from './string/startCase.js';
200
+ export { startsWith } from './string/startsWith.js';
201
+ export { upperCase } from './string/upperCase.js';
187
202
  export { trim } from './string/trim.js';
188
- export { trimStart } from './string/trimStart.js';
189
203
  export { trimEnd } from './string/trimEnd.js';
190
- export { clamp } from './math/clamp.js';
191
- export { max } from './math/max.js';
192
- export { min } from './math/min.js';
193
- export { ceil } from './math/ceil.js';
194
- export { floor } from './math/floor.js';
195
- export { round } from './math/round.js';
196
- export { parseInt } from './math/parseInt.js';
197
- export { inRange } from './math/inRange.js';
198
- export { random } from './math/random.js';
204
+ export { trimStart } from './string/trimStart.js';
205
+ export { constant } from './util/constant.js';
206
+ export { defaultTo } from './util/defaultTo.js';
207
+ export { eq } from './util/eq.js';
208
+ export { times } from './util/times.js';
209
+ export { toFinite } from './util/toFinite.js';
210
+ export { toInteger } from './util/toInteger.js';
211
+ export { toLength } from './util/toLength.js';
212
+ export { toNumber } from './util/toNumber.js';
199
213
  export { toPath } from './util/toPath.js';
200
214
  export { toString } from './util/toString.js';
201
- export { toNumber } from './util/toNumber.js';
202
- export { toInteger } from './util/toInteger.js';
203
- export { toFinite } from './util/toFinite.js';