@vinicunca/perkakas 0.0.4 → 0.0.5

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 (733) hide show
  1. package/dist/index.cjs +2300 -0
  2. package/dist/index.d.cts +3221 -0
  3. package/dist/index.d.ts +3221 -0
  4. package/dist/index.js +2158 -0
  5. package/dist/index.min.js +2 -0
  6. package/dist/index.min.js.map +7 -0
  7. package/package.json +38 -30
  8. package/dist/commonjs/aria/index.d.ts +0 -2
  9. package/dist/commonjs/aria/index.d.ts.map +0 -1
  10. package/dist/commonjs/aria/index.js +0 -17
  11. package/dist/commonjs/aria/key-codes.d.ts +0 -23
  12. package/dist/commonjs/aria/key-codes.d.ts.map +0 -1
  13. package/dist/commonjs/aria/key-codes.js +0 -25
  14. package/dist/commonjs/array/all-pass.d.ts +0 -3
  15. package/dist/commonjs/array/all-pass.d.ts.map +0 -1
  16. package/dist/commonjs/array/all-pass.js +0 -11
  17. package/dist/commonjs/array/any-pass.d.ts +0 -3
  18. package/dist/commonjs/array/any-pass.d.ts.map +0 -1
  19. package/dist/commonjs/array/any-pass.js +0 -11
  20. package/dist/commonjs/array/chunk.d.ts +0 -6
  21. package/dist/commonjs/array/chunk.d.ts.map +0 -1
  22. package/dist/commonjs/array/chunk.js +0 -17
  23. package/dist/commonjs/array/compact.d.ts +0 -2
  24. package/dist/commonjs/array/compact.d.ts.map +0 -1
  25. package/dist/commonjs/array/compact.js +0 -8
  26. package/dist/commonjs/array/concat.d.ts +0 -3
  27. package/dist/commonjs/array/concat.d.ts.map +0 -1
  28. package/dist/commonjs/array/concat.js +0 -11
  29. package/dist/commonjs/array/count-by.d.ts +0 -8
  30. package/dist/commonjs/array/count-by.d.ts.map +0 -1
  31. package/dist/commonjs/array/count-by.js +0 -22
  32. package/dist/commonjs/array/difference-with.d.ts +0 -9
  33. package/dist/commonjs/array/difference-with.d.ts.map +0 -1
  34. package/dist/commonjs/array/difference-with.js +0 -31
  35. package/dist/commonjs/array/difference.d.ts +0 -7
  36. package/dist/commonjs/array/difference.d.ts.map +0 -1
  37. package/dist/commonjs/array/difference.js +0 -32
  38. package/dist/commonjs/array/drop-last.d.ts +0 -3
  39. package/dist/commonjs/array/drop-last.d.ts.map +0 -1
  40. package/dist/commonjs/array/drop-last.js +0 -15
  41. package/dist/commonjs/array/drop.d.ts +0 -7
  42. package/dist/commonjs/array/drop.d.ts.map +0 -1
  43. package/dist/commonjs/array/drop.js +0 -32
  44. package/dist/commonjs/array/filter.d.ts +0 -17
  45. package/dist/commonjs/array/filter.d.ts.map +0 -1
  46. package/dist/commonjs/array/filter.js +0 -41
  47. package/dist/commonjs/array/find-index.d.ts +0 -32
  48. package/dist/commonjs/array/find-index.d.ts.map +0 -1
  49. package/dist/commonjs/array/find-index.js +0 -46
  50. package/dist/commonjs/array/find-last-index.d.ts +0 -8
  51. package/dist/commonjs/array/find-last-index.d.ts.map +0 -1
  52. package/dist/commonjs/array/find-last-index.js +0 -24
  53. package/dist/commonjs/array/find-last.d.ts +0 -8
  54. package/dist/commonjs/array/find-last.d.ts.map +0 -1
  55. package/dist/commonjs/array/find-last.js +0 -23
  56. package/dist/commonjs/array/find.d.ts +0 -24
  57. package/dist/commonjs/array/find.d.ts.map +0 -1
  58. package/dist/commonjs/array/find.js +0 -38
  59. package/dist/commonjs/array/first.d.ts +0 -16
  60. package/dist/commonjs/array/first.d.ts.map +0 -1
  61. package/dist/commonjs/array/first.js +0 -26
  62. package/dist/commonjs/array/flat-map-to-obj.d.ts +0 -7
  63. package/dist/commonjs/array/flat-map-to-obj.d.ts.map +0 -1
  64. package/dist/commonjs/array/flat-map-to-obj.js +0 -25
  65. package/dist/commonjs/array/flat-map.d.ts +0 -16
  66. package/dist/commonjs/array/flat-map.d.ts.map +0 -1
  67. package/dist/commonjs/array/flat-map.js +0 -33
  68. package/dist/commonjs/array/flatten-deep.d.ts +0 -12
  69. package/dist/commonjs/array/flatten-deep.d.ts.map +0 -1
  70. package/dist/commonjs/array/flatten-deep.js +0 -48
  71. package/dist/commonjs/array/flatten.d.ts +0 -9
  72. package/dist/commonjs/array/flatten.d.ts.map +0 -1
  73. package/dist/commonjs/array/flatten.js +0 -32
  74. package/dist/commonjs/array/for-each.d.ts +0 -13
  75. package/dist/commonjs/array/for-each.d.ts.map +0 -1
  76. package/dist/commonjs/array/for-each.js +0 -40
  77. package/dist/commonjs/array/group-by.d.ts +0 -19
  78. package/dist/commonjs/array/group-by.d.ts.map +0 -1
  79. package/dist/commonjs/array/group-by.js +0 -31
  80. package/dist/commonjs/array/index-by.d.ts +0 -8
  81. package/dist/commonjs/array/index-by.d.ts.map +0 -1
  82. package/dist/commonjs/array/index-by.js +0 -24
  83. package/dist/commonjs/array/index.d.ts +0 -56
  84. package/dist/commonjs/array/index.d.ts.map +0 -1
  85. package/dist/commonjs/array/index.js +0 -71
  86. package/dist/commonjs/array/intersection-with.d.ts +0 -9
  87. package/dist/commonjs/array/intersection-with.d.ts.map +0 -1
  88. package/dist/commonjs/array/intersection-with.js +0 -31
  89. package/dist/commonjs/array/intersection.d.ts +0 -7
  90. package/dist/commonjs/array/intersection.d.ts.map +0 -1
  91. package/dist/commonjs/array/intersection.js +0 -32
  92. package/dist/commonjs/array/join.d.ts +0 -8
  93. package/dist/commonjs/array/join.d.ts.map +0 -1
  94. package/dist/commonjs/array/join.js +0 -11
  95. package/dist/commonjs/array/last.d.ts +0 -5
  96. package/dist/commonjs/array/last.d.ts.map +0 -1
  97. package/dist/commonjs/array/last.js +0 -11
  98. package/dist/commonjs/array/length.d.ts +0 -5
  99. package/dist/commonjs/array/length.d.ts.map +0 -1
  100. package/dist/commonjs/array/length.js +0 -11
  101. package/dist/commonjs/array/map-to-obj.d.ts +0 -7
  102. package/dist/commonjs/array/map-to-obj.d.ts.map +0 -1
  103. package/dist/commonjs/array/map-to-obj.js +0 -23
  104. package/dist/commonjs/array/map.d.ts +0 -26
  105. package/dist/commonjs/array/map.d.ts.map +0 -1
  106. package/dist/commonjs/array/map.js +0 -35
  107. package/dist/commonjs/array/max-by.d.ts +0 -8
  108. package/dist/commonjs/array/max-by.d.ts.map +0 -1
  109. package/dist/commonjs/array/max-by.js +0 -28
  110. package/dist/commonjs/array/mean-by.d.ts +0 -8
  111. package/dist/commonjs/array/mean-by.d.ts.map +0 -1
  112. package/dist/commonjs/array/mean-by.js +0 -26
  113. package/dist/commonjs/array/merge-all.d.ts +0 -7
  114. package/dist/commonjs/array/merge-all.d.ts.map +0 -1
  115. package/dist/commonjs/array/merge-all.js +0 -7
  116. package/dist/commonjs/array/min-by.d.ts +0 -8
  117. package/dist/commonjs/array/min-by.d.ts.map +0 -1
  118. package/dist/commonjs/array/min-by.js +0 -28
  119. package/dist/commonjs/array/partition.d.ts +0 -10
  120. package/dist/commonjs/array/partition.d.ts.map +0 -1
  121. package/dist/commonjs/array/partition.js +0 -24
  122. package/dist/commonjs/array/range.d.ts +0 -3
  123. package/dist/commonjs/array/range.d.ts.map +0 -1
  124. package/dist/commonjs/array/range.js +0 -15
  125. package/dist/commonjs/array/reduce.d.ts +0 -7
  126. package/dist/commonjs/array/reduce.d.ts.map +0 -1
  127. package/dist/commonjs/array/reduce.js +0 -19
  128. package/dist/commonjs/array/reject.d.ts +0 -13
  129. package/dist/commonjs/array/reject.d.ts.map +0 -1
  130. package/dist/commonjs/array/reject.js +0 -41
  131. package/dist/commonjs/array/reverse.d.ts +0 -6
  132. package/dist/commonjs/array/reverse.d.ts.map +0 -1
  133. package/dist/commonjs/array/reverse.js +0 -11
  134. package/dist/commonjs/array/sample.d.ts +0 -11
  135. package/dist/commonjs/array/sample.d.ts.map +0 -1
  136. package/dist/commonjs/array/sample.js +0 -34
  137. package/dist/commonjs/array/shuffle.d.ts +0 -3
  138. package/dist/commonjs/array/shuffle.d.ts.map +0 -1
  139. package/dist/commonjs/array/shuffle.js +0 -18
  140. package/dist/commonjs/array/sort-by.d.ts +0 -27
  141. package/dist/commonjs/array/sort-by.d.ts.map +0 -1
  142. package/dist/commonjs/array/sort-by.js +0 -55
  143. package/dist/commonjs/array/sort.d.ts +0 -15
  144. package/dist/commonjs/array/sort.d.ts.map +0 -1
  145. package/dist/commonjs/array/sort.js +0 -16
  146. package/dist/commonjs/array/split-at.d.ts +0 -3
  147. package/dist/commonjs/array/split-at.d.ts.map +0 -1
  148. package/dist/commonjs/array/split-at.js +0 -13
  149. package/dist/commonjs/array/split-when.d.ts +0 -3
  150. package/dist/commonjs/array/split-when.d.ts.map +0 -1
  151. package/dist/commonjs/array/split-when.js +0 -17
  152. package/dist/commonjs/array/sum-by.d.ts +0 -8
  153. package/dist/commonjs/array/sum-by.d.ts.map +0 -1
  154. package/dist/commonjs/array/sum-by.js +0 -24
  155. package/dist/commonjs/array/swap-indices.d.ts +0 -25
  156. package/dist/commonjs/array/swap-indices.d.ts.map +0 -1
  157. package/dist/commonjs/array/swap-indices.js +0 -34
  158. package/dist/commonjs/array/take-while.d.ts +0 -3
  159. package/dist/commonjs/array/take-while.d.ts.map +0 -1
  160. package/dist/commonjs/array/take-while.js +0 -18
  161. package/dist/commonjs/array/take.d.ts +0 -7
  162. package/dist/commonjs/array/take.d.ts.map +0 -1
  163. package/dist/commonjs/array/take.js +0 -38
  164. package/dist/commonjs/array/uniq-by.d.ts +0 -3
  165. package/dist/commonjs/array/uniq-by.d.ts.map +0 -1
  166. package/dist/commonjs/array/uniq-by.js +0 -30
  167. package/dist/commonjs/array/uniq-with.d.ts +0 -12
  168. package/dist/commonjs/array/uniq-with.d.ts.map +0 -1
  169. package/dist/commonjs/array/uniq-with.js +0 -33
  170. package/dist/commonjs/array/uniq.d.ts +0 -7
  171. package/dist/commonjs/array/uniq.d.ts.map +0 -1
  172. package/dist/commonjs/array/uniq.js +0 -32
  173. package/dist/commonjs/array/zip-obj.d.ts +0 -3
  174. package/dist/commonjs/array/zip-obj.d.ts.map +0 -1
  175. package/dist/commonjs/array/zip-obj.js +0 -16
  176. package/dist/commonjs/array/zip-with.d.ts +0 -4
  177. package/dist/commonjs/array/zip-with.d.ts.map +0 -1
  178. package/dist/commonjs/array/zip-with.js +0 -28
  179. package/dist/commonjs/array/zip.d.ts +0 -3
  180. package/dist/commonjs/array/zip.d.ts.map +0 -1
  181. package/dist/commonjs/array/zip.js +0 -16
  182. package/dist/commonjs/base.d.ts +0 -2
  183. package/dist/commonjs/base.d.ts.map +0 -1
  184. package/dist/commonjs/base.js +0 -7
  185. package/dist/commonjs/function/create-pipe.d.ts +0 -8
  186. package/dist/commonjs/function/create-pipe.d.ts.map +0 -1
  187. package/dist/commonjs/function/create-pipe.js +0 -8
  188. package/dist/commonjs/function/identity.d.ts +0 -2
  189. package/dist/commonjs/function/identity.d.ts.map +0 -1
  190. package/dist/commonjs/function/identity.js +0 -7
  191. package/dist/commonjs/function/index.d.ts +0 -7
  192. package/dist/commonjs/function/index.d.ts.map +0 -1
  193. package/dist/commonjs/function/index.js +0 -22
  194. package/dist/commonjs/function/noop.d.ts +0 -2
  195. package/dist/commonjs/function/noop.d.ts.map +0 -1
  196. package/dist/commonjs/function/noop.js +0 -7
  197. package/dist/commonjs/function/once.d.ts +0 -2
  198. package/dist/commonjs/function/once.d.ts.map +0 -1
  199. package/dist/commonjs/function/once.js +0 -15
  200. package/dist/commonjs/function/pipe.d.ts +0 -16
  201. package/dist/commonjs/function/pipe.d.ts.map +0 -1
  202. package/dist/commonjs/function/pipe.js +0 -105
  203. package/dist/commonjs/function/purry.d.ts +0 -2
  204. package/dist/commonjs/function/purry.d.ts.map +0 -1
  205. package/dist/commonjs/function/purry.js +0 -20
  206. package/dist/commonjs/guard/index.d.ts +0 -16
  207. package/dist/commonjs/guard/index.d.ts.map +0 -1
  208. package/dist/commonjs/guard/index.js +0 -31
  209. package/dist/commonjs/guard/is-array.d.ts +0 -4
  210. package/dist/commonjs/guard/is-array.d.ts.map +0 -1
  211. package/dist/commonjs/guard/is-array.js +0 -7
  212. package/dist/commonjs/guard/is-boolean.d.ts +0 -4
  213. package/dist/commonjs/guard/is-boolean.d.ts.map +0 -1
  214. package/dist/commonjs/guard/is-boolean.js +0 -7
  215. package/dist/commonjs/guard/is-date.d.ts +0 -2
  216. package/dist/commonjs/guard/is-date.d.ts.map +0 -1
  217. package/dist/commonjs/guard/is-date.js +0 -7
  218. package/dist/commonjs/guard/is-defined.d.ts +0 -5
  219. package/dist/commonjs/guard/is-defined.d.ts.map +0 -1
  220. package/dist/commonjs/guard/is-defined.js +0 -13
  221. package/dist/commonjs/guard/is-empty.d.ts +0 -4
  222. package/dist/commonjs/guard/is-empty.d.ts.map +0 -1
  223. package/dist/commonjs/guard/is-empty.js +0 -19
  224. package/dist/commonjs/guard/is-error.d.ts +0 -4
  225. package/dist/commonjs/guard/is-error.d.ts.map +0 -1
  226. package/dist/commonjs/guard/is-error.js +0 -7
  227. package/dist/commonjs/guard/is-function.d.ts +0 -4
  228. package/dist/commonjs/guard/is-function.d.ts.map +0 -1
  229. package/dist/commonjs/guard/is-function.js +0 -7
  230. package/dist/commonjs/guard/is-nil.d.ts +0 -2
  231. package/dist/commonjs/guard/is-nil.d.ts.map +0 -1
  232. package/dist/commonjs/guard/is-nil.js +0 -7
  233. package/dist/commonjs/guard/is-non-null.d.ts +0 -2
  234. package/dist/commonjs/guard/is-non-null.d.ts.map +0 -1
  235. package/dist/commonjs/guard/is-non-null.js +0 -7
  236. package/dist/commonjs/guard/is-not.d.ts +0 -3
  237. package/dist/commonjs/guard/is-not.d.ts.map +0 -1
  238. package/dist/commonjs/guard/is-not.js +0 -9
  239. package/dist/commonjs/guard/is-number.d.ts +0 -4
  240. package/dist/commonjs/guard/is-number.d.ts.map +0 -1
  241. package/dist/commonjs/guard/is-number.js +0 -7
  242. package/dist/commonjs/guard/is-object.d.ts +0 -4
  243. package/dist/commonjs/guard/is-object.d.ts.map +0 -1
  244. package/dist/commonjs/guard/is-object.js +0 -8
  245. package/dist/commonjs/guard/is-promise.d.ts +0 -2
  246. package/dist/commonjs/guard/is-promise.d.ts.map +0 -1
  247. package/dist/commonjs/guard/is-promise.js +0 -7
  248. package/dist/commonjs/guard/is-string.d.ts +0 -4
  249. package/dist/commonjs/guard/is-string.d.ts.map +0 -1
  250. package/dist/commonjs/guard/is-string.js +0 -7
  251. package/dist/commonjs/guard/is-truthy.d.ts +0 -2
  252. package/dist/commonjs/guard/is-truthy.d.ts.map +0 -1
  253. package/dist/commonjs/guard/is-truthy.js +0 -7
  254. package/dist/commonjs/helpers/index.d.ts +0 -8
  255. package/dist/commonjs/helpers/index.d.ts.map +0 -1
  256. package/dist/commonjs/helpers/index.js +0 -52
  257. package/dist/commonjs/index.d.ts +0 -11
  258. package/dist/commonjs/index.d.ts.map +0 -1
  259. package/dist/commonjs/index.js +0 -27
  260. package/dist/commonjs/number/clamp.d.ts +0 -9
  261. package/dist/commonjs/number/clamp.d.ts.map +0 -1
  262. package/dist/commonjs/number/clamp.js +0 -17
  263. package/dist/commonjs/number/index.d.ts +0 -2
  264. package/dist/commonjs/number/index.d.ts.map +0 -1
  265. package/dist/commonjs/number/index.js +0 -17
  266. package/dist/commonjs/object/add-prop.d.ts +0 -7
  267. package/dist/commonjs/object/add-prop.d.ts.map +0 -1
  268. package/dist/commonjs/object/add-prop.js +0 -11
  269. package/dist/commonjs/object/clone.d.ts +0 -2
  270. package/dist/commonjs/object/clone.d.ts.map +0 -1
  271. package/dist/commonjs/object/clone.js +0 -49
  272. package/dist/commonjs/object/equals.d.ts +0 -3
  273. package/dist/commonjs/object/equals.d.ts.map +0 -1
  274. package/dist/commonjs/object/equals.js +0 -71
  275. package/dist/commonjs/object/for-each-obj.d.ts +0 -10
  276. package/dist/commonjs/object/for-each-obj.d.ts.map +0 -1
  277. package/dist/commonjs/object/for-each-obj.js +0 -30
  278. package/dist/commonjs/object/from-pairs.d.ts +0 -21
  279. package/dist/commonjs/object/from-pairs.d.ts.map +0 -1
  280. package/dist/commonjs/object/from-pairs.js +0 -14
  281. package/dist/commonjs/object/index.d.ts +0 -23
  282. package/dist/commonjs/object/index.d.ts.map +0 -1
  283. package/dist/commonjs/object/index.js +0 -38
  284. package/dist/commonjs/object/invert.d.ts +0 -5
  285. package/dist/commonjs/object/invert.d.ts.map +0 -1
  286. package/dist/commonjs/object/invert.js +0 -15
  287. package/dist/commonjs/object/keys.d.ts +0 -15
  288. package/dist/commonjs/object/keys.d.ts.map +0 -1
  289. package/dist/commonjs/object/keys.js +0 -10
  290. package/dist/commonjs/object/map-keys.d.ts +0 -3
  291. package/dist/commonjs/object/map-keys.d.ts.map +0 -1
  292. package/dist/commonjs/object/map-keys.js +0 -16
  293. package/dist/commonjs/object/map-values.d.ts +0 -3
  294. package/dist/commonjs/object/map-values.d.ts.map +0 -1
  295. package/dist/commonjs/object/map-values.js +0 -16
  296. package/dist/commonjs/object/merge.d.ts +0 -3
  297. package/dist/commonjs/object/merge.d.ts.map +0 -1
  298. package/dist/commonjs/object/merge.js +0 -11
  299. package/dist/commonjs/object/omit-by.d.ts +0 -3
  300. package/dist/commonjs/object/omit-by.d.ts.map +0 -1
  301. package/dist/commonjs/object/omit-by.js +0 -16
  302. package/dist/commonjs/object/omit.d.ts +0 -3
  303. package/dist/commonjs/object/omit.d.ts.map +0 -1
  304. package/dist/commonjs/object/omit.js +0 -35
  305. package/dist/commonjs/object/path-or.d.ts +0 -21
  306. package/dist/commonjs/object/path-or.d.ts.map +0 -1
  307. package/dist/commonjs/object/path-or.js +0 -18
  308. package/dist/commonjs/object/pick-by.d.ts +0 -3
  309. package/dist/commonjs/object/pick-by.d.ts.map +0 -1
  310. package/dist/commonjs/object/pick-by.js +0 -19
  311. package/dist/commonjs/object/pick.d.ts +0 -3
  312. package/dist/commonjs/object/pick.d.ts.map +0 -1
  313. package/dist/commonjs/object/pick.js +0 -19
  314. package/dist/commonjs/object/prop.d.ts +0 -2
  315. package/dist/commonjs/object/prop.d.ts.map +0 -1
  316. package/dist/commonjs/object/prop.js +0 -5
  317. package/dist/commonjs/object/set-path.d.ts +0 -6
  318. package/dist/commonjs/object/set-path.d.ts.map +0 -1
  319. package/dist/commonjs/object/set-path.js +0 -23
  320. package/dist/commonjs/object/set.d.ts +0 -3
  321. package/dist/commonjs/object/set.d.ts.map +0 -1
  322. package/dist/commonjs/object/set.js +0 -11
  323. package/dist/commonjs/object/swap-props.d.ts +0 -7
  324. package/dist/commonjs/object/swap-props.d.ts.map +0 -1
  325. package/dist/commonjs/object/swap-props.js +0 -12
  326. package/dist/commonjs/object/to-pairs.d.ts +0 -13
  327. package/dist/commonjs/object/to-pairs.d.ts.map +0 -1
  328. package/dist/commonjs/object/to-pairs.js +0 -13
  329. package/dist/commonjs/object/values.d.ts +0 -2
  330. package/dist/commonjs/object/values.d.ts.map +0 -1
  331. package/dist/commonjs/object/values.js +0 -7
  332. package/dist/commonjs/string/cases-types.d.ts +0 -29
  333. package/dist/commonjs/string/cases-types.d.ts.map +0 -1
  334. package/dist/commonjs/string/cases-types.js +0 -2
  335. package/dist/commonjs/string/cases.d.ts +0 -16
  336. package/dist/commonjs/string/cases.d.ts.map +0 -1
  337. package/dist/commonjs/string/cases.js +0 -86
  338. package/dist/commonjs/string/index.d.ts +0 -4
  339. package/dist/commonjs/string/index.d.ts.map +0 -1
  340. package/dist/commonjs/string/index.js +0 -19
  341. package/dist/commonjs/string/random-string.d.ts +0 -2
  342. package/dist/commonjs/string/random-string.d.ts.map +0 -1
  343. package/dist/commonjs/string/random-string.js +0 -10
  344. package/dist/commonjs/string/string-to-path.d.ts +0 -3
  345. package/dist/commonjs/string/string-to-path.d.ts.map +0 -1
  346. package/dist/commonjs/string/string-to-path.js +0 -19
  347. package/dist/commonjs/type/index.d.ts +0 -2
  348. package/dist/commonjs/type/index.d.ts.map +0 -1
  349. package/dist/commonjs/type/index.js +0 -17
  350. package/dist/commonjs/type/type.d.ts +0 -2
  351. package/dist/commonjs/type/type.d.ts.map +0 -1
  352. package/dist/commonjs/type/type.js +0 -11
  353. package/dist/commonjs/utils/narrow.d.ts +0 -8
  354. package/dist/commonjs/utils/narrow.d.ts.map +0 -1
  355. package/dist/commonjs/utils/narrow.js +0 -2
  356. package/dist/commonjs/utils/paths.d.ts +0 -9
  357. package/dist/commonjs/utils/paths.d.ts.map +0 -1
  358. package/dist/commonjs/utils/paths.js +0 -2
  359. package/dist/commonjs/utils/reduce-lazy.d.ts +0 -22
  360. package/dist/commonjs/utils/reduce-lazy.d.ts.map +0 -1
  361. package/dist/commonjs/utils/reduce-lazy.js +0 -18
  362. package/dist/commonjs/utils/to-lazy-indexed.d.ts +0 -4
  363. package/dist/commonjs/utils/to-lazy-indexed.d.ts.map +0 -1
  364. package/dist/commonjs/utils/to-lazy-indexed.js +0 -8
  365. package/dist/commonjs/utils/to-single.d.ts +0 -4
  366. package/dist/commonjs/utils/to-single.d.ts.map +0 -1
  367. package/dist/commonjs/utils/to-single.js +0 -8
  368. package/dist/commonjs/utils/types.d.ts +0 -6
  369. package/dist/commonjs/utils/types.d.ts.map +0 -1
  370. package/dist/commonjs/utils/types.js +0 -2
  371. package/dist/es/aria/index.d.ts +0 -2
  372. package/dist/es/aria/index.d.ts.map +0 -1
  373. package/dist/es/aria/index.js +0 -1
  374. package/dist/es/aria/key-codes.d.ts +0 -23
  375. package/dist/es/aria/key-codes.d.ts.map +0 -1
  376. package/dist/es/aria/key-codes.js +0 -22
  377. package/dist/es/array/all-pass.d.ts +0 -3
  378. package/dist/es/array/all-pass.d.ts.map +0 -1
  379. package/dist/es/array/all-pass.js +0 -7
  380. package/dist/es/array/any-pass.d.ts +0 -3
  381. package/dist/es/array/any-pass.d.ts.map +0 -1
  382. package/dist/es/array/any-pass.js +0 -7
  383. package/dist/es/array/chunk.d.ts +0 -6
  384. package/dist/es/array/chunk.d.ts.map +0 -1
  385. package/dist/es/array/chunk.js +0 -13
  386. package/dist/es/array/compact.d.ts +0 -2
  387. package/dist/es/array/compact.d.ts.map +0 -1
  388. package/dist/es/array/compact.js +0 -4
  389. package/dist/es/array/concat.d.ts +0 -3
  390. package/dist/es/array/concat.d.ts.map +0 -1
  391. package/dist/es/array/concat.js +0 -7
  392. package/dist/es/array/count-by.d.ts +0 -8
  393. package/dist/es/array/count-by.d.ts.map +0 -1
  394. package/dist/es/array/count-by.js +0 -18
  395. package/dist/es/array/difference-with.d.ts +0 -9
  396. package/dist/es/array/difference-with.d.ts.map +0 -1
  397. package/dist/es/array/difference-with.js +0 -27
  398. package/dist/es/array/difference.d.ts +0 -7
  399. package/dist/es/array/difference.d.ts.map +0 -1
  400. package/dist/es/array/difference.js +0 -28
  401. package/dist/es/array/drop-last.d.ts +0 -3
  402. package/dist/es/array/drop-last.d.ts.map +0 -1
  403. package/dist/es/array/drop-last.js +0 -11
  404. package/dist/es/array/drop.d.ts +0 -7
  405. package/dist/es/array/drop.d.ts.map +0 -1
  406. package/dist/es/array/drop.js +0 -28
  407. package/dist/es/array/filter.d.ts +0 -17
  408. package/dist/es/array/filter.d.ts.map +0 -1
  409. package/dist/es/array/filter.js +0 -37
  410. package/dist/es/array/find-index.d.ts +0 -32
  411. package/dist/es/array/find-index.d.ts.map +0 -1
  412. package/dist/es/array/find-index.js +0 -42
  413. package/dist/es/array/find-last-index.d.ts +0 -8
  414. package/dist/es/array/find-last-index.d.ts.map +0 -1
  415. package/dist/es/array/find-last-index.js +0 -20
  416. package/dist/es/array/find-last.d.ts +0 -8
  417. package/dist/es/array/find-last.d.ts.map +0 -1
  418. package/dist/es/array/find-last.js +0 -19
  419. package/dist/es/array/find.d.ts +0 -24
  420. package/dist/es/array/find.d.ts.map +0 -1
  421. package/dist/es/array/find.js +0 -34
  422. package/dist/es/array/first.d.ts +0 -16
  423. package/dist/es/array/first.d.ts.map +0 -1
  424. package/dist/es/array/first.js +0 -22
  425. package/dist/es/array/flat-map-to-obj.d.ts +0 -7
  426. package/dist/es/array/flat-map-to-obj.d.ts.map +0 -1
  427. package/dist/es/array/flat-map-to-obj.js +0 -21
  428. package/dist/es/array/flat-map.d.ts +0 -16
  429. package/dist/es/array/flat-map.d.ts.map +0 -1
  430. package/dist/es/array/flat-map.js +0 -29
  431. package/dist/es/array/flatten-deep.d.ts +0 -12
  432. package/dist/es/array/flatten-deep.d.ts.map +0 -1
  433. package/dist/es/array/flatten-deep.js +0 -44
  434. package/dist/es/array/flatten.d.ts +0 -9
  435. package/dist/es/array/flatten.d.ts.map +0 -1
  436. package/dist/es/array/flatten.js +0 -28
  437. package/dist/es/array/for-each.d.ts +0 -13
  438. package/dist/es/array/for-each.d.ts.map +0 -1
  439. package/dist/es/array/for-each.js +0 -36
  440. package/dist/es/array/group-by.d.ts +0 -19
  441. package/dist/es/array/group-by.d.ts.map +0 -1
  442. package/dist/es/array/group-by.js +0 -27
  443. package/dist/es/array/index-by.d.ts +0 -8
  444. package/dist/es/array/index-by.d.ts.map +0 -1
  445. package/dist/es/array/index-by.js +0 -20
  446. package/dist/es/array/index.d.ts +0 -56
  447. package/dist/es/array/index.d.ts.map +0 -1
  448. package/dist/es/array/index.js +0 -55
  449. package/dist/es/array/intersection-with.d.ts +0 -9
  450. package/dist/es/array/intersection-with.d.ts.map +0 -1
  451. package/dist/es/array/intersection-with.js +0 -27
  452. package/dist/es/array/intersection.d.ts +0 -7
  453. package/dist/es/array/intersection.d.ts.map +0 -1
  454. package/dist/es/array/intersection.js +0 -28
  455. package/dist/es/array/join.d.ts +0 -8
  456. package/dist/es/array/join.d.ts.map +0 -1
  457. package/dist/es/array/join.js +0 -7
  458. package/dist/es/array/last.d.ts +0 -5
  459. package/dist/es/array/last.d.ts.map +0 -1
  460. package/dist/es/array/last.js +0 -7
  461. package/dist/es/array/length.d.ts +0 -5
  462. package/dist/es/array/length.d.ts.map +0 -1
  463. package/dist/es/array/length.js +0 -7
  464. package/dist/es/array/map-to-obj.d.ts +0 -7
  465. package/dist/es/array/map-to-obj.d.ts.map +0 -1
  466. package/dist/es/array/map-to-obj.js +0 -19
  467. package/dist/es/array/map.d.ts +0 -26
  468. package/dist/es/array/map.d.ts.map +0 -1
  469. package/dist/es/array/map.js +0 -31
  470. package/dist/es/array/max-by.d.ts +0 -8
  471. package/dist/es/array/max-by.d.ts.map +0 -1
  472. package/dist/es/array/max-by.js +0 -24
  473. package/dist/es/array/mean-by.d.ts +0 -8
  474. package/dist/es/array/mean-by.d.ts.map +0 -1
  475. package/dist/es/array/mean-by.js +0 -22
  476. package/dist/es/array/merge-all.d.ts +0 -7
  477. package/dist/es/array/merge-all.d.ts.map +0 -1
  478. package/dist/es/array/merge-all.js +0 -3
  479. package/dist/es/array/min-by.d.ts +0 -8
  480. package/dist/es/array/min-by.d.ts.map +0 -1
  481. package/dist/es/array/min-by.js +0 -24
  482. package/dist/es/array/partition.d.ts +0 -10
  483. package/dist/es/array/partition.d.ts.map +0 -1
  484. package/dist/es/array/partition.js +0 -20
  485. package/dist/es/array/range.d.ts +0 -3
  486. package/dist/es/array/range.d.ts.map +0 -1
  487. package/dist/es/array/range.js +0 -11
  488. package/dist/es/array/reduce.d.ts +0 -7
  489. package/dist/es/array/reduce.d.ts.map +0 -1
  490. package/dist/es/array/reduce.js +0 -15
  491. package/dist/es/array/reject.d.ts +0 -13
  492. package/dist/es/array/reject.d.ts.map +0 -1
  493. package/dist/es/array/reject.js +0 -37
  494. package/dist/es/array/reverse.d.ts +0 -6
  495. package/dist/es/array/reverse.d.ts.map +0 -1
  496. package/dist/es/array/reverse.js +0 -7
  497. package/dist/es/array/sample.d.ts +0 -11
  498. package/dist/es/array/sample.d.ts.map +0 -1
  499. package/dist/es/array/sample.js +0 -30
  500. package/dist/es/array/shuffle.d.ts +0 -3
  501. package/dist/es/array/shuffle.d.ts.map +0 -1
  502. package/dist/es/array/shuffle.js +0 -14
  503. package/dist/es/array/sort-by.d.ts +0 -27
  504. package/dist/es/array/sort-by.d.ts.map +0 -1
  505. package/dist/es/array/sort-by.js +0 -51
  506. package/dist/es/array/sort.d.ts +0 -15
  507. package/dist/es/array/sort.d.ts.map +0 -1
  508. package/dist/es/array/sort.js +0 -12
  509. package/dist/es/array/split-at.d.ts +0 -3
  510. package/dist/es/array/split-at.d.ts.map +0 -1
  511. package/dist/es/array/split-at.js +0 -9
  512. package/dist/es/array/split-when.d.ts +0 -3
  513. package/dist/es/array/split-when.d.ts.map +0 -1
  514. package/dist/es/array/split-when.js +0 -13
  515. package/dist/es/array/sum-by.d.ts +0 -8
  516. package/dist/es/array/sum-by.d.ts.map +0 -1
  517. package/dist/es/array/sum-by.js +0 -20
  518. package/dist/es/array/swap-indices.d.ts +0 -25
  519. package/dist/es/array/swap-indices.d.ts.map +0 -1
  520. package/dist/es/array/swap-indices.js +0 -30
  521. package/dist/es/array/take-while.d.ts +0 -3
  522. package/dist/es/array/take-while.d.ts.map +0 -1
  523. package/dist/es/array/take-while.js +0 -14
  524. package/dist/es/array/take.d.ts +0 -7
  525. package/dist/es/array/take.d.ts.map +0 -1
  526. package/dist/es/array/take.js +0 -34
  527. package/dist/es/array/uniq-by.d.ts +0 -3
  528. package/dist/es/array/uniq-by.d.ts.map +0 -1
  529. package/dist/es/array/uniq-by.js +0 -26
  530. package/dist/es/array/uniq-with.d.ts +0 -12
  531. package/dist/es/array/uniq-with.d.ts.map +0 -1
  532. package/dist/es/array/uniq-with.js +0 -29
  533. package/dist/es/array/uniq.d.ts +0 -7
  534. package/dist/es/array/uniq.d.ts.map +0 -1
  535. package/dist/es/array/uniq.js +0 -28
  536. package/dist/es/array/zip-obj.d.ts +0 -3
  537. package/dist/es/array/zip-obj.d.ts.map +0 -1
  538. package/dist/es/array/zip-obj.js +0 -12
  539. package/dist/es/array/zip-with.d.ts +0 -4
  540. package/dist/es/array/zip-with.d.ts.map +0 -1
  541. package/dist/es/array/zip-with.js +0 -24
  542. package/dist/es/array/zip.d.ts +0 -3
  543. package/dist/es/array/zip.d.ts.map +0 -1
  544. package/dist/es/array/zip.js +0 -12
  545. package/dist/es/base.d.ts +0 -2
  546. package/dist/es/base.d.ts.map +0 -1
  547. package/dist/es/base.js +0 -3
  548. package/dist/es/function/create-pipe.d.ts +0 -8
  549. package/dist/es/function/create-pipe.d.ts.map +0 -1
  550. package/dist/es/function/create-pipe.js +0 -4
  551. package/dist/es/function/identity.d.ts +0 -2
  552. package/dist/es/function/identity.d.ts.map +0 -1
  553. package/dist/es/function/identity.js +0 -3
  554. package/dist/es/function/index.d.ts +0 -7
  555. package/dist/es/function/index.d.ts.map +0 -1
  556. package/dist/es/function/index.js +0 -6
  557. package/dist/es/function/noop.d.ts +0 -2
  558. package/dist/es/function/noop.d.ts.map +0 -1
  559. package/dist/es/function/noop.js +0 -3
  560. package/dist/es/function/once.d.ts +0 -2
  561. package/dist/es/function/once.d.ts.map +0 -1
  562. package/dist/es/function/once.js +0 -11
  563. package/dist/es/function/pipe.d.ts +0 -16
  564. package/dist/es/function/pipe.d.ts.map +0 -1
  565. package/dist/es/function/pipe.js +0 -101
  566. package/dist/es/function/purry.d.ts +0 -2
  567. package/dist/es/function/purry.d.ts.map +0 -1
  568. package/dist/es/function/purry.js +0 -16
  569. package/dist/es/guard/index.d.ts +0 -16
  570. package/dist/es/guard/index.d.ts.map +0 -1
  571. package/dist/es/guard/index.js +0 -15
  572. package/dist/es/guard/is-array.d.ts +0 -4
  573. package/dist/es/guard/is-array.d.ts.map +0 -1
  574. package/dist/es/guard/is-array.js +0 -3
  575. package/dist/es/guard/is-boolean.d.ts +0 -4
  576. package/dist/es/guard/is-boolean.d.ts.map +0 -1
  577. package/dist/es/guard/is-boolean.js +0 -3
  578. package/dist/es/guard/is-date.d.ts +0 -2
  579. package/dist/es/guard/is-date.d.ts.map +0 -1
  580. package/dist/es/guard/is-date.js +0 -3
  581. package/dist/es/guard/is-defined.d.ts +0 -5
  582. package/dist/es/guard/is-defined.d.ts.map +0 -1
  583. package/dist/es/guard/is-defined.js +0 -9
  584. package/dist/es/guard/is-empty.d.ts +0 -4
  585. package/dist/es/guard/is-empty.d.ts.map +0 -1
  586. package/dist/es/guard/is-empty.js +0 -15
  587. package/dist/es/guard/is-error.d.ts +0 -4
  588. package/dist/es/guard/is-error.d.ts.map +0 -1
  589. package/dist/es/guard/is-error.js +0 -3
  590. package/dist/es/guard/is-function.d.ts +0 -4
  591. package/dist/es/guard/is-function.d.ts.map +0 -1
  592. package/dist/es/guard/is-function.js +0 -3
  593. package/dist/es/guard/is-nil.d.ts +0 -2
  594. package/dist/es/guard/is-nil.d.ts.map +0 -1
  595. package/dist/es/guard/is-nil.js +0 -3
  596. package/dist/es/guard/is-non-null.d.ts +0 -2
  597. package/dist/es/guard/is-non-null.d.ts.map +0 -1
  598. package/dist/es/guard/is-non-null.js +0 -3
  599. package/dist/es/guard/is-not.d.ts +0 -3
  600. package/dist/es/guard/is-not.d.ts.map +0 -1
  601. package/dist/es/guard/is-not.js +0 -5
  602. package/dist/es/guard/is-number.d.ts +0 -4
  603. package/dist/es/guard/is-number.d.ts.map +0 -1
  604. package/dist/es/guard/is-number.js +0 -3
  605. package/dist/es/guard/is-object.d.ts +0 -4
  606. package/dist/es/guard/is-object.d.ts.map +0 -1
  607. package/dist/es/guard/is-object.js +0 -4
  608. package/dist/es/guard/is-promise.d.ts +0 -2
  609. package/dist/es/guard/is-promise.d.ts.map +0 -1
  610. package/dist/es/guard/is-promise.js +0 -3
  611. package/dist/es/guard/is-string.d.ts +0 -4
  612. package/dist/es/guard/is-string.d.ts.map +0 -1
  613. package/dist/es/guard/is-string.js +0 -3
  614. package/dist/es/guard/is-truthy.d.ts +0 -2
  615. package/dist/es/guard/is-truthy.d.ts.map +0 -1
  616. package/dist/es/guard/is-truthy.js +0 -3
  617. package/dist/es/helpers/index.d.ts +0 -8
  618. package/dist/es/helpers/index.d.ts.map +0 -1
  619. package/dist/es/helpers/index.js +0 -45
  620. package/dist/es/index.d.ts +0 -11
  621. package/dist/es/index.d.ts.map +0 -1
  622. package/dist/es/index.js +0 -10
  623. package/dist/es/number/clamp.d.ts +0 -9
  624. package/dist/es/number/clamp.d.ts.map +0 -1
  625. package/dist/es/number/clamp.js +0 -13
  626. package/dist/es/number/index.d.ts +0 -2
  627. package/dist/es/number/index.d.ts.map +0 -1
  628. package/dist/es/number/index.js +0 -1
  629. package/dist/es/object/add-prop.d.ts +0 -7
  630. package/dist/es/object/add-prop.d.ts.map +0 -1
  631. package/dist/es/object/add-prop.js +0 -7
  632. package/dist/es/object/clone.d.ts +0 -2
  633. package/dist/es/object/clone.d.ts.map +0 -1
  634. package/dist/es/object/clone.js +0 -45
  635. package/dist/es/object/equals.d.ts +0 -3
  636. package/dist/es/object/equals.d.ts.map +0 -1
  637. package/dist/es/object/equals.js +0 -67
  638. package/dist/es/object/for-each-obj.d.ts +0 -10
  639. package/dist/es/object/for-each-obj.d.ts.map +0 -1
  640. package/dist/es/object/for-each-obj.js +0 -26
  641. package/dist/es/object/from-pairs.d.ts +0 -21
  642. package/dist/es/object/from-pairs.d.ts.map +0 -1
  643. package/dist/es/object/from-pairs.js +0 -10
  644. package/dist/es/object/index.d.ts +0 -23
  645. package/dist/es/object/index.d.ts.map +0 -1
  646. package/dist/es/object/index.js +0 -22
  647. package/dist/es/object/invert.d.ts +0 -5
  648. package/dist/es/object/invert.d.ts.map +0 -1
  649. package/dist/es/object/invert.js +0 -11
  650. package/dist/es/object/keys.d.ts +0 -15
  651. package/dist/es/object/keys.d.ts.map +0 -1
  652. package/dist/es/object/keys.js +0 -6
  653. package/dist/es/object/map-keys.d.ts +0 -3
  654. package/dist/es/object/map-keys.d.ts.map +0 -1
  655. package/dist/es/object/map-keys.js +0 -12
  656. package/dist/es/object/map-values.d.ts +0 -3
  657. package/dist/es/object/map-values.d.ts.map +0 -1
  658. package/dist/es/object/map-values.js +0 -12
  659. package/dist/es/object/merge.d.ts +0 -3
  660. package/dist/es/object/merge.d.ts.map +0 -1
  661. package/dist/es/object/merge.js +0 -7
  662. package/dist/es/object/omit-by.d.ts +0 -3
  663. package/dist/es/object/omit-by.d.ts.map +0 -1
  664. package/dist/es/object/omit-by.js +0 -12
  665. package/dist/es/object/omit.d.ts +0 -3
  666. package/dist/es/object/omit.d.ts.map +0 -1
  667. package/dist/es/object/omit.js +0 -31
  668. package/dist/es/object/path-or.d.ts +0 -21
  669. package/dist/es/object/path-or.d.ts.map +0 -1
  670. package/dist/es/object/path-or.js +0 -14
  671. package/dist/es/object/pick-by.d.ts +0 -3
  672. package/dist/es/object/pick-by.d.ts.map +0 -1
  673. package/dist/es/object/pick-by.js +0 -15
  674. package/dist/es/object/pick.d.ts +0 -3
  675. package/dist/es/object/pick.d.ts.map +0 -1
  676. package/dist/es/object/pick.js +0 -15
  677. package/dist/es/object/prop.d.ts +0 -2
  678. package/dist/es/object/prop.d.ts.map +0 -1
  679. package/dist/es/object/prop.js +0 -1
  680. package/dist/es/object/set-path.d.ts +0 -6
  681. package/dist/es/object/set-path.d.ts.map +0 -1
  682. package/dist/es/object/set-path.js +0 -18
  683. package/dist/es/object/set.d.ts +0 -3
  684. package/dist/es/object/set.d.ts.map +0 -1
  685. package/dist/es/object/set.js +0 -7
  686. package/dist/es/object/swap-props.d.ts +0 -7
  687. package/dist/es/object/swap-props.d.ts.map +0 -1
  688. package/dist/es/object/swap-props.js +0 -8
  689. package/dist/es/object/to-pairs.d.ts +0 -13
  690. package/dist/es/object/to-pairs.d.ts.map +0 -1
  691. package/dist/es/object/to-pairs.js +0 -9
  692. package/dist/es/object/values.d.ts +0 -2
  693. package/dist/es/object/values.d.ts.map +0 -1
  694. package/dist/es/object/values.js +0 -3
  695. package/dist/es/string/cases-types.d.ts +0 -29
  696. package/dist/es/string/cases-types.d.ts.map +0 -1
  697. package/dist/es/string/cases-types.js +0 -1
  698. package/dist/es/string/cases.d.ts +0 -16
  699. package/dist/es/string/cases.d.ts.map +0 -1
  700. package/dist/es/string/cases.js +0 -75
  701. package/dist/es/string/index.d.ts +0 -4
  702. package/dist/es/string/index.d.ts.map +0 -1
  703. package/dist/es/string/index.js +0 -3
  704. package/dist/es/string/random-string.d.ts +0 -2
  705. package/dist/es/string/random-string.d.ts.map +0 -1
  706. package/dist/es/string/random-string.js +0 -6
  707. package/dist/es/string/string-to-path.d.ts +0 -3
  708. package/dist/es/string/string-to-path.d.ts.map +0 -1
  709. package/dist/es/string/string-to-path.js +0 -15
  710. package/dist/es/type/index.d.ts +0 -2
  711. package/dist/es/type/index.d.ts.map +0 -1
  712. package/dist/es/type/index.js +0 -1
  713. package/dist/es/type/type.d.ts +0 -2
  714. package/dist/es/type/type.d.ts.map +0 -1
  715. package/dist/es/type/type.js +0 -7
  716. package/dist/es/utils/narrow.d.ts +0 -8
  717. package/dist/es/utils/narrow.d.ts.map +0 -1
  718. package/dist/es/utils/narrow.js +0 -1
  719. package/dist/es/utils/paths.d.ts +0 -9
  720. package/dist/es/utils/paths.d.ts.map +0 -1
  721. package/dist/es/utils/paths.js +0 -1
  722. package/dist/es/utils/reduce-lazy.d.ts +0 -22
  723. package/dist/es/utils/reduce-lazy.d.ts.map +0 -1
  724. package/dist/es/utils/reduce-lazy.js +0 -14
  725. package/dist/es/utils/to-lazy-indexed.d.ts +0 -4
  726. package/dist/es/utils/to-lazy-indexed.d.ts.map +0 -1
  727. package/dist/es/utils/to-lazy-indexed.js +0 -4
  728. package/dist/es/utils/to-single.d.ts +0 -4
  729. package/dist/es/utils/to-single.d.ts.map +0 -1
  730. package/dist/es/utils/to-single.js +0 -4
  731. package/dist/es/utils/types.d.ts +0 -6
  732. package/dist/es/utils/types.d.ts.map +0 -1
  733. package/dist/es/utils/types.js +0 -1
package/dist/index.cjs ADDED
@@ -0,0 +1,2300 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ KEY_CODES: () => KEY_CODES,
24
+ _setPath: () => _setPath,
25
+ addProp: () => addProp,
26
+ allPass: () => allPass,
27
+ anyPass: () => anyPass,
28
+ chunk: () => chunk,
29
+ clamp: () => clamp,
30
+ clone: () => clone,
31
+ compact: () => compact,
32
+ concat: () => concat,
33
+ convertToUnit: () => convertToUnit,
34
+ countBy: () => countBy,
35
+ createPipe: () => createPipe,
36
+ difference: () => difference,
37
+ differenceWith: () => differenceWith,
38
+ drop: () => drop,
39
+ dropLast: () => dropLast,
40
+ equals: () => equals,
41
+ filter: () => filter,
42
+ find: () => find,
43
+ findIndex: () => findIndex,
44
+ findLast: () => findLast,
45
+ findLastIndex: () => findLastIndex,
46
+ first: () => first,
47
+ flatMap: () => flatMap,
48
+ flatMapToObj: () => flatMapToObj,
49
+ flatten: () => flatten,
50
+ flattenDeep: () => flattenDeep,
51
+ forEach: () => forEach,
52
+ forEachObj: () => forEachObj,
53
+ fromPairs: () => fromPairs,
54
+ groupBy: () => groupBy,
55
+ humanReadableFileSize: () => humanReadableFileSize,
56
+ identity: () => identity,
57
+ increaseWithUnit: () => increaseWithUnit,
58
+ indexBy: () => indexBy,
59
+ intersection: () => intersection,
60
+ intersectionWith: () => intersectionWith,
61
+ invert: () => invert,
62
+ isArray: () => isArray,
63
+ isBoolean: () => isBoolean,
64
+ isBrowser: () => isBrowser,
65
+ isDate: () => isDate,
66
+ isDefined: () => isDefined,
67
+ isEmpty: () => isEmpty,
68
+ isError: () => isError,
69
+ isFunction: () => isFunction,
70
+ isNil: () => isNil,
71
+ isNonNull: () => isNonNull,
72
+ isNot: () => isNot,
73
+ isNumber: () => isNumber,
74
+ isObject: () => isObject,
75
+ isPromise: () => isPromise,
76
+ isString: () => isString,
77
+ isTruthy: () => isTruthy,
78
+ isUppercase: () => isUppercase,
79
+ join: () => join,
80
+ keys: () => keys,
81
+ last: () => last,
82
+ length: () => length,
83
+ map: () => map,
84
+ mapKeys: () => mapKeys,
85
+ mapToObj: () => mapToObj,
86
+ mapValues: () => mapValues,
87
+ maxBy: () => maxBy,
88
+ meanBy: () => meanBy,
89
+ merge: () => merge,
90
+ mergeAll: () => mergeAll,
91
+ minBy: () => minBy,
92
+ noop: () => noop,
93
+ omit: () => omit,
94
+ omitBy: () => omitBy,
95
+ once: () => once,
96
+ partition: () => partition,
97
+ pathOr: () => pathOr,
98
+ pick: () => pick,
99
+ pickBy: () => pickBy,
100
+ pipe: () => pipe,
101
+ prop: () => prop,
102
+ purry: () => purry,
103
+ randomString: () => randomString,
104
+ range: () => range,
105
+ reduce: () => reduce,
106
+ reject: () => reject,
107
+ reverse: () => reverse,
108
+ sample: () => sample,
109
+ set: () => set,
110
+ setPath: () => setPath,
111
+ shuffle: () => shuffle,
112
+ sleep: () => sleep,
113
+ sort: () => sort,
114
+ sortBy: () => sortBy,
115
+ splitAt: () => splitAt,
116
+ splitByCase: () => splitByCase,
117
+ splitWhen: () => splitWhen,
118
+ stringToPath: () => stringToPath,
119
+ sumBy: () => sumBy,
120
+ swapIndices: () => swapIndices,
121
+ swapProps: () => swapProps,
122
+ take: () => take,
123
+ takeWhile: () => takeWhile,
124
+ toCamelCase: () => toCamelCase,
125
+ toKebabCase: () => toKebabCase,
126
+ toLowerFirst: () => toLowerFirst,
127
+ toPairs: () => toPairs,
128
+ toPascalCase: () => toPascalCase,
129
+ toSnakeCase: () => toSnakeCase,
130
+ toUpperFirst: () => toUpperFirst,
131
+ type: () => type,
132
+ uniq: () => uniq,
133
+ uniqBy: () => uniqBy,
134
+ uniqWith: () => uniqWith,
135
+ values: () => values,
136
+ zip: () => zip,
137
+ zipObj: () => zipObj,
138
+ zipWith: () => zipWith
139
+ });
140
+ module.exports = __toCommonJS(src_exports);
141
+
142
+ // src/aria/key-codes.ts
143
+ var KEY_CODES = {
144
+ TAB: "Tab",
145
+ ARROW_DOWN: "ArrowDown",
146
+ ARROW_UP: "ArrowUp",
147
+ ARROW_LEFT: "ArrowLeft",
148
+ ARROW_RIGHT: "ArrowRight",
149
+ ENTER: "Enter",
150
+ ESC: "Escape",
151
+ SPACE: "Space",
152
+ SHIFT: "Shift",
153
+ KEY_F: "KEY_F",
154
+ CTRL: "Control",
155
+ ALT: "Alt",
156
+ META: "Meta",
157
+ AT: "@",
158
+ DELETE: "Delete",
159
+ BACKSPACE: "Backspace",
160
+ HOME: "Home",
161
+ END: "End",
162
+ PAGE_UP: "PageUp",
163
+ PAGE_DOWN: "PageDown"
164
+ };
165
+
166
+ // src/function/pipe.ts
167
+ function pipe(value, ...operations) {
168
+ let ret = value;
169
+ const lazyOps = operations.map((op) => {
170
+ const { lazy, lazyArgs } = op;
171
+ if (lazy) {
172
+ const fn = lazy(...lazyArgs || []);
173
+ fn.indexed = lazy.indexed;
174
+ fn.single = lazy.single;
175
+ fn.index = 0;
176
+ fn.items = [];
177
+ return fn;
178
+ }
179
+ return null;
180
+ });
181
+ let opIdx = 0;
182
+ while (opIdx < operations.length) {
183
+ const op = operations[opIdx];
184
+ const lazyOp = lazyOps[opIdx];
185
+ if (!lazyOp) {
186
+ ret = op(ret);
187
+ opIdx++;
188
+ continue;
189
+ }
190
+ const lazySeq = [];
191
+ for (let j = opIdx; j < operations.length; j++) {
192
+ if (lazyOps[j]) {
193
+ lazySeq.push(lazyOps[j]);
194
+ if (lazyOps[j].single) {
195
+ break;
196
+ }
197
+ } else {
198
+ break;
199
+ }
200
+ }
201
+ const acc = [];
202
+ for (const item of ret) {
203
+ if (_processItem({ item, acc, lazySeq })) {
204
+ break;
205
+ }
206
+ }
207
+ const lastLazySeq = lazySeq[lazySeq.length - 1];
208
+ if (lastLazySeq.single) {
209
+ ret = acc[0];
210
+ } else {
211
+ ret = acc;
212
+ }
213
+ opIdx += lazySeq.length;
214
+ }
215
+ return ret;
216
+ }
217
+ function _processItem({
218
+ item,
219
+ lazySeq,
220
+ acc
221
+ }) {
222
+ if (lazySeq.length === 0) {
223
+ acc.push(item);
224
+ return false;
225
+ }
226
+ let lazyResult = { done: false, hasNext: false };
227
+ let isDone = false;
228
+ for (let i = 0; i < lazySeq.length; i++) {
229
+ const lazyFn = lazySeq[i];
230
+ const indexed = lazyFn.indexed;
231
+ const index = lazyFn.index;
232
+ const items = lazyFn.items;
233
+ items.push(item);
234
+ lazyResult = indexed ? lazyFn(item, index, items) : lazyFn(item);
235
+ lazyFn.index++;
236
+ if (lazyResult.hasNext) {
237
+ if (lazyResult.hasMany) {
238
+ const nextValues = lazyResult.next;
239
+ for (const subItem of nextValues) {
240
+ const subResult = _processItem({
241
+ item: subItem,
242
+ acc,
243
+ lazySeq: lazySeq.slice(i + 1)
244
+ });
245
+ if (subResult) {
246
+ return true;
247
+ }
248
+ }
249
+ return false;
250
+ } else {
251
+ item = lazyResult.next;
252
+ }
253
+ }
254
+ if (!lazyResult.hasNext) {
255
+ break;
256
+ }
257
+ if (lazyResult.done) {
258
+ isDone = true;
259
+ }
260
+ }
261
+ if (lazyResult.hasNext) {
262
+ acc.push(item);
263
+ }
264
+ if (isDone) {
265
+ return true;
266
+ }
267
+ return false;
268
+ }
269
+
270
+ // src/function/create-pipe.ts
271
+ function createPipe(...operations) {
272
+ return (value) => pipe(value, ...operations);
273
+ }
274
+
275
+ // src/function/identity.ts
276
+ function identity(value) {
277
+ return value;
278
+ }
279
+
280
+ // src/function/noop.ts
281
+ function noop() {
282
+ return void 0;
283
+ }
284
+
285
+ // src/function/once.ts
286
+ function once(fn) {
287
+ let called = false;
288
+ let ret;
289
+ return () => {
290
+ if (!called) {
291
+ ret = fn();
292
+ called = true;
293
+ }
294
+ return ret;
295
+ };
296
+ }
297
+
298
+ // src/function/purry.ts
299
+ function purry(fn, args, lazy) {
300
+ const diff = fn.length - args.length;
301
+ const arrayArgs = Array.from(args);
302
+ if (diff === 0) {
303
+ return fn(...arrayArgs);
304
+ }
305
+ if (diff === 1) {
306
+ const ret = (data) => fn(data, ...arrayArgs);
307
+ if (lazy || fn.lazy) {
308
+ ret.lazy = lazy || fn.lazy;
309
+ ret.lazyArgs = args;
310
+ }
311
+ return ret;
312
+ }
313
+ throw new Error("Wrong number of arguments");
314
+ }
315
+
316
+ // src/array/all-pass.ts
317
+ function allPass() {
318
+ return purry(_allPass, arguments);
319
+ }
320
+ function _allPass(data, fns) {
321
+ return fns.every((fn) => fn(data));
322
+ }
323
+
324
+ // src/array/any-pass.ts
325
+ function anyPass() {
326
+ return purry(_anyPass, arguments);
327
+ }
328
+ function _anyPass(data, fns) {
329
+ return fns.some((fn) => fn(data));
330
+ }
331
+
332
+ // src/array/chunk.ts
333
+ function chunk() {
334
+ return purry(_chunk, arguments);
335
+ }
336
+ function _chunk(array, size) {
337
+ const ret = Array.from({
338
+ length: Math.ceil(array.length / size)
339
+ });
340
+ for (let index = 0; index < ret.length; index += 1) {
341
+ ret[index] = array.slice(index * size, (index + 1) * size);
342
+ }
343
+ return ret;
344
+ }
345
+
346
+ // src/guard/is-array.ts
347
+ function isArray(data) {
348
+ return Array.isArray(data);
349
+ }
350
+
351
+ // src/guard/is-boolean.ts
352
+ function isBoolean(data) {
353
+ return typeof data === "boolean";
354
+ }
355
+
356
+ // src/guard/is-date.ts
357
+ function isDate(data) {
358
+ return data instanceof Date;
359
+ }
360
+
361
+ // src/guard/is-defined.ts
362
+ function isDefined(data) {
363
+ return typeof data !== "undefined" && data !== null;
364
+ }
365
+ ((isDefined2) => {
366
+ function strict(data) {
367
+ return data !== void 0;
368
+ }
369
+ isDefined2.strict = strict;
370
+ })(isDefined || (isDefined = {}));
371
+
372
+ // src/base.ts
373
+ function toString(value) {
374
+ return Object.prototype.toString.call(value);
375
+ }
376
+
377
+ // src/guard/is-object.ts
378
+ function isObject(data) {
379
+ return toString(data) === "[object Object]";
380
+ }
381
+
382
+ // src/guard/is-string.ts
383
+ function isString(data) {
384
+ return typeof data === "string";
385
+ }
386
+
387
+ // src/guard/is-empty.ts
388
+ function isEmpty(data) {
389
+ if (isArray(data) || isString(data)) {
390
+ return data.length === 0;
391
+ }
392
+ if (isObject(data)) {
393
+ for (const _ in data) {
394
+ return false;
395
+ }
396
+ return !(data instanceof RegExp);
397
+ }
398
+ return false;
399
+ }
400
+
401
+ // src/guard/is-error.ts
402
+ function isError(data) {
403
+ return data instanceof Error;
404
+ }
405
+
406
+ // src/guard/is-function.ts
407
+ function isFunction(data) {
408
+ return typeof data === "function";
409
+ }
410
+
411
+ // src/guard/is-nil.ts
412
+ function isNil(data) {
413
+ return data == null;
414
+ }
415
+
416
+ // src/guard/is-non-null.ts
417
+ function isNonNull(data) {
418
+ return data !== null;
419
+ }
420
+
421
+ // src/guard/is-not.ts
422
+ function isNot(predicate) {
423
+ return (data) => {
424
+ return !predicate(data);
425
+ };
426
+ }
427
+
428
+ // src/guard/is-number.ts
429
+ function isNumber(data) {
430
+ return typeof data === "number" && !Number.isNaN(data);
431
+ }
432
+
433
+ // src/guard/is-promise.ts
434
+ function isPromise(data) {
435
+ return data instanceof Promise;
436
+ }
437
+
438
+ // src/guard/is-truthy.ts
439
+ function isTruthy(data) {
440
+ return !!data;
441
+ }
442
+
443
+ // src/array/compact.ts
444
+ function compact(items) {
445
+ return items.filter(isTruthy);
446
+ }
447
+
448
+ // src/array/concat.ts
449
+ function concat() {
450
+ return purry(_concat, arguments);
451
+ }
452
+ function _concat(arr1, arr2) {
453
+ return arr1.concat(arr2);
454
+ }
455
+
456
+ // src/array/count-by.ts
457
+ function _countBy(indexed) {
458
+ return (array, fn) => {
459
+ return array.reduce((ret, item, index) => {
460
+ const value = indexed ? fn(item, index, array) : fn(item);
461
+ return ret + (value ? 1 : 0);
462
+ }, 0);
463
+ };
464
+ }
465
+ function countBy() {
466
+ return purry(_countBy(false), arguments);
467
+ }
468
+ ((countBy2) => {
469
+ function indexed() {
470
+ return purry(_countBy(true), arguments);
471
+ }
472
+ countBy2.indexed = indexed;
473
+ })(countBy || (countBy = {}));
474
+
475
+ // src/utils/reduce-lazy.ts
476
+ function _reduceLazy(array, lazy, indexed) {
477
+ const newArray = [];
478
+ for (let index = 0; index < array.length; index++) {
479
+ const item = array[index];
480
+ const result = indexed ? lazy(item, index, array) : lazy(item);
481
+ if (result.hasMany === true) {
482
+ newArray.push(...result.next);
483
+ } else if (result.hasNext) {
484
+ newArray.push(result.next);
485
+ }
486
+ }
487
+ return newArray;
488
+ }
489
+
490
+ // src/array/difference-with.ts
491
+ function differenceWith() {
492
+ return purry(_differenceWith, arguments, differenceWith.lazy);
493
+ }
494
+ function _differenceWith(array, other, isEquals) {
495
+ const lazy = differenceWith.lazy(other, isEquals);
496
+ return _reduceLazy(array, lazy);
497
+ }
498
+ ((differenceWith2) => {
499
+ function lazy(other, isEquals) {
500
+ return (value) => {
501
+ if (other.every((otherValue) => !isEquals(value, otherValue))) {
502
+ return {
503
+ done: false,
504
+ hasNext: true,
505
+ next: value
506
+ };
507
+ }
508
+ return {
509
+ done: false,
510
+ hasNext: false
511
+ };
512
+ };
513
+ }
514
+ differenceWith2.lazy = lazy;
515
+ })(differenceWith || (differenceWith = {}));
516
+
517
+ // src/array/difference.ts
518
+ function difference() {
519
+ return purry(_difference, arguments, difference.lazy);
520
+ }
521
+ function _difference(array, other) {
522
+ const lazy = difference.lazy(other);
523
+ return _reduceLazy(array, lazy);
524
+ }
525
+ ((difference2) => {
526
+ function lazy(other) {
527
+ const set2 = new Set(other);
528
+ return (value) => {
529
+ if (!set2.has(value)) {
530
+ return {
531
+ done: false,
532
+ hasNext: true,
533
+ next: value
534
+ };
535
+ }
536
+ return {
537
+ done: false,
538
+ hasNext: false
539
+ };
540
+ };
541
+ }
542
+ difference2.lazy = lazy;
543
+ })(difference || (difference = {}));
544
+
545
+ // src/array/drop-last.ts
546
+ function dropLast() {
547
+ return purry(_dropLast, arguments);
548
+ }
549
+ function _dropLast(array, n) {
550
+ const copy = [...array];
551
+ if (n > 0) {
552
+ copy.splice(-n);
553
+ }
554
+ return copy;
555
+ }
556
+
557
+ // src/array/drop.ts
558
+ function drop() {
559
+ return purry(_drop, arguments, drop.lazy);
560
+ }
561
+ function _drop(array, n) {
562
+ return _reduceLazy(array, drop.lazy(n));
563
+ }
564
+ ((drop2) => {
565
+ function lazy(n) {
566
+ let left = n;
567
+ return (value) => {
568
+ if (left > 0) {
569
+ left--;
570
+ return {
571
+ done: false,
572
+ hasNext: false
573
+ };
574
+ }
575
+ return {
576
+ done: false,
577
+ hasNext: true,
578
+ next: value
579
+ };
580
+ };
581
+ }
582
+ drop2.lazy = lazy;
583
+ })(drop || (drop = {}));
584
+
585
+ // src/utils/to-lazy-indexed.ts
586
+ function toLazyIndexed(fn) {
587
+ fn.indexed = true;
588
+ return fn;
589
+ }
590
+
591
+ // src/array/filter.ts
592
+ function filter() {
593
+ return purry(_filter(false), arguments, filter.lazy);
594
+ }
595
+ function _filter(indexed) {
596
+ return (array, fn) => {
597
+ return _reduceLazy(
598
+ array,
599
+ indexed ? filter.lazyIndexed(fn) : filter.lazy(fn),
600
+ indexed
601
+ );
602
+ };
603
+ }
604
+ function _lazy(indexed) {
605
+ return (fn) => {
606
+ return (value, index, array) => {
607
+ const valid = indexed ? fn(value, index, array) : fn(value);
608
+ if (valid) {
609
+ return {
610
+ done: false,
611
+ hasNext: true,
612
+ next: value
613
+ };
614
+ }
615
+ return {
616
+ done: false,
617
+ hasNext: false
618
+ };
619
+ };
620
+ };
621
+ }
622
+ ((filter2) => {
623
+ function indexed() {
624
+ return purry(_filter(true), arguments, filter2.lazyIndexed);
625
+ }
626
+ filter2.indexed = indexed;
627
+ filter2.lazy = _lazy(false);
628
+ filter2.lazyIndexed = toLazyIndexed(_lazy(true));
629
+ })(filter || (filter = {}));
630
+
631
+ // src/utils/to-single.ts
632
+ function toSingle(fn) {
633
+ fn.single = true;
634
+ return fn;
635
+ }
636
+
637
+ // src/array/find-index.ts
638
+ function findIndex() {
639
+ return purry(_findIndex(false), arguments, findIndex.lazy);
640
+ }
641
+ function _findIndex(indexed) {
642
+ return (array, fn) => {
643
+ if (indexed) {
644
+ return array.findIndex(fn);
645
+ }
646
+ return array.findIndex((x) => fn(x));
647
+ };
648
+ }
649
+ function _lazy2(indexed) {
650
+ return (fn) => {
651
+ let i = 0;
652
+ return (value, index, array) => {
653
+ const valid = indexed ? fn(value, index, array) : fn(value);
654
+ if (valid) {
655
+ return {
656
+ done: true,
657
+ hasNext: true,
658
+ next: i
659
+ };
660
+ }
661
+ i++;
662
+ return {
663
+ done: false,
664
+ hasNext: false
665
+ };
666
+ };
667
+ };
668
+ }
669
+ ((findIndex2) => {
670
+ function indexed() {
671
+ return purry(_findIndex(true), arguments, findIndex2.lazyIndexed);
672
+ }
673
+ findIndex2.indexed = indexed;
674
+ findIndex2.lazy = toSingle(_lazy2(false));
675
+ findIndex2.lazyIndexed = toSingle(toLazyIndexed(_lazy2(true)));
676
+ })(findIndex || (findIndex = {}));
677
+
678
+ // src/array/find-last-index.ts
679
+ function findLastIndex() {
680
+ return purry(_findLastIndex(false), arguments);
681
+ }
682
+ function _findLastIndex(indexed) {
683
+ return (array, fn) => {
684
+ for (let i = array.length - 1; i >= 0; i--) {
685
+ if (indexed ? fn(array[i], i, array) : fn(array[i])) {
686
+ return i;
687
+ }
688
+ }
689
+ return -1;
690
+ };
691
+ }
692
+ ((findLastIndex2) => {
693
+ function indexed() {
694
+ return purry(_findLastIndex(true), arguments);
695
+ }
696
+ findLastIndex2.indexed = indexed;
697
+ })(findLastIndex || (findLastIndex = {}));
698
+
699
+ // src/array/find-last.ts
700
+ function findLast() {
701
+ return purry(_findLast(false), arguments);
702
+ }
703
+ function _findLast(indexed) {
704
+ return (array, fn) => {
705
+ for (let i = array.length - 1; i >= 0; i--) {
706
+ if (indexed ? fn(array[i], i, array) : fn(array[i])) {
707
+ return array[i];
708
+ }
709
+ }
710
+ };
711
+ }
712
+ ((findLast2) => {
713
+ function indexed() {
714
+ return purry(_findLast(true), arguments);
715
+ }
716
+ findLast2.indexed = indexed;
717
+ })(findLast || (findLast = {}));
718
+
719
+ // src/array/find.ts
720
+ function find() {
721
+ return purry(_find(false), arguments, find.lazy);
722
+ }
723
+ function _find(indexed) {
724
+ return (array, fn) => {
725
+ if (indexed) {
726
+ return array.find(fn);
727
+ }
728
+ return array.find((x) => fn(x));
729
+ };
730
+ }
731
+ function _lazy3(indexed) {
732
+ return (fn) => {
733
+ return (value, index, array) => {
734
+ const valid = indexed ? fn(value, index, array) : fn(value);
735
+ return {
736
+ done: valid,
737
+ hasNext: valid,
738
+ next: value
739
+ };
740
+ };
741
+ };
742
+ }
743
+ ((find2) => {
744
+ function indexed() {
745
+ return purry(_find(true), arguments, find2.lazyIndexed);
746
+ }
747
+ find2.indexed = indexed;
748
+ find2.lazy = toSingle(_lazy3(false));
749
+ find2.lazyIndexed = toSingle(toLazyIndexed(_lazy3(true)));
750
+ })(find || (find = {}));
751
+
752
+ // src/array/first.ts
753
+ function first() {
754
+ return purry(_first, arguments, first.lazy);
755
+ }
756
+ function _first([first2]) {
757
+ return first2;
758
+ }
759
+ ((first2) => {
760
+ function lazy() {
761
+ return (value) => {
762
+ return {
763
+ done: true,
764
+ hasNext: true,
765
+ next: value
766
+ };
767
+ };
768
+ }
769
+ first2.lazy = lazy;
770
+ ((lazy2) => {
771
+ lazy2.single = true;
772
+ })(lazy = first2.lazy || (first2.lazy = {}));
773
+ })(first || (first = {}));
774
+
775
+ // src/array/flat-map-to-obj.ts
776
+ function flatMapToObj() {
777
+ return purry(_flatMapToObj(false), arguments);
778
+ }
779
+ function _flatMapToObj(indexed) {
780
+ return (array, fn) => {
781
+ return array.reduce((result, element, index) => {
782
+ const items = indexed ? fn(element, index, array) : fn(element);
783
+ items.forEach(([key, value]) => {
784
+ result[key] = value;
785
+ });
786
+ return result;
787
+ }, {});
788
+ };
789
+ }
790
+ ((flatMapToObj2) => {
791
+ function indexed() {
792
+ return purry(_flatMapToObj(true), arguments);
793
+ }
794
+ flatMapToObj2.indexed = indexed;
795
+ })(flatMapToObj || (flatMapToObj = {}));
796
+
797
+ // src/array/flatten.ts
798
+ function flatten() {
799
+ return purry(_flatten, arguments, flatten.lazy);
800
+ }
801
+ function _flatten(items) {
802
+ return _reduceLazy(items, flatten.lazy());
803
+ }
804
+ ((flatten2) => {
805
+ function lazy() {
806
+ return (next) => {
807
+ if (Array.isArray(next)) {
808
+ return {
809
+ done: false,
810
+ hasNext: true,
811
+ hasMany: true,
812
+ next
813
+ };
814
+ }
815
+ return {
816
+ done: false,
817
+ hasNext: true,
818
+ next
819
+ };
820
+ };
821
+ }
822
+ flatten2.lazy = lazy;
823
+ })(flatten || (flatten = {}));
824
+
825
+ // src/array/flat-map.ts
826
+ function flatMap() {
827
+ return purry(_flatMap, arguments, flatMap.lazy);
828
+ }
829
+ function _flatMap(array, fn) {
830
+ return flatten(array.map((item) => fn(item)));
831
+ }
832
+ ((flatMap2) => {
833
+ function lazy(fn) {
834
+ return (value) => {
835
+ const next = fn(value);
836
+ if (Array.isArray(next)) {
837
+ return {
838
+ done: false,
839
+ hasNext: true,
840
+ hasMany: true,
841
+ next
842
+ };
843
+ }
844
+ return {
845
+ done: false,
846
+ hasNext: true,
847
+ next
848
+ };
849
+ };
850
+ }
851
+ flatMap2.lazy = lazy;
852
+ })(flatMap || (flatMap = {}));
853
+
854
+ // src/array/flatten-deep.ts
855
+ function flattenDeep() {
856
+ return purry(_flattenDeep, arguments, flattenDeep.lazy);
857
+ }
858
+ function _flattenDeep(items) {
859
+ return _reduceLazy(items, flattenDeep.lazy());
860
+ }
861
+ function _flattenDeepValue(value) {
862
+ if (!Array.isArray(value)) {
863
+ return value;
864
+ }
865
+ const ret = [];
866
+ value.forEach((item) => {
867
+ if (Array.isArray(item)) {
868
+ ret.push(...flattenDeep(item));
869
+ } else {
870
+ ret.push(item);
871
+ }
872
+ });
873
+ return ret;
874
+ }
875
+ ((flattenDeep2) => {
876
+ function lazy() {
877
+ return (value) => {
878
+ const next = _flattenDeepValue(value);
879
+ if (Array.isArray(next)) {
880
+ return {
881
+ done: false,
882
+ hasNext: true,
883
+ hasMany: true,
884
+ next
885
+ };
886
+ }
887
+ return {
888
+ done: false,
889
+ hasNext: true,
890
+ next
891
+ };
892
+ };
893
+ }
894
+ flattenDeep2.lazy = lazy;
895
+ })(flattenDeep || (flattenDeep = {}));
896
+
897
+ // src/array/for-each.ts
898
+ function forEach() {
899
+ return purry(_forEach(false), arguments, forEach.lazy);
900
+ }
901
+ function _forEach(indexed) {
902
+ return (array, fn) => {
903
+ return _reduceLazy(
904
+ array,
905
+ indexed ? forEach.lazyIndexed(fn) : forEach.lazy(fn),
906
+ indexed
907
+ );
908
+ };
909
+ }
910
+ function _lazy4(indexed) {
911
+ return (fn) => {
912
+ return (value, index, array) => {
913
+ if (indexed) {
914
+ fn(value, index, array);
915
+ } else {
916
+ fn(value);
917
+ }
918
+ return {
919
+ done: false,
920
+ hasNext: true,
921
+ next: value
922
+ };
923
+ };
924
+ };
925
+ }
926
+ ((forEach2) => {
927
+ function indexed() {
928
+ return purry(_forEach(true), arguments, forEach2.lazyIndexed);
929
+ }
930
+ forEach2.indexed = indexed;
931
+ forEach2.lazy = _lazy4(false);
932
+ forEach2.lazyIndexed = toLazyIndexed(_lazy4(true));
933
+ })(forEach || (forEach = {}));
934
+
935
+ // src/array/group-by.ts
936
+ function groupBy() {
937
+ return purry(_groupBy(false), arguments);
938
+ }
939
+ function _groupBy(indexed) {
940
+ return (array, fn) => {
941
+ const ret = {};
942
+ array.forEach((item, index) => {
943
+ const key = indexed ? fn(item, index, array) : fn(item);
944
+ if (key !== void 0) {
945
+ const actualKey = String(key);
946
+ if (!ret[actualKey]) {
947
+ ret[actualKey] = [];
948
+ }
949
+ ret[actualKey].push(item);
950
+ }
951
+ });
952
+ return ret;
953
+ };
954
+ }
955
+ ((groupBy2) => {
956
+ function indexed() {
957
+ return purry(_groupBy(true), arguments);
958
+ }
959
+ groupBy2.indexed = indexed;
960
+ groupBy2.strict = groupBy2;
961
+ })(groupBy || (groupBy = {}));
962
+
963
+ // src/array/index-by.ts
964
+ function indexBy() {
965
+ return purry(_indexBy(false), arguments);
966
+ }
967
+ function _indexBy(indexed) {
968
+ return (array, fn) => {
969
+ return array.reduce((ret, item, index) => {
970
+ const value = indexed ? fn(item, index, array) : fn(item);
971
+ const key = String(value);
972
+ ret[key] = item;
973
+ return ret;
974
+ }, {});
975
+ };
976
+ }
977
+ ((indexBy2) => {
978
+ function indexed() {
979
+ return purry(_indexBy(true), arguments);
980
+ }
981
+ indexBy2.indexed = indexed;
982
+ })(indexBy || (indexBy = {}));
983
+
984
+ // src/array/intersection.ts
985
+ function intersection() {
986
+ return purry(_intersection, arguments, intersection.lazy);
987
+ }
988
+ function _intersection(array, other) {
989
+ const lazy = intersection.lazy(other);
990
+ return _reduceLazy(array, lazy);
991
+ }
992
+ ((intersection2) => {
993
+ function lazy(other) {
994
+ return (value) => {
995
+ const set2 = new Set(other);
996
+ if (set2.has(value)) {
997
+ return {
998
+ done: false,
999
+ hasNext: true,
1000
+ next: value
1001
+ };
1002
+ }
1003
+ return {
1004
+ done: false,
1005
+ hasNext: false
1006
+ };
1007
+ };
1008
+ }
1009
+ intersection2.lazy = lazy;
1010
+ })(intersection || (intersection = {}));
1011
+
1012
+ // src/array/intersection-with.ts
1013
+ function intersectionWith() {
1014
+ return purry(_intersectionWith, arguments, intersectionWith.lazy);
1015
+ }
1016
+ function _intersectionWith(array, other, comparator) {
1017
+ const lazy = intersectionWith.lazy(other, comparator);
1018
+ return _reduceLazy(array, lazy);
1019
+ }
1020
+ ((intersectionWith2) => {
1021
+ function lazy(other, comparator) {
1022
+ return (value) => {
1023
+ if (other.some((otherValue) => comparator(value, otherValue))) {
1024
+ return {
1025
+ done: false,
1026
+ hasNext: true,
1027
+ next: value
1028
+ };
1029
+ }
1030
+ return {
1031
+ done: false,
1032
+ hasNext: false
1033
+ };
1034
+ };
1035
+ }
1036
+ intersectionWith2.lazy = lazy;
1037
+ })(intersectionWith || (intersectionWith = {}));
1038
+
1039
+ // src/array/join.ts
1040
+ function join() {
1041
+ return purry(joinImplementation, arguments);
1042
+ }
1043
+ function joinImplementation(data, glue) {
1044
+ return data.join(glue);
1045
+ }
1046
+
1047
+ // src/array/last.ts
1048
+ function last() {
1049
+ return purry(_last, arguments);
1050
+ }
1051
+ function _last(array) {
1052
+ return array[array.length - 1];
1053
+ }
1054
+
1055
+ // src/array/length.ts
1056
+ function length() {
1057
+ return purry(_length, arguments);
1058
+ }
1059
+ function _length(items) {
1060
+ return "length" in items ? items.length : Array.from(items).length;
1061
+ }
1062
+
1063
+ // src/array/map.ts
1064
+ function map() {
1065
+ return purry(_map(false), arguments, map.lazy);
1066
+ }
1067
+ function _map(indexed) {
1068
+ return (array, fn) => {
1069
+ return _reduceLazy(
1070
+ array,
1071
+ indexed ? map.lazyIndexed(fn) : map.lazy(fn),
1072
+ indexed
1073
+ );
1074
+ };
1075
+ }
1076
+ function _lazy5(indexed) {
1077
+ return (fn) => {
1078
+ return (value, index, array) => {
1079
+ return {
1080
+ done: false,
1081
+ hasNext: true,
1082
+ next: indexed ? fn(value, index, array) : fn(value)
1083
+ };
1084
+ };
1085
+ };
1086
+ }
1087
+ ((map2) => {
1088
+ function indexed() {
1089
+ return purry(_map(true), arguments, map2.lazyIndexed);
1090
+ }
1091
+ map2.indexed = indexed;
1092
+ map2.lazy = _lazy5(false);
1093
+ map2.lazyIndexed = toLazyIndexed(_lazy5(true));
1094
+ map2.strict = map2;
1095
+ })(map || (map = {}));
1096
+
1097
+ // src/array/map-to-obj.ts
1098
+ function mapToObj() {
1099
+ return purry(_mapToObj(false), arguments);
1100
+ }
1101
+ function _mapToObj(indexed) {
1102
+ return (array, fn) => {
1103
+ return array.reduce((result, element, index) => {
1104
+ const [key, value] = indexed ? fn(element, index, array) : fn(element);
1105
+ result[key] = value;
1106
+ return result;
1107
+ }, {});
1108
+ };
1109
+ }
1110
+ ((mapToObj2) => {
1111
+ function indexed() {
1112
+ return purry(_mapToObj(true), arguments);
1113
+ }
1114
+ mapToObj2.indexed = indexed;
1115
+ })(mapToObj || (mapToObj = {}));
1116
+
1117
+ // src/array/max-by.ts
1118
+ function _maxBy(indexed) {
1119
+ return (array, fn) => {
1120
+ let ret;
1121
+ let retMax;
1122
+ array.forEach((item, i) => {
1123
+ const max = indexed ? fn(item, i, array) : fn(item);
1124
+ if (retMax === void 0 || max > retMax) {
1125
+ ret = item;
1126
+ retMax = max;
1127
+ }
1128
+ });
1129
+ return ret;
1130
+ };
1131
+ }
1132
+ function maxBy() {
1133
+ return purry(_maxBy(false), arguments);
1134
+ }
1135
+ ((maxBy2) => {
1136
+ function indexed() {
1137
+ return purry(_maxBy(true), arguments);
1138
+ }
1139
+ maxBy2.indexed = indexed;
1140
+ })(maxBy || (maxBy = {}));
1141
+
1142
+ // src/array/mean-by.ts
1143
+ function _meanBy(indexed) {
1144
+ return (array, fn) => {
1145
+ if (array.length === 0) {
1146
+ return Number.NaN;
1147
+ }
1148
+ let sum = 0;
1149
+ array.forEach((item, i) => {
1150
+ sum += indexed ? fn(item, i, array) : fn(item);
1151
+ });
1152
+ return sum / array.length;
1153
+ };
1154
+ }
1155
+ function meanBy() {
1156
+ return purry(_meanBy(false), arguments);
1157
+ }
1158
+ ((meanBy2) => {
1159
+ function indexed() {
1160
+ return purry(_meanBy(true), arguments);
1161
+ }
1162
+ meanBy2.indexed = indexed;
1163
+ })(meanBy || (meanBy = {}));
1164
+
1165
+ // src/array/merge-all.ts
1166
+ function mergeAll(items) {
1167
+ return items.reduce((acc, x) => ({ ...acc, ...x }), {});
1168
+ }
1169
+
1170
+ // src/array/min-by.ts
1171
+ function _minBy(indexed) {
1172
+ return (array, fn) => {
1173
+ let ret;
1174
+ let retMin;
1175
+ array.forEach((item, i) => {
1176
+ const min = indexed ? fn(item, i, array) : fn(item);
1177
+ if (retMin === void 0 || min < retMin) {
1178
+ ret = item;
1179
+ retMin = min;
1180
+ }
1181
+ });
1182
+ return ret;
1183
+ };
1184
+ }
1185
+ function minBy() {
1186
+ return purry(_minBy(false), arguments);
1187
+ }
1188
+ ((minBy2) => {
1189
+ function indexed() {
1190
+ return purry(_minBy(true), arguments);
1191
+ }
1192
+ minBy2.indexed = indexed;
1193
+ })(minBy || (minBy = {}));
1194
+
1195
+ // src/array/partition.ts
1196
+ function partition() {
1197
+ return purry(_partition(false), arguments);
1198
+ }
1199
+ function _partition(indexed) {
1200
+ return (array, fn) => {
1201
+ const ret = [[], []];
1202
+ array.forEach((item, index) => {
1203
+ const matches = indexed ? fn(item, index, array) : fn(item);
1204
+ ret[matches ? 0 : 1].push(item);
1205
+ });
1206
+ return ret;
1207
+ };
1208
+ }
1209
+ ((partition2) => {
1210
+ function indexed() {
1211
+ return purry(_partition(true), arguments);
1212
+ }
1213
+ partition2.indexed = indexed;
1214
+ })(partition || (partition = {}));
1215
+
1216
+ // src/array/range.ts
1217
+ function range() {
1218
+ return purry(_range, arguments);
1219
+ }
1220
+ function _range(start, end) {
1221
+ const ret = [];
1222
+ for (let i = start; i < end; i++) {
1223
+ ret.push(i);
1224
+ }
1225
+ return ret;
1226
+ }
1227
+
1228
+ // src/array/reduce.ts
1229
+ function reduce() {
1230
+ return purry(_reduce(false), arguments);
1231
+ }
1232
+ function _reduce(indexed) {
1233
+ return (items, fn, initialValue) => {
1234
+ return items.reduce(
1235
+ (acc, item, index) => indexed ? fn(acc, item, index, items) : fn(acc, item),
1236
+ initialValue
1237
+ );
1238
+ };
1239
+ }
1240
+ ((reduce2) => {
1241
+ function indexed() {
1242
+ return purry(_reduce(true), arguments);
1243
+ }
1244
+ reduce2.indexed = indexed;
1245
+ })(reduce || (reduce = {}));
1246
+
1247
+ // src/array/reject.ts
1248
+ function reject() {
1249
+ return purry(_reject(false), arguments, reject.lazy);
1250
+ }
1251
+ function _reject(indexed) {
1252
+ return (array, fn) => {
1253
+ return _reduceLazy(
1254
+ array,
1255
+ indexed ? reject.lazyIndexed(fn) : reject.lazy(fn),
1256
+ indexed
1257
+ );
1258
+ };
1259
+ }
1260
+ function _lazy6(indexed) {
1261
+ return (fn) => {
1262
+ return (value, index, array) => {
1263
+ const valid = indexed ? fn(value, index, array) : fn(value);
1264
+ if (!valid) {
1265
+ return {
1266
+ done: false,
1267
+ hasNext: true,
1268
+ next: value
1269
+ };
1270
+ }
1271
+ return {
1272
+ done: false,
1273
+ hasNext: false
1274
+ };
1275
+ };
1276
+ };
1277
+ }
1278
+ ((reject2) => {
1279
+ function indexed() {
1280
+ return purry(_reject(true), arguments, reject2.lazyIndexed);
1281
+ }
1282
+ reject2.indexed = indexed;
1283
+ reject2.lazy = _lazy6(false);
1284
+ reject2.lazyIndexed = toLazyIndexed(_lazy6(true));
1285
+ })(reject || (reject = {}));
1286
+
1287
+ // src/array/reverse.ts
1288
+ function reverse() {
1289
+ return purry(_reverse, arguments);
1290
+ }
1291
+ function _reverse(array) {
1292
+ return array.slice().reverse();
1293
+ }
1294
+
1295
+ // src/array/sample.ts
1296
+ function sample(...args) {
1297
+ return purry(sampleImplementation, args);
1298
+ }
1299
+ function sampleImplementation(data, sampleSize) {
1300
+ if (sampleSize < 0) {
1301
+ throw new RangeError(`sampleSize must cannot be negative: ${sampleSize}`);
1302
+ }
1303
+ if (!Number.isInteger(sampleSize)) {
1304
+ throw new TypeError(`sampleSize must be an integer: ${sampleSize}`);
1305
+ }
1306
+ if (sampleSize >= data.length) {
1307
+ return data;
1308
+ }
1309
+ if (sampleSize === 0) {
1310
+ return [];
1311
+ }
1312
+ const actualSampleSize = Math.min(sampleSize, data.length - sampleSize);
1313
+ const sampleIndices = /* @__PURE__ */ new Set();
1314
+ while (sampleIndices.size < actualSampleSize) {
1315
+ const randomIndex = Math.floor(Math.random() * data.length);
1316
+ sampleIndices.add(randomIndex);
1317
+ }
1318
+ if (sampleSize === actualSampleSize) {
1319
+ return Array.from(sampleIndices).sort((a, b) => a - b).map((index) => data[index]);
1320
+ }
1321
+ return data.filter((_, index) => !sampleIndices.has(index));
1322
+ }
1323
+
1324
+ // src/array/shuffle.ts
1325
+ function shuffle() {
1326
+ return purry(_shuffle, arguments);
1327
+ }
1328
+ function _shuffle(items) {
1329
+ const result = items.slice();
1330
+ for (let index = 0; index < items.length; index += 1) {
1331
+ const rand = index + Math.floor(Math.random() * (items.length - index));
1332
+ const value = result[rand];
1333
+ result[rand] = result[index];
1334
+ result[index] = value;
1335
+ }
1336
+ return result;
1337
+ }
1338
+
1339
+ // src/array/sort.ts
1340
+ function sort() {
1341
+ return purry(_sort, arguments);
1342
+ }
1343
+ function _sort(items, cmp) {
1344
+ const ret = [...items];
1345
+ ret.sort(cmp);
1346
+ return ret;
1347
+ }
1348
+ ((sort2) => {
1349
+ sort2.strict = sort2;
1350
+ })(sort || (sort = {}));
1351
+
1352
+ // src/array/sort-by.ts
1353
+ var ALL_DIRECTIONS = ["asc", "desc"];
1354
+ var COMPARATOR = {
1355
+ asc: (x, y) => x > y,
1356
+ desc: (x, y) => x < y
1357
+ };
1358
+ function sortBy(arrayOrSortRule, ...sortRules) {
1359
+ const args = isSortRule(arrayOrSortRule) ? (
1360
+ // *data-last invocation*: put all sort rules into a single array to be
1361
+ // passed as the first param.
1362
+ [[arrayOrSortRule, ...sortRules]]
1363
+ ) : (
1364
+ // *data-first invocation*: put the arrayOrSort (which is array now) as
1365
+ // the first param, and all the sorts (as an array) into the second param.
1366
+ // `purry` would pick the right "flavour" based on the length of the
1367
+ // params tuple.
1368
+ [arrayOrSortRule, sortRules]
1369
+ );
1370
+ return purry(_sortBy, args);
1371
+ }
1372
+ function isSortRule(x) {
1373
+ if (typeof x === "function") {
1374
+ return true;
1375
+ }
1376
+ const [maybeProjection, maybeDirection, ...rest] = x;
1377
+ if (rest.length > 0) {
1378
+ return false;
1379
+ }
1380
+ return typeof maybeProjection === "function" && ALL_DIRECTIONS.includes(maybeDirection);
1381
+ }
1382
+ function _sortBy(array, sorts) {
1383
+ return [...array].sort(comparer(...sorts));
1384
+ }
1385
+ function comparer(primaryRule, secondaryRule, ...otherRules) {
1386
+ const projector = typeof primaryRule === "function" ? primaryRule : primaryRule[0];
1387
+ const direction = typeof primaryRule === "function" ? "asc" : primaryRule[1];
1388
+ const comparator = COMPARATOR[direction];
1389
+ const nextComparer = secondaryRule === void 0 ? void 0 : comparer(secondaryRule, ...otherRules);
1390
+ return (a, b) => {
1391
+ const projectedA = projector(a);
1392
+ const projectedB = projector(b);
1393
+ if (comparator(projectedA, projectedB)) {
1394
+ return 1;
1395
+ }
1396
+ if (comparator(projectedB, projectedA)) {
1397
+ return -1;
1398
+ }
1399
+ return nextComparer?.(a, b) ?? 0;
1400
+ };
1401
+ }
1402
+ ((sortBy2) => {
1403
+ sortBy2.strict = sortBy2;
1404
+ })(sortBy || (sortBy = {}));
1405
+
1406
+ // src/array/split-at.ts
1407
+ function splitAt() {
1408
+ return purry(_splitAt, arguments);
1409
+ }
1410
+ function _splitAt(array, index) {
1411
+ const copy = [...array];
1412
+ const tail = copy.splice(index);
1413
+ return [copy, tail];
1414
+ }
1415
+
1416
+ // src/array/split-when.ts
1417
+ function splitWhen() {
1418
+ return purry(_splitWhen, arguments);
1419
+ }
1420
+ function _splitWhen(array, fn) {
1421
+ for (let i = 0; i < array.length; i++) {
1422
+ if (fn(array[i])) {
1423
+ return splitAt(array, i);
1424
+ }
1425
+ }
1426
+ return [array, []];
1427
+ }
1428
+
1429
+ // src/array/sum-by.ts
1430
+ function _sumBy(indexed) {
1431
+ return (array, fn) => {
1432
+ let sum = 0;
1433
+ array.forEach((item, i) => {
1434
+ const summand = indexed ? fn(item, i, array) : fn(item);
1435
+ sum += summand;
1436
+ });
1437
+ return sum;
1438
+ };
1439
+ }
1440
+ function sumBy() {
1441
+ return purry(_sumBy(false), arguments);
1442
+ }
1443
+ ((sumBy2) => {
1444
+ function indexed() {
1445
+ return purry(_sumBy(true), arguments);
1446
+ }
1447
+ sumBy2.indexed = indexed;
1448
+ })(sumBy || (sumBy = {}));
1449
+
1450
+ // src/array/swap-indices.ts
1451
+ function swapIndices(...args) {
1452
+ return purry(_swapIndices, args);
1453
+ }
1454
+ function _swapIndices(item, index1, index2) {
1455
+ return typeof item === "string" ? _swapString(item, index1, index2) : _swapArray(item, index1, index2);
1456
+ }
1457
+ function _swapArray(item, index1, index2) {
1458
+ const result = item.slice();
1459
+ if (Number.isNaN(index1) || Number.isNaN(index2)) {
1460
+ return result;
1461
+ }
1462
+ const positiveIndexA = index1 < 0 ? item.length + index1 : index1;
1463
+ const positiveIndexB = index2 < 0 ? item.length + index2 : index2;
1464
+ if (positiveIndexA < 0 || positiveIndexA > item.length) {
1465
+ return result;
1466
+ }
1467
+ if (positiveIndexB < 0 || positiveIndexB > item.length) {
1468
+ return result;
1469
+ }
1470
+ result[positiveIndexA] = item[positiveIndexB];
1471
+ result[positiveIndexB] = item[positiveIndexA];
1472
+ return result;
1473
+ }
1474
+ function _swapString(item, index1, index2) {
1475
+ const result = _swapArray(item.split(""), index1, index2);
1476
+ return result.join("");
1477
+ }
1478
+
1479
+ // src/array/take.ts
1480
+ function take() {
1481
+ return purry(_take, arguments, take.lazy);
1482
+ }
1483
+ function _take(array, n) {
1484
+ return _reduceLazy(array, take.lazy(n));
1485
+ }
1486
+ ((take2) => {
1487
+ function lazy(n) {
1488
+ return (value) => {
1489
+ if (n === 0) {
1490
+ return {
1491
+ done: true,
1492
+ hasNext: false
1493
+ };
1494
+ }
1495
+ n--;
1496
+ if (n === 0) {
1497
+ return {
1498
+ done: true,
1499
+ hasNext: true,
1500
+ next: value
1501
+ };
1502
+ }
1503
+ return {
1504
+ done: false,
1505
+ hasNext: true,
1506
+ next: value
1507
+ };
1508
+ };
1509
+ }
1510
+ take2.lazy = lazy;
1511
+ })(take || (take = {}));
1512
+
1513
+ // src/array/take-while.ts
1514
+ function takeWhile() {
1515
+ return purry(_takeWhile, arguments);
1516
+ }
1517
+ function _takeWhile(array, fn) {
1518
+ const ret = [];
1519
+ for (const item of array) {
1520
+ if (!fn(item)) {
1521
+ break;
1522
+ }
1523
+ ret.push(item);
1524
+ }
1525
+ return ret;
1526
+ }
1527
+
1528
+ // src/array/uniq.ts
1529
+ function uniq() {
1530
+ return purry(_uniq, arguments, uniq.lazy);
1531
+ }
1532
+ function _uniq(array) {
1533
+ return _reduceLazy(array, uniq.lazy());
1534
+ }
1535
+ ((uniq2) => {
1536
+ function lazy() {
1537
+ const set2 = /* @__PURE__ */ new Set();
1538
+ return (value) => {
1539
+ if (set2.has(value)) {
1540
+ return {
1541
+ done: false,
1542
+ hasNext: false
1543
+ };
1544
+ }
1545
+ set2.add(value);
1546
+ return {
1547
+ done: false,
1548
+ hasNext: true,
1549
+ next: value
1550
+ };
1551
+ };
1552
+ }
1553
+ uniq2.lazy = lazy;
1554
+ })(uniq || (uniq = {}));
1555
+
1556
+ // src/array/uniq-by.ts
1557
+ function uniqBy() {
1558
+ return purry(_uniqBy, arguments, lazyUniqBy);
1559
+ }
1560
+ function _uniqBy(array, transformer) {
1561
+ return _reduceLazy(array, lazyUniqBy(transformer));
1562
+ }
1563
+ function lazyUniqBy(transformer) {
1564
+ const set2 = /* @__PURE__ */ new Set();
1565
+ return (value) => {
1566
+ const appliedItem = transformer(value);
1567
+ if (set2.has(appliedItem)) {
1568
+ return {
1569
+ done: false,
1570
+ hasNext: false
1571
+ };
1572
+ }
1573
+ set2.add(appliedItem);
1574
+ return {
1575
+ done: false,
1576
+ hasNext: true,
1577
+ next: value
1578
+ };
1579
+ };
1580
+ }
1581
+
1582
+ // src/array/uniq-with.ts
1583
+ function uniqWith() {
1584
+ return purry(_uniqWith, arguments, uniqWith.lazy);
1585
+ }
1586
+ function _uniqWith(array, isEquals) {
1587
+ const lazy = uniqWith.lazy(isEquals);
1588
+ return _reduceLazy(array, lazy, true);
1589
+ }
1590
+ function _lazy7(isEquals) {
1591
+ return (value, index, array) => {
1592
+ if (array && array.findIndex((otherValue) => isEquals(value, otherValue)) === index) {
1593
+ return {
1594
+ done: false,
1595
+ hasNext: true,
1596
+ next: value
1597
+ };
1598
+ }
1599
+ return {
1600
+ done: false,
1601
+ hasNext: false
1602
+ };
1603
+ };
1604
+ }
1605
+ ((uniqWith2) => {
1606
+ uniqWith2.lazy = toLazyIndexed(_lazy7);
1607
+ })(uniqWith || (uniqWith = {}));
1608
+
1609
+ // src/array/zip.ts
1610
+ function zip() {
1611
+ return purry(_zip, arguments);
1612
+ }
1613
+ function _zip(first2, second) {
1614
+ const resultLength = first2.length > second.length ? second.length : first2.length;
1615
+ const result = [];
1616
+ for (let i = 0; i < resultLength; i++) {
1617
+ result.push([first2[i], second[i]]);
1618
+ }
1619
+ return result;
1620
+ }
1621
+
1622
+ // src/array/zip-obj.ts
1623
+ function zipObj() {
1624
+ return purry(_zipObj, arguments);
1625
+ }
1626
+ function _zipObj(first2, second) {
1627
+ const resultLength = first2.length > second.length ? second.length : first2.length;
1628
+ const result = {};
1629
+ for (let i = 0; i < resultLength; i++) {
1630
+ result[first2[i]] = second[i];
1631
+ }
1632
+ return result;
1633
+ }
1634
+
1635
+ // src/array/zip-with.ts
1636
+ function zipWith() {
1637
+ const args = Array.from(arguments);
1638
+ if (typeof args[0] === "function" && args.length === 1) {
1639
+ return function(f, s) {
1640
+ return _zipWith(f, s, args[0]);
1641
+ };
1642
+ }
1643
+ if (typeof args[0] === "function" && args.length === 2) {
1644
+ return function(f) {
1645
+ return _zipWith(f, args[1], args[0]);
1646
+ };
1647
+ }
1648
+ if (args.length === 3) {
1649
+ return _zipWith(args[0], args[1], args[2]);
1650
+ }
1651
+ }
1652
+ function _zipWith(first2, second, fn) {
1653
+ const resultLength = first2.length > second.length ? second.length : first2.length;
1654
+ const result = [];
1655
+ for (let i = 0; i < resultLength; i++) {
1656
+ result.push(fn(first2[i], second[i]));
1657
+ }
1658
+ return result;
1659
+ }
1660
+
1661
+ // src/helpers/index.ts
1662
+ function convertToUnit(str, unit = "px") {
1663
+ if (isNil(str) || str === "") {
1664
+ return void 0;
1665
+ } else if (Number.isNaN(+str)) {
1666
+ return String(str);
1667
+ } else if (!Number.isFinite(+str)) {
1668
+ return void 0;
1669
+ } else {
1670
+ return `${Number(str)}${unit}`;
1671
+ }
1672
+ }
1673
+ function increaseWithUnit({ target, delta }) {
1674
+ if (isNumber(target)) {
1675
+ return target + delta;
1676
+ }
1677
+ const value = target.match(/^-?[0-9]+\.?[0-9]*/)?.[0] || "";
1678
+ const unit = target.slice(value.length);
1679
+ const result = Number.parseFloat(value) + delta;
1680
+ if (Number.isNaN(result)) {
1681
+ return target;
1682
+ }
1683
+ return result + unit;
1684
+ }
1685
+ function humanReadableFileSize(bytes, base = 1e3) {
1686
+ if (bytes < base) {
1687
+ return `${bytes} B`;
1688
+ }
1689
+ const prefix = base === 1024 ? ["Ki", "Mi", "Gi"] : ["k", "M", "G"];
1690
+ let unit = -1;
1691
+ while (Math.abs(bytes) >= base && unit < prefix.length - 1) {
1692
+ bytes /= base;
1693
+ ++unit;
1694
+ }
1695
+ return `${bytes.toFixed(1)} ${prefix[unit]}B`;
1696
+ }
1697
+ function sleep(timeout) {
1698
+ return new Promise((resolve) => {
1699
+ setTimeout(resolve, timeout);
1700
+ });
1701
+ }
1702
+
1703
+ // src/number/clamp.ts
1704
+ function clamp() {
1705
+ return purry(_clamp, arguments);
1706
+ }
1707
+ function _clamp(value, limits) {
1708
+ if (limits.min != null && limits.min > value) {
1709
+ return limits.min;
1710
+ }
1711
+ if (limits.max != null && limits.max < value) {
1712
+ return limits.max;
1713
+ }
1714
+ return value;
1715
+ }
1716
+
1717
+ // src/object/add-prop.ts
1718
+ function addProp(...args) {
1719
+ return purry(_addProp, args);
1720
+ }
1721
+ function _addProp(obj, prop2, value) {
1722
+ return {
1723
+ ...obj,
1724
+ [prop2]: value
1725
+ };
1726
+ }
1727
+
1728
+ // src/type/type.ts
1729
+ function type(val) {
1730
+ return val === null ? "Null" : val === void 0 ? "Undefined" : Object.prototype.toString.call(val).slice(8, -1);
1731
+ }
1732
+
1733
+ // src/object/clone.ts
1734
+ function _cloneRegExp(pattern) {
1735
+ return new RegExp(
1736
+ pattern.source,
1737
+ (pattern.global ? "g" : "") + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : "") + (pattern.sticky ? "y" : "") + (pattern.unicode ? "u" : "")
1738
+ );
1739
+ }
1740
+ function _clone(value, refFrom, refTo, deep) {
1741
+ function copy(copiedValue) {
1742
+ const len = refFrom.length;
1743
+ let idx = 0;
1744
+ while (idx < len) {
1745
+ if (value === refFrom[idx]) {
1746
+ return refTo[idx];
1747
+ }
1748
+ idx += 1;
1749
+ }
1750
+ refFrom[idx + 1] = value;
1751
+ refTo[idx + 1] = copiedValue;
1752
+ for (const key in value) {
1753
+ copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];
1754
+ }
1755
+ return copiedValue;
1756
+ }
1757
+ switch (type(value)) {
1758
+ case "Object":
1759
+ return copy({});
1760
+ case "Array":
1761
+ return copy([]);
1762
+ case "Date":
1763
+ return new Date(value.valueOf());
1764
+ case "RegExp":
1765
+ return _cloneRegExp(value);
1766
+ default:
1767
+ return value;
1768
+ }
1769
+ }
1770
+ function clone(value) {
1771
+ return value != null && typeof value.clone === "function" ? value.clone() : _clone(value, [], [], true);
1772
+ }
1773
+
1774
+ // src/object/equals.ts
1775
+ var isArray2 = Array.isArray;
1776
+ var keyList = Object.keys;
1777
+ function equals() {
1778
+ return purry(_equals, arguments);
1779
+ }
1780
+ function _equals(a, b) {
1781
+ if (a === b) {
1782
+ return true;
1783
+ }
1784
+ if (a && b && typeof a === "object" && typeof b === "object") {
1785
+ const arrA = isArray2(a);
1786
+ const arrB = isArray2(b);
1787
+ let i;
1788
+ let length2;
1789
+ let key;
1790
+ if (arrA && arrB) {
1791
+ length2 = a.length;
1792
+ if (length2 !== b.length) {
1793
+ return false;
1794
+ }
1795
+ for (i = length2; i-- !== 0; ) {
1796
+ if (!equals(a[i], b[i])) {
1797
+ return false;
1798
+ }
1799
+ }
1800
+ return true;
1801
+ }
1802
+ if (arrA !== arrB) {
1803
+ return false;
1804
+ }
1805
+ const dateA = a instanceof Date;
1806
+ const dateB = b instanceof Date;
1807
+ if (dateA !== dateB) {
1808
+ return false;
1809
+ }
1810
+ if (dateA && dateB) {
1811
+ return a.getTime() === b.getTime();
1812
+ }
1813
+ const regexpA = a instanceof RegExp;
1814
+ const regexpB = b instanceof RegExp;
1815
+ if (regexpA !== regexpB) {
1816
+ return false;
1817
+ }
1818
+ if (regexpA && regexpB) {
1819
+ return a.toString() === b.toString();
1820
+ }
1821
+ const keys2 = keyList(a);
1822
+ length2 = keys2.length;
1823
+ if (length2 !== keyList(b).length) {
1824
+ return false;
1825
+ }
1826
+ for (i = length2; i-- !== 0; ) {
1827
+ if (!Object.prototype.hasOwnProperty.call(b, keys2[i])) {
1828
+ return false;
1829
+ }
1830
+ }
1831
+ for (i = length2; i-- !== 0; ) {
1832
+ key = keys2[i];
1833
+ if (!equals(a[key], b[key])) {
1834
+ return false;
1835
+ }
1836
+ }
1837
+ return true;
1838
+ }
1839
+ return a !== a && b !== b;
1840
+ }
1841
+
1842
+ // src/object/for-each-obj.ts
1843
+ function forEachObj() {
1844
+ return purry(_forEachObj(false), arguments);
1845
+ }
1846
+ function _forEachObj(indexed) {
1847
+ return (object, fn) => {
1848
+ for (const key in object) {
1849
+ if (Object.prototype.hasOwnProperty.call(object, key)) {
1850
+ const val = object[key];
1851
+ if (indexed) {
1852
+ fn(val, key, object);
1853
+ } else {
1854
+ fn(val);
1855
+ }
1856
+ }
1857
+ }
1858
+ return object;
1859
+ };
1860
+ }
1861
+ ((forEachObj2) => {
1862
+ function indexed() {
1863
+ return purry(_forEachObj(true), arguments);
1864
+ }
1865
+ forEachObj2.indexed = indexed;
1866
+ })(forEachObj || (forEachObj = {}));
1867
+
1868
+ // src/object/from-pairs.ts
1869
+ function fromPairs(entries) {
1870
+ const out = {};
1871
+ for (const [key, value] of entries) {
1872
+ out[key] = value;
1873
+ }
1874
+ return out;
1875
+ }
1876
+ ((fromPairs2) => {
1877
+ fromPairs2.strict = fromPairs2;
1878
+ })(fromPairs || (fromPairs = {}));
1879
+
1880
+ // src/object/invert.ts
1881
+ function invert() {
1882
+ return purry(_invert, arguments);
1883
+ }
1884
+ function _invert(object) {
1885
+ const result = {};
1886
+ for (const key in object) {
1887
+ result[object[key]] = key;
1888
+ }
1889
+ return result;
1890
+ }
1891
+
1892
+ // src/object/keys.ts
1893
+ function keys(source) {
1894
+ return Object.keys(source);
1895
+ }
1896
+ ((keys2) => {
1897
+ keys2.strict = keys2;
1898
+ })(keys || (keys = {}));
1899
+
1900
+ // src/object/map-keys.ts
1901
+ function mapKeys(arg1, arg2) {
1902
+ if (arguments.length === 1) {
1903
+ return (data) => _mapKeys(data, arg1);
1904
+ }
1905
+ return _mapKeys(arg1, arg2);
1906
+ }
1907
+ function _mapKeys(obj, fn) {
1908
+ return Object.keys(obj).reduce((acc, key) => {
1909
+ acc[fn(key, obj[key])] = obj[key];
1910
+ return acc;
1911
+ }, {});
1912
+ }
1913
+
1914
+ // src/object/map-values.ts
1915
+ function mapValues(arg1, arg2) {
1916
+ if (arguments.length === 1) {
1917
+ return (data) => _mapValues(data, arg1);
1918
+ }
1919
+ return _mapValues(arg1, arg2);
1920
+ }
1921
+ function _mapValues(obj, fn) {
1922
+ return Object.keys(obj).reduce((acc, key) => {
1923
+ acc[key] = fn(obj[key], key);
1924
+ return acc;
1925
+ }, {});
1926
+ }
1927
+
1928
+ // src/object/merge.ts
1929
+ function merge() {
1930
+ return purry(_merge, arguments);
1931
+ }
1932
+ function _merge(a, b) {
1933
+ return Object.assign({}, a, b);
1934
+ }
1935
+
1936
+ // src/object/omit.ts
1937
+ function omit() {
1938
+ return purry(_omit, arguments);
1939
+ }
1940
+ function _omit(data, propNames) {
1941
+ if (propNames.length === 0) {
1942
+ return { ...data };
1943
+ }
1944
+ if (propNames.length === 1) {
1945
+ const [propName] = propNames;
1946
+ const {
1947
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- use destructuring to remove a single key, letting JS optimize here...
1948
+ [propName]: omitted,
1949
+ ...remaining
1950
+ } = data;
1951
+ return remaining;
1952
+ }
1953
+ if (!propNames.some((propName) => propName in data)) {
1954
+ return { ...data };
1955
+ }
1956
+ const asSet = new Set(propNames);
1957
+ return fromPairs(
1958
+ Object.entries(data).filter(([key]) => !asSet.has(key))
1959
+ );
1960
+ }
1961
+
1962
+ // src/object/omit-by.ts
1963
+ function omitBy() {
1964
+ return purry(_omitBy, arguments);
1965
+ }
1966
+ function _omitBy(object, fn) {
1967
+ return Object.keys(object).reduce((acc, key) => {
1968
+ if (!fn(object[key], key)) {
1969
+ acc[key] = object[key];
1970
+ }
1971
+ return acc;
1972
+ }, {});
1973
+ }
1974
+
1975
+ // src/object/path-or.ts
1976
+ function pathOr() {
1977
+ return purry(_pathOr, arguments);
1978
+ }
1979
+ function _pathOr(object, path, defaultValue) {
1980
+ let current = object;
1981
+ for (const prop2 of path) {
1982
+ if (current == null || current[prop2] == null) {
1983
+ return defaultValue;
1984
+ }
1985
+ current = current[prop2];
1986
+ }
1987
+ return current;
1988
+ }
1989
+
1990
+ // src/object/pick.ts
1991
+ function pick() {
1992
+ return purry(_pick, arguments);
1993
+ }
1994
+ function _pick(object, names) {
1995
+ if (object == null) {
1996
+ return {};
1997
+ }
1998
+ return names.reduce((acc, name) => {
1999
+ if (name in object) {
2000
+ acc[name] = object[name];
2001
+ }
2002
+ return acc;
2003
+ }, {});
2004
+ }
2005
+
2006
+ // src/object/pick-by.ts
2007
+ function pickBy() {
2008
+ return purry(_pickBy, arguments);
2009
+ }
2010
+ function _pickBy(object, fn) {
2011
+ if (object == null) {
2012
+ return {};
2013
+ }
2014
+ return Object.keys(object).reduce((acc, key) => {
2015
+ if (fn(object[key], key)) {
2016
+ acc[key] = object[key];
2017
+ }
2018
+ return acc;
2019
+ }, {});
2020
+ }
2021
+
2022
+ // src/object/prop.ts
2023
+ function prop(propName) {
2024
+ return ({ [propName]: value }) => value;
2025
+ }
2026
+
2027
+ // src/object/set.ts
2028
+ function set() {
2029
+ return purry(_set, arguments);
2030
+ }
2031
+ function _set(obj, prop2, value) {
2032
+ return {
2033
+ ...obj,
2034
+ [prop2]: value
2035
+ };
2036
+ }
2037
+
2038
+ // src/object/set-path.ts
2039
+ function setPath() {
2040
+ return purry(_setPath, arguments);
2041
+ }
2042
+ function _setPath(object, path, defaultValue) {
2043
+ if (path.length === 0) {
2044
+ return defaultValue;
2045
+ }
2046
+ if (Array.isArray(object)) {
2047
+ return object.map((item, index) => {
2048
+ if (index === path[0]) {
2049
+ return _setPath(item, path.slice(1), defaultValue);
2050
+ }
2051
+ return item;
2052
+ });
2053
+ }
2054
+ return {
2055
+ ...object,
2056
+ [path[0]]: _setPath(object[path[0]], path.slice(1), defaultValue)
2057
+ };
2058
+ }
2059
+
2060
+ // src/object/swap-props.ts
2061
+ function swapProps() {
2062
+ return purry(_swapProps, arguments);
2063
+ }
2064
+ function _swapProps(obj, key1, key2) {
2065
+ const { [key1]: value1, [key2]: value2 } = obj;
2066
+ return {
2067
+ ...obj,
2068
+ [key1]: value2,
2069
+ [key2]: value1
2070
+ };
2071
+ }
2072
+
2073
+ // src/object/to-pairs.ts
2074
+ function toPairs(object) {
2075
+ return Object.entries(object);
2076
+ }
2077
+ ((toPairs2) => {
2078
+ function strict(object) {
2079
+ return Object.entries(object);
2080
+ }
2081
+ toPairs2.strict = strict;
2082
+ })(toPairs || (toPairs = {}));
2083
+
2084
+ // src/object/values.ts
2085
+ function values(source) {
2086
+ return Object.values(source);
2087
+ }
2088
+
2089
+ // src/string/cases.ts
2090
+ var RE_NUMBER_CHAR = /\d/;
2091
+ var STR_SPLITTERS = ["-", "_", "/", "."];
2092
+ function isUppercase(char = "") {
2093
+ if (RE_NUMBER_CHAR.test(char)) {
2094
+ return void 0;
2095
+ }
2096
+ return char.toUpperCase() === char;
2097
+ }
2098
+ function splitByCase(string_, separators) {
2099
+ const splitters = separators ?? STR_SPLITTERS;
2100
+ const parts = [];
2101
+ if (!string_ || !isString(string_)) {
2102
+ return parts;
2103
+ }
2104
+ let buff = "";
2105
+ let previousUpper;
2106
+ let previousSplitter;
2107
+ for (const char of string_) {
2108
+ const isSplitter = splitters.includes(char);
2109
+ if (isSplitter === true) {
2110
+ parts.push(buff);
2111
+ buff = "";
2112
+ previousUpper = void 0;
2113
+ continue;
2114
+ }
2115
+ const isUpper = isUppercase(char);
2116
+ if (previousSplitter === false) {
2117
+ if (previousUpper === false && isUpper === true) {
2118
+ parts.push(buff);
2119
+ buff = char;
2120
+ previousUpper = isUpper;
2121
+ continue;
2122
+ }
2123
+ if (previousUpper === true && isUpper === false && buff.length > 1) {
2124
+ const lastChar = buff[buff.length - 1];
2125
+ parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
2126
+ buff = lastChar + char;
2127
+ previousUpper = isUpper;
2128
+ continue;
2129
+ }
2130
+ }
2131
+ buff += char;
2132
+ previousUpper = isUpper;
2133
+ previousSplitter = isSplitter;
2134
+ }
2135
+ parts.push(buff);
2136
+ return parts;
2137
+ }
2138
+ function toUpperFirst(string_) {
2139
+ return !string_ ? "" : string_[0].toUpperCase() + string_.slice(1);
2140
+ }
2141
+ function toLowerFirst(string_) {
2142
+ return !string_ ? "" : string_[0].toLowerCase() + string_.slice(1);
2143
+ }
2144
+ function toPascalCase(string_) {
2145
+ return !string_ ? "" : (Array.isArray(string_) ? string_ : splitByCase(string_)).map((p) => toUpperFirst(p)).join("");
2146
+ }
2147
+ function toCamelCase(string_) {
2148
+ return toLowerFirst(toPascalCase(string_ || ""));
2149
+ }
2150
+ function toKebabCase(string_, joiner) {
2151
+ return !string_ ? "" : (Array.isArray(string_) ? string_ : splitByCase(string_)).map((p) => p.toLowerCase()).join(joiner ?? "-");
2152
+ }
2153
+ function toSnakeCase(string_) {
2154
+ return toKebabCase(string_ || "", "_");
2155
+ }
2156
+
2157
+ // src/string/random-string.ts
2158
+ function randomString(length2) {
2159
+ const characterSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2160
+ const randomChar = () => characterSet[Math.floor(Math.random() * characterSet.length)];
2161
+ return range(0, length2).reduce((text) => text + randomChar(), "");
2162
+ }
2163
+
2164
+ // src/string/string-to-path.ts
2165
+ function stringToPath(path) {
2166
+ return _stringToPath(path);
2167
+ }
2168
+ function _stringToPath(path) {
2169
+ if (path.length === 0) {
2170
+ return [];
2171
+ }
2172
+ const match = path.match(/^\[(.+?)\](.*)$/) ?? path.match(/^\.?([^.[\]]+)(.*)$/);
2173
+ if (match) {
2174
+ const [, key, rest] = match;
2175
+ return [key, ..._stringToPath(rest)];
2176
+ }
2177
+ return [path];
2178
+ }
2179
+
2180
+ // src/index.ts
2181
+ var isBrowser = typeof window !== "undefined";
2182
+ // Annotate the CommonJS export names for ESM import in node:
2183
+ 0 && (module.exports = {
2184
+ KEY_CODES,
2185
+ _setPath,
2186
+ addProp,
2187
+ allPass,
2188
+ anyPass,
2189
+ chunk,
2190
+ clamp,
2191
+ clone,
2192
+ compact,
2193
+ concat,
2194
+ convertToUnit,
2195
+ countBy,
2196
+ createPipe,
2197
+ difference,
2198
+ differenceWith,
2199
+ drop,
2200
+ dropLast,
2201
+ equals,
2202
+ filter,
2203
+ find,
2204
+ findIndex,
2205
+ findLast,
2206
+ findLastIndex,
2207
+ first,
2208
+ flatMap,
2209
+ flatMapToObj,
2210
+ flatten,
2211
+ flattenDeep,
2212
+ forEach,
2213
+ forEachObj,
2214
+ fromPairs,
2215
+ groupBy,
2216
+ humanReadableFileSize,
2217
+ identity,
2218
+ increaseWithUnit,
2219
+ indexBy,
2220
+ intersection,
2221
+ intersectionWith,
2222
+ invert,
2223
+ isArray,
2224
+ isBoolean,
2225
+ isBrowser,
2226
+ isDate,
2227
+ isDefined,
2228
+ isEmpty,
2229
+ isError,
2230
+ isFunction,
2231
+ isNil,
2232
+ isNonNull,
2233
+ isNot,
2234
+ isNumber,
2235
+ isObject,
2236
+ isPromise,
2237
+ isString,
2238
+ isTruthy,
2239
+ isUppercase,
2240
+ join,
2241
+ keys,
2242
+ last,
2243
+ length,
2244
+ map,
2245
+ mapKeys,
2246
+ mapToObj,
2247
+ mapValues,
2248
+ maxBy,
2249
+ meanBy,
2250
+ merge,
2251
+ mergeAll,
2252
+ minBy,
2253
+ noop,
2254
+ omit,
2255
+ omitBy,
2256
+ once,
2257
+ partition,
2258
+ pathOr,
2259
+ pick,
2260
+ pickBy,
2261
+ pipe,
2262
+ prop,
2263
+ purry,
2264
+ randomString,
2265
+ range,
2266
+ reduce,
2267
+ reject,
2268
+ reverse,
2269
+ sample,
2270
+ set,
2271
+ setPath,
2272
+ shuffle,
2273
+ sleep,
2274
+ sort,
2275
+ sortBy,
2276
+ splitAt,
2277
+ splitByCase,
2278
+ splitWhen,
2279
+ stringToPath,
2280
+ sumBy,
2281
+ swapIndices,
2282
+ swapProps,
2283
+ take,
2284
+ takeWhile,
2285
+ toCamelCase,
2286
+ toKebabCase,
2287
+ toLowerFirst,
2288
+ toPairs,
2289
+ toPascalCase,
2290
+ toSnakeCase,
2291
+ toUpperFirst,
2292
+ type,
2293
+ uniq,
2294
+ uniqBy,
2295
+ uniqWith,
2296
+ values,
2297
+ zip,
2298
+ zipObj,
2299
+ zipWith
2300
+ });