prototyped.js 3.0.1 → 3.0.4

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 (2172) hide show
  1. package/.eslintrc +9 -32
  2. package/.gitattributes +2 -0
  3. package/.github/dependabot.yml +26 -0
  4. package/.github/workflows/release.yml +20 -15
  5. package/.github/workflows/test.yml +21 -15
  6. package/__tests__/array/all.test.ts +2 -2
  7. package/__tests__/array/any.test.ts +1 -1
  8. package/__tests__/array/append.test.ts +5 -7
  9. package/__tests__/array/average.test.ts +2 -6
  10. package/__tests__/array/compact.test.ts +13 -15
  11. package/__tests__/array/countBy.test.ts +8 -2
  12. package/__tests__/array/diff.test.ts +4 -6
  13. package/__tests__/array/distinct.test.ts +3 -8
  14. package/__tests__/array/distinctBy.test.ts +1 -3
  15. package/__tests__/array/equals.test.ts +15 -15
  16. package/__tests__/array/implode.test.ts +14 -18
  17. package/__tests__/array/max.test.ts +1 -3
  18. package/__tests__/array/median.test.ts +2 -8
  19. package/__tests__/array/min.test.ts +1 -3
  20. package/__tests__/array/nest.test.ts +60 -30
  21. package/__tests__/array/orderBy.test.ts +2 -3
  22. package/__tests__/array/partition.test.ts +23 -9
  23. package/__tests__/array/pluck.test.ts +5 -9
  24. package/__tests__/array/pull.test.ts +2 -2
  25. package/__tests__/array/sortBy.test.ts +1 -1
  26. package/__tests__/array/sum.test.ts +1 -3
  27. package/__tests__/array/toCSV.test.ts +8 -12
  28. package/__tests__/array/unwind.test.ts +4 -6
  29. package/__tests__/array/where.test.ts +11 -19
  30. package/__tests__/array/whereBetween.test.ts +2 -3
  31. package/__tests__/array/whereIn.test.ts +2 -3
  32. package/__tests__/array/whereLike.test.ts +4 -6
  33. package/__tests__/array/whereNotBetween.test.ts +5 -7
  34. package/__tests__/array/whereNotIn.test.ts +1 -3
  35. package/__tests__/array/whereNotLike.test.ts +4 -6
  36. package/__tests__/array/whereNotNull.test.ts +3 -6
  37. package/__tests__/array/whereNull.test.ts +3 -3
  38. package/__tests__/array/zip.test.ts +1 -0
  39. package/__tests__/array/zipObject.test.ts +5 -1
  40. package/__tests__/date/equals.test.ts +4 -4
  41. package/__tests__/date/isDate.test.ts +1 -1
  42. package/__tests__/date/today.test.ts +6 -8
  43. package/__tests__/date/tomorrow.test.ts +6 -8
  44. package/__tests__/date/yesterday.test.ts +6 -8
  45. package/__tests__/object/assign.test.ts +4 -1
  46. package/__tests__/object/camelCaseKeys.test.ts +9 -5
  47. package/__tests__/object/clone.test.ts +32 -9
  48. package/__tests__/object/defaults.test.ts +4 -1
  49. package/__tests__/object/dig.test.ts +1 -0
  50. package/__tests__/object/equals.test.ts +16 -12
  51. package/__tests__/object/flatten.test.ts +15 -12
  52. package/__tests__/object/forEach.test.ts +14 -5
  53. package/__tests__/object/get.test.ts +1 -3
  54. package/__tests__/object/invert.test.ts +5 -2
  55. package/__tests__/object/isPlainObject.test.ts +3 -1
  56. package/__tests__/object/kebabCaseKeys.test.ts +9 -5
  57. package/__tests__/object/keys.test.ts +5 -1
  58. package/__tests__/object/lowerCaseKeys.test.ts +5 -2
  59. package/__tests__/object/map.test.ts +15 -8
  60. package/__tests__/object/mapKeys.test.ts +4 -1
  61. package/__tests__/object/mapValues.test.ts +15 -8
  62. package/__tests__/object/merge.test.ts +14 -9
  63. package/__tests__/object/omit.test.ts +13 -2
  64. package/__tests__/object/reduce.test.ts +15 -12
  65. package/__tests__/object/set.test.ts +2 -0
  66. package/__tests__/object/size.test.ts +5 -1
  67. package/__tests__/object/snakeCaseKeys.test.ts +9 -5
  68. package/__tests__/object/values.test.ts +5 -1
  69. package/__tests__/string/camelCase.test.ts +7 -14
  70. package/__tests__/string/humanize.test.ts +4 -5
  71. package/__tests__/string/kebabCase.test.ts +9 -13
  72. package/__tests__/string/map.test.ts +1 -1
  73. package/__tests__/string/pluralize.test.ts +15 -3
  74. package/__tests__/string/reduce.test.ts +1 -0
  75. package/__tests__/string/snakeCase.test.ts +9 -13
  76. package/__tests__/utils.test.ts +2 -2
  77. package/build/cjs/array/all/index.js +10 -0
  78. package/build/cjs/array/all/index.js.map +1 -1
  79. package/build/cjs/array/all/shim.js +1 -12
  80. package/build/cjs/array/all/shim.js.map +1 -1
  81. package/build/cjs/array/any/index.js +11 -0
  82. package/build/cjs/array/any/index.js.map +1 -1
  83. package/build/cjs/array/any/shim.js +1 -13
  84. package/build/cjs/array/any/shim.js.map +1 -1
  85. package/build/cjs/array/append/index.js +8 -0
  86. package/build/cjs/array/append/index.js.map +1 -1
  87. package/build/cjs/array/append/shim.js +1 -11
  88. package/build/cjs/array/append/shim.js.map +1 -1
  89. package/build/cjs/array/average/index.js +12 -2
  90. package/build/cjs/array/average/index.js.map +1 -1
  91. package/build/cjs/array/average/shim.js +2 -25
  92. package/build/cjs/array/average/shim.js.map +1 -1
  93. package/build/cjs/array/chunk/index.js +8 -1
  94. package/build/cjs/array/chunk/index.js.map +1 -1
  95. package/build/cjs/array/chunk/shim.js +1 -10
  96. package/build/cjs/array/chunk/shim.js.map +1 -1
  97. package/build/cjs/array/clone/index.js +7 -0
  98. package/build/cjs/array/clone/index.js.map +1 -1
  99. package/build/cjs/array/clone/shim.js +1 -10
  100. package/build/cjs/array/clone/shim.js.map +1 -1
  101. package/build/cjs/array/compact/index.js +6 -0
  102. package/build/cjs/array/compact/index.js.map +1 -1
  103. package/build/cjs/array/compact/shim.js +1 -9
  104. package/build/cjs/array/compact/shim.js.map +1 -1
  105. package/build/cjs/array/contains/index.js +10 -0
  106. package/build/cjs/array/contains/index.js.map +1 -1
  107. package/build/cjs/array/contains/shim.js +1 -10
  108. package/build/cjs/array/contains/shim.js.map +1 -1
  109. package/build/cjs/array/count/index.js +12 -3
  110. package/build/cjs/array/count/index.js.map +1 -1
  111. package/build/cjs/array/count/shim.js +1 -11
  112. package/build/cjs/array/count/shim.js.map +1 -1
  113. package/build/cjs/array/countBy/index.js +10 -0
  114. package/build/cjs/array/countBy/index.js.map +1 -1
  115. package/build/cjs/array/countBy/shim.js +1 -12
  116. package/build/cjs/array/countBy/shim.js.map +1 -1
  117. package/build/cjs/array/crossJoin/index.js +9 -1
  118. package/build/cjs/array/crossJoin/index.js.map +1 -1
  119. package/build/cjs/array/crossJoin/shim.js +1 -11
  120. package/build/cjs/array/crossJoin/shim.js.map +1 -1
  121. package/build/cjs/array/deepFlatten/index.js +7 -1
  122. package/build/cjs/array/deepFlatten/index.js.map +1 -1
  123. package/build/cjs/array/deepFlatten/shim.js +1 -9
  124. package/build/cjs/array/deepFlatten/shim.js.map +1 -1
  125. package/build/cjs/array/diff/index.js +14 -2
  126. package/build/cjs/array/diff/index.js.map +1 -1
  127. package/build/cjs/array/diff/shim.js +1 -14
  128. package/build/cjs/array/diff/shim.js.map +1 -1
  129. package/build/cjs/array/distinct/index.js +16 -4
  130. package/build/cjs/array/distinct/index.js.map +1 -1
  131. package/build/cjs/array/distinct/shim.js +1 -12
  132. package/build/cjs/array/distinct/shim.js.map +1 -1
  133. package/build/cjs/array/distinctBy/index.js +12 -5
  134. package/build/cjs/array/distinctBy/index.js.map +1 -1
  135. package/build/cjs/array/distinctBy/shim.js +1 -10
  136. package/build/cjs/array/distinctBy/shim.js.map +1 -1
  137. package/build/cjs/array/empty/index.js +8 -0
  138. package/build/cjs/array/empty/index.js.map +1 -1
  139. package/build/cjs/array/empty/shim.js +1 -10
  140. package/build/cjs/array/empty/shim.js.map +1 -1
  141. package/build/cjs/array/equals/index.js +8 -1
  142. package/build/cjs/array/equals/index.js.map +1 -1
  143. package/build/cjs/array/equals/shim.js +1 -10
  144. package/build/cjs/array/equals/shim.js.map +1 -1
  145. package/build/cjs/array/everyNth/index.js +7 -0
  146. package/build/cjs/array/everyNth/index.js.map +1 -1
  147. package/build/cjs/array/everyNth/shim.js +1 -9
  148. package/build/cjs/array/everyNth/shim.js.map +1 -1
  149. package/build/cjs/array/first/index.js +6 -0
  150. package/build/cjs/array/first/index.js.map +1 -1
  151. package/build/cjs/array/first/shim.js +1 -9
  152. package/build/cjs/array/first/shim.js.map +1 -1
  153. package/build/cjs/array/flatten/index.js +10 -2
  154. package/build/cjs/array/flatten/index.js.map +1 -1
  155. package/build/cjs/array/flatten/shim.js +1 -11
  156. package/build/cjs/array/flatten/shim.js.map +1 -1
  157. package/build/cjs/array/get/index.js +10 -0
  158. package/build/cjs/array/get/index.js.map +1 -1
  159. package/build/cjs/array/get/shim.js +1 -12
  160. package/build/cjs/array/get/shim.js.map +1 -1
  161. package/build/cjs/array/groupBy/index.js +11 -1
  162. package/build/cjs/array/groupBy/index.js.map +1 -1
  163. package/build/cjs/array/groupBy/shim.js +1 -11
  164. package/build/cjs/array/groupBy/shim.js.map +1 -1
  165. package/build/cjs/array/implode/index.js +4 -2
  166. package/build/cjs/array/implode/index.js.map +1 -1
  167. package/build/cjs/array/implode/shim.js +1 -12
  168. package/build/cjs/array/implode/shim.js.map +1 -1
  169. package/build/cjs/array/index.js.map +1 -1
  170. package/build/cjs/array/indexOfAll/index.js +9 -0
  171. package/build/cjs/array/indexOfAll/index.js.map +1 -1
  172. package/build/cjs/array/indexOfAll/shim.js +1 -11
  173. package/build/cjs/array/indexOfAll/shim.js.map +1 -1
  174. package/build/cjs/array/initial/index.js +5 -0
  175. package/build/cjs/array/initial/index.js.map +1 -1
  176. package/build/cjs/array/initial/shim.js +1 -9
  177. package/build/cjs/array/initial/shim.js.map +1 -1
  178. package/build/cjs/array/intersect/index.js +8 -1
  179. package/build/cjs/array/intersect/index.js.map +1 -1
  180. package/build/cjs/array/intersect/shim.js +1 -10
  181. package/build/cjs/array/intersect/shim.js.map +1 -1
  182. package/build/cjs/array/isEmpty/index.js +7 -0
  183. package/build/cjs/array/isEmpty/index.js.map +1 -1
  184. package/build/cjs/array/isEmpty/shim.js +1 -10
  185. package/build/cjs/array/isEmpty/shim.js.map +1 -1
  186. package/build/cjs/array/last/index.js +6 -0
  187. package/build/cjs/array/last/index.js.map +1 -1
  188. package/build/cjs/array/last/shim.js +1 -9
  189. package/build/cjs/array/last/shim.js.map +1 -1
  190. package/build/cjs/array/limit/index.js +9 -2
  191. package/build/cjs/array/limit/index.js.map +1 -1
  192. package/build/cjs/array/limit/shim.js +2 -21
  193. package/build/cjs/array/limit/shim.js.map +1 -1
  194. package/build/cjs/array/max/index.js +1 -1
  195. package/build/cjs/array/max/index.js.map +1 -1
  196. package/build/cjs/array/max/shim.js +1 -12
  197. package/build/cjs/array/max/shim.js.map +1 -1
  198. package/build/cjs/array/median/index.js +1 -1
  199. package/build/cjs/array/median/index.js.map +1 -1
  200. package/build/cjs/array/median/shim.js +1 -11
  201. package/build/cjs/array/median/shim.js.map +1 -1
  202. package/build/cjs/array/merge/index.js +8 -0
  203. package/build/cjs/array/merge/index.js.map +1 -1
  204. package/build/cjs/array/merge/shim.js +1 -10
  205. package/build/cjs/array/merge/shim.js.map +1 -1
  206. package/build/cjs/array/min/index.js +1 -1
  207. package/build/cjs/array/min/index.js.map +1 -1
  208. package/build/cjs/array/min/shim.js +1 -12
  209. package/build/cjs/array/min/shim.js.map +1 -1
  210. package/build/cjs/array/nest/index.js +24 -5
  211. package/build/cjs/array/nest/index.js.map +1 -1
  212. package/build/cjs/array/nest/shim.js +1 -18
  213. package/build/cjs/array/nest/shim.js.map +1 -1
  214. package/build/cjs/array/orderBy/index.js +11 -9
  215. package/build/cjs/array/orderBy/index.js.map +1 -1
  216. package/build/cjs/array/orderBy/shim.js +1 -13
  217. package/build/cjs/array/orderBy/shim.js.map +1 -1
  218. package/build/cjs/array/pad/index.js +10 -0
  219. package/build/cjs/array/pad/index.js.map +1 -1
  220. package/build/cjs/array/pad/shim.js +1 -12
  221. package/build/cjs/array/pad/shim.js.map +1 -1
  222. package/build/cjs/array/partition/index.js +17 -1
  223. package/build/cjs/array/partition/index.js.map +1 -1
  224. package/build/cjs/array/partition/shim.js +1 -17
  225. package/build/cjs/array/partition/shim.js.map +1 -1
  226. package/build/cjs/array/pluck/index.js +11 -1
  227. package/build/cjs/array/pluck/index.js.map +1 -1
  228. package/build/cjs/array/pluck/shim.js +1 -11
  229. package/build/cjs/array/pluck/shim.js.map +1 -1
  230. package/build/cjs/array/prepend/index.js +8 -0
  231. package/build/cjs/array/prepend/index.js.map +1 -1
  232. package/build/cjs/array/prepend/shim.js +1 -10
  233. package/build/cjs/array/prepend/shim.js.map +1 -1
  234. package/build/cjs/array/pull/index.js +10 -2
  235. package/build/cjs/array/pull/index.js.map +1 -1
  236. package/build/cjs/array/pull/shim.js +1 -10
  237. package/build/cjs/array/pull/shim.js.map +1 -1
  238. package/build/cjs/array/range/index.js +14 -1
  239. package/build/cjs/array/range/index.js.map +1 -1
  240. package/build/cjs/array/range/shim.js +0 -14
  241. package/build/cjs/array/range/shim.js.map +1 -1
  242. package/build/cjs/array/repeat/index.js +7 -0
  243. package/build/cjs/array/repeat/index.js.map +1 -1
  244. package/build/cjs/array/repeat/shim.js +0 -10
  245. package/build/cjs/array/repeat/shim.js.map +1 -1
  246. package/build/cjs/array/sample/index.js +5 -0
  247. package/build/cjs/array/sample/index.js.map +1 -1
  248. package/build/cjs/array/sample/shim.js +1 -9
  249. package/build/cjs/array/sample/shim.js.map +1 -1
  250. package/build/cjs/array/shim.js +0 -1
  251. package/build/cjs/array/shim.js.map +1 -1
  252. package/build/cjs/array/shuffle/index.js +6 -0
  253. package/build/cjs/array/shuffle/index.js.map +1 -1
  254. package/build/cjs/array/shuffle/shim.js +0 -9
  255. package/build/cjs/array/shuffle/shim.js.map +1 -1
  256. package/build/cjs/array/skip/index.js +7 -0
  257. package/build/cjs/array/skip/index.js.map +1 -1
  258. package/build/cjs/array/skip/shim.js +1 -20
  259. package/build/cjs/array/skip/shim.js.map +1 -1
  260. package/build/cjs/array/sortBy/index.js +10 -0
  261. package/build/cjs/array/sortBy/index.js.map +1 -1
  262. package/build/cjs/array/sortBy/shim.js +0 -11
  263. package/build/cjs/array/sortBy/shim.js.map +1 -1
  264. package/build/cjs/array/sum/index.js +17 -7
  265. package/build/cjs/array/sum/index.js.map +1 -1
  266. package/build/cjs/array/sum/shim.js +0 -11
  267. package/build/cjs/array/sum/shim.js.map +1 -1
  268. package/build/cjs/array/tail/index.js +5 -0
  269. package/build/cjs/array/tail/index.js.map +1 -1
  270. package/build/cjs/array/tail/shim.js +1 -9
  271. package/build/cjs/array/tail/shim.js.map +1 -1
  272. package/build/cjs/array/toCSV/index.js +9 -0
  273. package/build/cjs/array/toCSV/index.js.map +1 -1
  274. package/build/cjs/array/toCSV/shim.js +1 -11
  275. package/build/cjs/array/toCSV/shim.js.map +1 -1
  276. package/build/cjs/array/union/index.js +7 -0
  277. package/build/cjs/array/union/index.js.map +1 -1
  278. package/build/cjs/array/union/shim.js +1 -10
  279. package/build/cjs/array/union/shim.js.map +1 -1
  280. package/build/cjs/array/unwind/index.js +12 -1
  281. package/build/cjs/array/unwind/index.js.map +1 -1
  282. package/build/cjs/array/unwind/shim.js +1 -11
  283. package/build/cjs/array/unwind/shim.js.map +1 -1
  284. package/build/cjs/array/where/index.js +35 -29
  285. package/build/cjs/array/where/index.js.map +1 -1
  286. package/build/cjs/array/where/shim.js +1 -15
  287. package/build/cjs/array/where/shim.js.map +1 -1
  288. package/build/cjs/array/whereBetween/index.js +10 -5
  289. package/build/cjs/array/whereBetween/index.js.map +1 -1
  290. package/build/cjs/array/whereBetween/shim.js +1 -13
  291. package/build/cjs/array/whereBetween/shim.js.map +1 -1
  292. package/build/cjs/array/whereIn/index.js +4 -4
  293. package/build/cjs/array/whereIn/index.js.map +1 -1
  294. package/build/cjs/array/whereIn/shim.js +1 -12
  295. package/build/cjs/array/whereIn/shim.js.map +1 -1
  296. package/build/cjs/array/whereLike/index.js +4 -4
  297. package/build/cjs/array/whereLike/index.js.map +1 -1
  298. package/build/cjs/array/whereLike/shim.js +1 -13
  299. package/build/cjs/array/whereLike/shim.js.map +1 -1
  300. package/build/cjs/array/whereNotBetween/index.js +10 -5
  301. package/build/cjs/array/whereNotBetween/index.js.map +1 -1
  302. package/build/cjs/array/whereNotBetween/shim.js +1 -13
  303. package/build/cjs/array/whereNotBetween/shim.js.map +1 -1
  304. package/build/cjs/array/whereNotIn/index.js +4 -4
  305. package/build/cjs/array/whereNotIn/index.js.map +1 -1
  306. package/build/cjs/array/whereNotIn/shim.js +1 -12
  307. package/build/cjs/array/whereNotIn/shim.js.map +1 -1
  308. package/build/cjs/array/whereNotLike/index.js +4 -4
  309. package/build/cjs/array/whereNotLike/index.js.map +1 -1
  310. package/build/cjs/array/whereNotLike/shim.js +1 -12
  311. package/build/cjs/array/whereNotLike/shim.js.map +1 -1
  312. package/build/cjs/array/whereNotNull/index.js +10 -2
  313. package/build/cjs/array/whereNotNull/index.js.map +1 -1
  314. package/build/cjs/array/whereNotNull/shim.js +1 -11
  315. package/build/cjs/array/whereNotNull/shim.js.map +1 -1
  316. package/build/cjs/array/whereNull/index.js +10 -2
  317. package/build/cjs/array/whereNull/index.js.map +1 -1
  318. package/build/cjs/array/whereNull/shim.js +1 -11
  319. package/build/cjs/array/whereNull/shim.js.map +1 -1
  320. package/build/cjs/array/zip/index.js +10 -3
  321. package/build/cjs/array/zip/index.js.map +1 -1
  322. package/build/cjs/array/zip/shim.js +1 -11
  323. package/build/cjs/array/zip/shim.js.map +1 -1
  324. package/build/cjs/array/zipObject/index.js +14 -1
  325. package/build/cjs/array/zipObject/index.js.map +1 -1
  326. package/build/cjs/array/zipObject/shim.js +1 -12
  327. package/build/cjs/array/zipObject/shim.js.map +1 -1
  328. package/build/cjs/boolean/isBoolean/index.js +8 -0
  329. package/build/cjs/boolean/isBoolean/index.js.map +1 -1
  330. package/build/cjs/boolean/isBoolean/shim.js +0 -10
  331. package/build/cjs/boolean/isBoolean/shim.js.map +1 -1
  332. package/build/cjs/boolean/shim.js +0 -1
  333. package/build/cjs/boolean/shim.js.map +1 -1
  334. package/build/cjs/date/equals/index.js +7 -0
  335. package/build/cjs/date/equals/index.js.map +1 -1
  336. package/build/cjs/date/equals/shim.js +1 -10
  337. package/build/cjs/date/equals/shim.js.map +1 -1
  338. package/build/cjs/date/isDate/index.js +10 -2
  339. package/build/cjs/date/isDate/index.js.map +1 -1
  340. package/build/cjs/date/isDate/shim.js +0 -10
  341. package/build/cjs/date/isDate/shim.js.map +1 -1
  342. package/build/cjs/date/shim.js +0 -1
  343. package/build/cjs/date/shim.js.map +1 -1
  344. package/build/cjs/date/today/index.js +8 -2
  345. package/build/cjs/date/today/index.js.map +1 -1
  346. package/build/cjs/date/today/shim.js +0 -8
  347. package/build/cjs/date/today/shim.js.map +1 -1
  348. package/build/cjs/date/tomorrow/index.js +8 -2
  349. package/build/cjs/date/tomorrow/index.js.map +1 -1
  350. package/build/cjs/date/tomorrow/shim.js +0 -8
  351. package/build/cjs/date/tomorrow/shim.js.map +1 -1
  352. package/build/cjs/date/yesterday/index.js +8 -2
  353. package/build/cjs/date/yesterday/index.js.map +1 -1
  354. package/build/cjs/date/yesterday/shim.js +0 -8
  355. package/build/cjs/date/yesterday/shim.js.map +1 -1
  356. package/build/cjs/function/cache/index.js +9 -1
  357. package/build/cjs/function/cache/index.js.map +1 -1
  358. package/build/cjs/function/cache/shim.js +0 -11
  359. package/build/cjs/function/cache/shim.js.map +1 -1
  360. package/build/cjs/function/defer/index.js +8 -0
  361. package/build/cjs/function/defer/index.js.map +1 -1
  362. package/build/cjs/function/defer/shim.js +1 -11
  363. package/build/cjs/function/defer/shim.js.map +1 -1
  364. package/build/cjs/function/isFunction/index.js +8 -0
  365. package/build/cjs/function/isFunction/index.js.map +1 -1
  366. package/build/cjs/function/isFunction/shim.js +0 -10
  367. package/build/cjs/function/isFunction/shim.js.map +1 -1
  368. package/build/cjs/function/once/index.js +9 -0
  369. package/build/cjs/function/once/index.js.map +1 -1
  370. package/build/cjs/function/once/shim.js +1 -12
  371. package/build/cjs/function/once/shim.js.map +1 -1
  372. package/build/cjs/function/shim.js +0 -1
  373. package/build/cjs/function/shim.js.map +1 -1
  374. package/build/cjs/globals/isBrowser/index.js +6 -0
  375. package/build/cjs/globals/isBrowser/index.js.map +1 -1
  376. package/build/cjs/globals/isBrowser/shim.js +0 -9
  377. package/build/cjs/globals/isBrowser/shim.js.map +1 -1
  378. package/build/cjs/globals/shim.js +0 -1
  379. package/build/cjs/globals/shim.js.map +1 -1
  380. package/build/cjs/index.js +8 -2
  381. package/build/cjs/index.js.map +1 -1
  382. package/build/cjs/math/average/index.js +8 -0
  383. package/build/cjs/math/average/index.js.map +1 -1
  384. package/build/cjs/math/average/shim.js +1 -22
  385. package/build/cjs/math/average/shim.js.map +1 -1
  386. package/build/cjs/math/degreesToRads/index.js +8 -2
  387. package/build/cjs/math/degreesToRads/index.js.map +1 -1
  388. package/build/cjs/math/degreesToRads/shim.js +0 -9
  389. package/build/cjs/math/degreesToRads/shim.js.map +1 -1
  390. package/build/cjs/math/factorial/index.js +6 -0
  391. package/build/cjs/math/factorial/index.js.map +1 -1
  392. package/build/cjs/math/factorial/shim.js +0 -9
  393. package/build/cjs/math/factorial/shim.js.map +1 -1
  394. package/build/cjs/math/fibonacci/index.js +6 -0
  395. package/build/cjs/math/fibonacci/index.js.map +1 -1
  396. package/build/cjs/math/fibonacci/shim.js +0 -9
  397. package/build/cjs/math/fibonacci/shim.js.map +1 -1
  398. package/build/cjs/math/gcd/index.js +10 -2
  399. package/build/cjs/math/gcd/index.js.map +1 -1
  400. package/build/cjs/math/gcd/shim.js +0 -10
  401. package/build/cjs/math/gcd/shim.js.map +1 -1
  402. package/build/cjs/math/isDivisible/index.js +7 -0
  403. package/build/cjs/math/isDivisible/index.js.map +1 -1
  404. package/build/cjs/math/isDivisible/shim.js +0 -10
  405. package/build/cjs/math/isDivisible/shim.js.map +1 -1
  406. package/build/cjs/math/isEven/index.js +6 -0
  407. package/build/cjs/math/isEven/index.js.map +1 -1
  408. package/build/cjs/math/isEven/shim.js +0 -9
  409. package/build/cjs/math/isEven/shim.js.map +1 -1
  410. package/build/cjs/math/isPrime/index.js +6 -0
  411. package/build/cjs/math/isPrime/index.js.map +1 -1
  412. package/build/cjs/math/isPrime/shim.js +0 -9
  413. package/build/cjs/math/isPrime/shim.js.map +1 -1
  414. package/build/cjs/math/lcm/index.js +13 -3
  415. package/build/cjs/math/lcm/index.js.map +1 -1
  416. package/build/cjs/math/lcm/shim.js +0 -10
  417. package/build/cjs/math/lcm/shim.js.map +1 -1
  418. package/build/cjs/math/primes/index.js +7 -1
  419. package/build/cjs/math/primes/index.js.map +1 -1
  420. package/build/cjs/math/primes/shim.js +0 -9
  421. package/build/cjs/math/primes/shim.js.map +1 -1
  422. package/build/cjs/math/radsToDegrees/index.js +8 -2
  423. package/build/cjs/math/radsToDegrees/index.js.map +1 -1
  424. package/build/cjs/math/radsToDegrees/shim.js +0 -9
  425. package/build/cjs/math/radsToDegrees/shim.js.map +1 -1
  426. package/build/cjs/math/shim.js +0 -1
  427. package/build/cjs/math/shim.js.map +1 -1
  428. package/build/cjs/number/digitize/index.js +6 -1
  429. package/build/cjs/number/digitize/index.js.map +1 -1
  430. package/build/cjs/number/digitize/shim.js +1 -9
  431. package/build/cjs/number/digitize/shim.js.map +1 -1
  432. package/build/cjs/number/equals/index.js +7 -0
  433. package/build/cjs/number/equals/index.js.map +1 -1
  434. package/build/cjs/number/equals/shim.js +1 -10
  435. package/build/cjs/number/equals/shim.js.map +1 -1
  436. package/build/cjs/number/inRange/index.js +8 -0
  437. package/build/cjs/number/inRange/index.js.map +1 -1
  438. package/build/cjs/number/inRange/shim.js +1 -11
  439. package/build/cjs/number/inRange/shim.js.map +1 -1
  440. package/build/cjs/number/isNumber/index.js +8 -0
  441. package/build/cjs/number/isNumber/index.js.map +1 -1
  442. package/build/cjs/number/isNumber/shim.js +0 -10
  443. package/build/cjs/number/isNumber/shim.js.map +1 -1
  444. package/build/cjs/number/shim.js +0 -1
  445. package/build/cjs/number/shim.js.map +1 -1
  446. package/build/cjs/object/assign/index.js +7 -0
  447. package/build/cjs/object/assign/index.js.map +1 -1
  448. package/build/cjs/object/assign/shim.js +1 -10
  449. package/build/cjs/object/assign/shim.js.map +1 -1
  450. package/build/cjs/object/camelCaseKeys/index.js +7 -0
  451. package/build/cjs/object/camelCaseKeys/index.js.map +1 -1
  452. package/build/cjs/object/camelCaseKeys/shim.js +1 -10
  453. package/build/cjs/object/camelCaseKeys/shim.js.map +1 -1
  454. package/build/cjs/object/clone/index.js +9 -1
  455. package/build/cjs/object/clone/index.js.map +1 -1
  456. package/build/cjs/object/clone/shim.js +1 -11
  457. package/build/cjs/object/clone/shim.js.map +1 -1
  458. package/build/cjs/object/defaults/index.js +8 -1
  459. package/build/cjs/object/defaults/index.js.map +1 -1
  460. package/build/cjs/object/defaults/shim.js +1 -10
  461. package/build/cjs/object/defaults/shim.js.map +1 -1
  462. package/build/cjs/object/dig/index.js +17 -1
  463. package/build/cjs/object/dig/index.js.map +1 -1
  464. package/build/cjs/object/dig/shim.js +1 -18
  465. package/build/cjs/object/dig/shim.js.map +1 -1
  466. package/build/cjs/object/empty/index.js +10 -3
  467. package/build/cjs/object/empty/index.js.map +1 -1
  468. package/build/cjs/object/empty/shim.js +1 -10
  469. package/build/cjs/object/empty/shim.js.map +1 -1
  470. package/build/cjs/object/equals/index.js +9 -1
  471. package/build/cjs/object/equals/index.js.map +1 -1
  472. package/build/cjs/object/equals/shim.js +1 -10
  473. package/build/cjs/object/equals/shim.js.map +1 -1
  474. package/build/cjs/object/flatten/index.js +7 -1
  475. package/build/cjs/object/flatten/index.js.map +1 -1
  476. package/build/cjs/object/flatten/shim.js +1 -9
  477. package/build/cjs/object/flatten/shim.js.map +1 -1
  478. package/build/cjs/object/forEach/index.js +12 -1
  479. package/build/cjs/object/forEach/index.js.map +1 -1
  480. package/build/cjs/object/forEach/shim.js +1 -13
  481. package/build/cjs/object/forEach/shim.js.map +1 -1
  482. package/build/cjs/object/get/index.js +7 -0
  483. package/build/cjs/object/get/index.js.map +1 -1
  484. package/build/cjs/object/get/shim.js +1 -10
  485. package/build/cjs/object/get/shim.js.map +1 -1
  486. package/build/cjs/object/invert/index.js +6 -0
  487. package/build/cjs/object/invert/index.js.map +1 -1
  488. package/build/cjs/object/invert/shim.js +1 -9
  489. package/build/cjs/object/invert/shim.js.map +1 -1
  490. package/build/cjs/object/isEmpty/index.js +8 -0
  491. package/build/cjs/object/isEmpty/index.js.map +1 -1
  492. package/build/cjs/object/isEmpty/shim.js +1 -10
  493. package/build/cjs/object/isEmpty/shim.js.map +1 -1
  494. package/build/cjs/object/isObject/index.js +8 -0
  495. package/build/cjs/object/isObject/index.js.map +1 -1
  496. package/build/cjs/object/isObject/shim.js +0 -10
  497. package/build/cjs/object/isObject/shim.js.map +1 -1
  498. package/build/cjs/object/isObjectLike/index.js +8 -0
  499. package/build/cjs/object/isObjectLike/index.js.map +1 -1
  500. package/build/cjs/object/isObjectLike/shim.js +0 -10
  501. package/build/cjs/object/isObjectLike/shim.js.map +1 -1
  502. package/build/cjs/object/isPlainObject/index.js +9 -2
  503. package/build/cjs/object/isPlainObject/index.js.map +1 -1
  504. package/build/cjs/object/isPlainObject/shim.js +0 -10
  505. package/build/cjs/object/isPlainObject/shim.js.map +1 -1
  506. package/build/cjs/object/kebabCaseKeys/index.js +7 -0
  507. package/build/cjs/object/kebabCaseKeys/index.js.map +1 -1
  508. package/build/cjs/object/kebabCaseKeys/shim.js +1 -10
  509. package/build/cjs/object/kebabCaseKeys/shim.js.map +1 -1
  510. package/build/cjs/object/keys/index.js +6 -0
  511. package/build/cjs/object/keys/index.js.map +1 -1
  512. package/build/cjs/object/keys/shim.js +1 -9
  513. package/build/cjs/object/keys/shim.js.map +1 -1
  514. package/build/cjs/object/lowerCaseKeys/index.js +6 -0
  515. package/build/cjs/object/lowerCaseKeys/index.js.map +1 -1
  516. package/build/cjs/object/lowerCaseKeys/shim.js +1 -10
  517. package/build/cjs/object/lowerCaseKeys/shim.js.map +1 -1
  518. package/build/cjs/object/map/index.js +12 -0
  519. package/build/cjs/object/map/index.js.map +1 -1
  520. package/build/cjs/object/map/shim.js +0 -14
  521. package/build/cjs/object/map/shim.js.map +1 -1
  522. package/build/cjs/object/mapKeys/index.js +8 -0
  523. package/build/cjs/object/mapKeys/index.js.map +1 -1
  524. package/build/cjs/object/mapKeys/shim.js +1 -11
  525. package/build/cjs/object/mapKeys/shim.js.map +1 -1
  526. package/build/cjs/object/mapValues/index.js +12 -0
  527. package/build/cjs/object/mapValues/index.js.map +1 -1
  528. package/build/cjs/object/mapValues/shim.js +1 -15
  529. package/build/cjs/object/mapValues/shim.js.map +1 -1
  530. package/build/cjs/object/merge/index.js +18 -2
  531. package/build/cjs/object/merge/index.js.map +1 -1
  532. package/build/cjs/object/merge/shim.js +1 -19
  533. package/build/cjs/object/merge/shim.js.map +1 -1
  534. package/build/cjs/object/omit/index.js +17 -3
  535. package/build/cjs/object/omit/index.js.map +1 -1
  536. package/build/cjs/object/omit/shim.js +1 -13
  537. package/build/cjs/object/omit/shim.js.map +1 -1
  538. package/build/cjs/object/reduce/index.js +11 -1
  539. package/build/cjs/object/reduce/index.js.map +1 -1
  540. package/build/cjs/object/reduce/shim.js +1 -12
  541. package/build/cjs/object/reduce/shim.js.map +1 -1
  542. package/build/cjs/object/set/index.js +11 -2
  543. package/build/cjs/object/set/index.js.map +1 -1
  544. package/build/cjs/object/set/shim.js +1 -12
  545. package/build/cjs/object/set/shim.js.map +1 -1
  546. package/build/cjs/object/shim.js +0 -1
  547. package/build/cjs/object/shim.js.map +1 -1
  548. package/build/cjs/object/size/index.js +5 -0
  549. package/build/cjs/object/size/index.js.map +1 -1
  550. package/build/cjs/object/size/shim.js +1 -9
  551. package/build/cjs/object/size/shim.js.map +1 -1
  552. package/build/cjs/object/snakeCaseKeys/index.js +7 -0
  553. package/build/cjs/object/snakeCaseKeys/index.js.map +1 -1
  554. package/build/cjs/object/snakeCaseKeys/shim.js +1 -10
  555. package/build/cjs/object/snakeCaseKeys/shim.js.map +1 -1
  556. package/build/cjs/object/values/index.js +5 -0
  557. package/build/cjs/object/values/index.js.map +1 -1
  558. package/build/cjs/object/values/shim.js +1 -9
  559. package/build/cjs/object/values/shim.js.map +1 -1
  560. package/build/cjs/string/base64/index.js +5 -0
  561. package/build/cjs/string/base64/index.js.map +1 -1
  562. package/build/cjs/string/base64/shim.js +1 -9
  563. package/build/cjs/string/base64/shim.js.map +1 -1
  564. package/build/cjs/string/base64Decode/index.js +5 -0
  565. package/build/cjs/string/base64Decode/index.js.map +1 -1
  566. package/build/cjs/string/base64Decode/shim.js +1 -9
  567. package/build/cjs/string/base64Decode/shim.js.map +1 -1
  568. package/build/cjs/string/camelCase/index.js +14 -2
  569. package/build/cjs/string/camelCase/index.js.map +1 -1
  570. package/build/cjs/string/camelCase/shim.js +1 -13
  571. package/build/cjs/string/camelCase/shim.js.map +1 -1
  572. package/build/cjs/string/capitalize/index.js +11 -2
  573. package/build/cjs/string/capitalize/index.js.map +1 -1
  574. package/build/cjs/string/capitalize/shim.js +1 -11
  575. package/build/cjs/string/capitalize/shim.js.map +1 -1
  576. package/build/cjs/string/chars/index.js +5 -0
  577. package/build/cjs/string/chars/index.js.map +1 -1
  578. package/build/cjs/string/chars/shim.js +1 -9
  579. package/build/cjs/string/chars/shim.js.map +1 -1
  580. package/build/cjs/string/contains/index.js +12 -2
  581. package/build/cjs/string/contains/index.js.map +1 -1
  582. package/build/cjs/string/contains/shim.js +1 -12
  583. package/build/cjs/string/contains/shim.js.map +1 -1
  584. package/build/cjs/string/decapitalize/index.js +11 -2
  585. package/build/cjs/string/decapitalize/index.js.map +1 -1
  586. package/build/cjs/string/decapitalize/shim.js +1 -11
  587. package/build/cjs/string/decapitalize/shim.js.map +1 -1
  588. package/build/cjs/string/equals/index.js +7 -0
  589. package/build/cjs/string/equals/index.js.map +1 -1
  590. package/build/cjs/string/equals/shim.js +1 -10
  591. package/build/cjs/string/equals/shim.js.map +1 -1
  592. package/build/cjs/string/forEach/index.js +8 -1
  593. package/build/cjs/string/forEach/index.js.map +1 -1
  594. package/build/cjs/string/forEach/shim.js +1 -10
  595. package/build/cjs/string/forEach/shim.js.map +1 -1
  596. package/build/cjs/string/humanize/index.js +11 -3
  597. package/build/cjs/string/humanize/index.js.map +1 -1
  598. package/build/cjs/string/humanize/shim.js +1 -11
  599. package/build/cjs/string/humanize/shim.js.map +1 -1
  600. package/build/cjs/string/isEmpty/index.js +8 -0
  601. package/build/cjs/string/isEmpty/index.js.map +1 -1
  602. package/build/cjs/string/isEmpty/shim.js +1 -10
  603. package/build/cjs/string/isEmpty/shim.js.map +1 -1
  604. package/build/cjs/string/isString/index.js +8 -0
  605. package/build/cjs/string/isString/index.js.map +1 -1
  606. package/build/cjs/string/isString/shim.js +0 -10
  607. package/build/cjs/string/isString/shim.js.map +1 -1
  608. package/build/cjs/string/kebabCase/index.js +18 -2
  609. package/build/cjs/string/kebabCase/index.js.map +1 -1
  610. package/build/cjs/string/kebabCase/shim.js +1 -15
  611. package/build/cjs/string/kebabCase/shim.js.map +1 -1
  612. package/build/cjs/string/lines/index.js +6 -0
  613. package/build/cjs/string/lines/index.js.map +1 -1
  614. package/build/cjs/string/lines/shim.js +1 -9
  615. package/build/cjs/string/lines/shim.js.map +1 -1
  616. package/build/cjs/string/map/index.js +9 -1
  617. package/build/cjs/string/map/index.js.map +1 -1
  618. package/build/cjs/string/map/shim.js +1 -10
  619. package/build/cjs/string/map/shim.js.map +1 -1
  620. package/build/cjs/string/mask/index.js +14 -2
  621. package/build/cjs/string/mask/index.js.map +1 -1
  622. package/build/cjs/string/mask/shim.js +1 -13
  623. package/build/cjs/string/mask/shim.js.map +1 -1
  624. package/build/cjs/string/pad/index.js +10 -0
  625. package/build/cjs/string/pad/index.js.map +1 -1
  626. package/build/cjs/string/pad/shim.js +1 -12
  627. package/build/cjs/string/pad/shim.js.map +1 -1
  628. package/build/cjs/string/parseInt/index.js +7 -0
  629. package/build/cjs/string/parseInt/index.js.map +1 -1
  630. package/build/cjs/string/parseInt/shim.js +1 -10
  631. package/build/cjs/string/parseInt/shim.js.map +1 -1
  632. package/build/cjs/string/pluralize/index.js +54 -32
  633. package/build/cjs/string/pluralize/index.js.map +1 -1
  634. package/build/cjs/string/pluralize/shim.js +1 -15
  635. package/build/cjs/string/pluralize/shim.js.map +1 -1
  636. package/build/cjs/string/reduce/index.js +11 -1
  637. package/build/cjs/string/reduce/index.js.map +1 -1
  638. package/build/cjs/string/reduce/shim.js +1 -11
  639. package/build/cjs/string/reduce/shim.js.map +1 -1
  640. package/build/cjs/string/repeat/index.js +7 -0
  641. package/build/cjs/string/repeat/index.js.map +1 -1
  642. package/build/cjs/string/repeat/shim.js +0 -10
  643. package/build/cjs/string/repeat/shim.js.map +1 -1
  644. package/build/cjs/string/reverse/index.js +6 -0
  645. package/build/cjs/string/reverse/index.js.map +1 -1
  646. package/build/cjs/string/reverse/shim.js +1 -9
  647. package/build/cjs/string/reverse/shim.js.map +1 -1
  648. package/build/cjs/string/shim.js +0 -1
  649. package/build/cjs/string/shim.js.map +1 -1
  650. package/build/cjs/string/snakeCase/index.js +18 -2
  651. package/build/cjs/string/snakeCase/index.js.map +1 -1
  652. package/build/cjs/string/snakeCase/shim.js +1 -15
  653. package/build/cjs/string/snakeCase/shim.js.map +1 -1
  654. package/build/cjs/string/swapCase/index.js +7 -1
  655. package/build/cjs/string/swapCase/index.js.map +1 -1
  656. package/build/cjs/string/swapCase/shim.js +1 -9
  657. package/build/cjs/string/swapCase/shim.js.map +1 -1
  658. package/build/cjs/string/truncate/index.js +10 -0
  659. package/build/cjs/string/truncate/index.js.map +1 -1
  660. package/build/cjs/string/truncate/shim.js +1 -12
  661. package/build/cjs/string/truncate/shim.js.map +1 -1
  662. package/build/cjs/string/words/index.js +9 -0
  663. package/build/cjs/string/words/index.js.map +1 -1
  664. package/build/cjs/string/words/shim.js +1 -11
  665. package/build/cjs/string/words/shim.js.map +1 -1
  666. package/build/cjs/utils.js +38 -25
  667. package/build/cjs/utils.js.map +1 -1
  668. package/build/esm/array/all/index.js +10 -0
  669. package/build/esm/array/all/index.js.map +1 -1
  670. package/build/esm/array/all/shim.js +1 -12
  671. package/build/esm/array/all/shim.js.map +1 -1
  672. package/build/esm/array/any/index.js +11 -0
  673. package/build/esm/array/any/index.js.map +1 -1
  674. package/build/esm/array/any/shim.js +1 -13
  675. package/build/esm/array/any/shim.js.map +1 -1
  676. package/build/esm/array/append/index.js +8 -0
  677. package/build/esm/array/append/index.js.map +1 -1
  678. package/build/esm/array/append/shim.js +1 -11
  679. package/build/esm/array/append/shim.js.map +1 -1
  680. package/build/esm/array/average/index.js +12 -3
  681. package/build/esm/array/average/index.js.map +1 -1
  682. package/build/esm/array/average/shim.js +2 -25
  683. package/build/esm/array/average/shim.js.map +1 -1
  684. package/build/esm/array/chunk/index.js +8 -1
  685. package/build/esm/array/chunk/index.js.map +1 -1
  686. package/build/esm/array/chunk/shim.js +1 -10
  687. package/build/esm/array/chunk/shim.js.map +1 -1
  688. package/build/esm/array/clone/index.js +7 -0
  689. package/build/esm/array/clone/index.js.map +1 -1
  690. package/build/esm/array/clone/shim.js +1 -10
  691. package/build/esm/array/clone/shim.js.map +1 -1
  692. package/build/esm/array/compact/index.js +6 -0
  693. package/build/esm/array/compact/index.js.map +1 -1
  694. package/build/esm/array/compact/shim.js +1 -9
  695. package/build/esm/array/compact/shim.js.map +1 -1
  696. package/build/esm/array/contains/index.js +10 -0
  697. package/build/esm/array/contains/index.js.map +1 -1
  698. package/build/esm/array/contains/shim.js +1 -10
  699. package/build/esm/array/contains/shim.js.map +1 -1
  700. package/build/esm/array/count/index.js +12 -3
  701. package/build/esm/array/count/index.js.map +1 -1
  702. package/build/esm/array/count/shim.js +1 -11
  703. package/build/esm/array/count/shim.js.map +1 -1
  704. package/build/esm/array/countBy/index.js +10 -0
  705. package/build/esm/array/countBy/index.js.map +1 -1
  706. package/build/esm/array/countBy/shim.js +1 -12
  707. package/build/esm/array/countBy/shim.js.map +1 -1
  708. package/build/esm/array/crossJoin/index.js +9 -1
  709. package/build/esm/array/crossJoin/index.js.map +1 -1
  710. package/build/esm/array/crossJoin/shim.js +1 -11
  711. package/build/esm/array/crossJoin/shim.js.map +1 -1
  712. package/build/esm/array/deepFlatten/index.js +7 -1
  713. package/build/esm/array/deepFlatten/index.js.map +1 -1
  714. package/build/esm/array/deepFlatten/shim.js +1 -9
  715. package/build/esm/array/deepFlatten/shim.js.map +1 -1
  716. package/build/esm/array/diff/index.js +14 -2
  717. package/build/esm/array/diff/index.js.map +1 -1
  718. package/build/esm/array/diff/shim.js +1 -14
  719. package/build/esm/array/diff/shim.js.map +1 -1
  720. package/build/esm/array/distinct/index.js +16 -4
  721. package/build/esm/array/distinct/index.js.map +1 -1
  722. package/build/esm/array/distinct/shim.js +1 -12
  723. package/build/esm/array/distinct/shim.js.map +1 -1
  724. package/build/esm/array/distinctBy/index.js +12 -5
  725. package/build/esm/array/distinctBy/index.js.map +1 -1
  726. package/build/esm/array/distinctBy/shim.js +1 -10
  727. package/build/esm/array/distinctBy/shim.js.map +1 -1
  728. package/build/esm/array/empty/index.js +8 -0
  729. package/build/esm/array/empty/index.js.map +1 -1
  730. package/build/esm/array/empty/shim.js +1 -10
  731. package/build/esm/array/empty/shim.js.map +1 -1
  732. package/build/esm/array/equals/index.js +8 -1
  733. package/build/esm/array/equals/index.js.map +1 -1
  734. package/build/esm/array/equals/shim.js +1 -10
  735. package/build/esm/array/equals/shim.js.map +1 -1
  736. package/build/esm/array/everyNth/index.js +7 -0
  737. package/build/esm/array/everyNth/index.js.map +1 -1
  738. package/build/esm/array/everyNth/shim.js +1 -9
  739. package/build/esm/array/everyNth/shim.js.map +1 -1
  740. package/build/esm/array/first/index.js +6 -0
  741. package/build/esm/array/first/index.js.map +1 -1
  742. package/build/esm/array/first/shim.js +1 -9
  743. package/build/esm/array/first/shim.js.map +1 -1
  744. package/build/esm/array/flatten/index.js +10 -2
  745. package/build/esm/array/flatten/index.js.map +1 -1
  746. package/build/esm/array/flatten/shim.js +1 -11
  747. package/build/esm/array/flatten/shim.js.map +1 -1
  748. package/build/esm/array/get/index.js +10 -0
  749. package/build/esm/array/get/index.js.map +1 -1
  750. package/build/esm/array/get/shim.js +1 -12
  751. package/build/esm/array/get/shim.js.map +1 -1
  752. package/build/esm/array/groupBy/index.js +11 -1
  753. package/build/esm/array/groupBy/index.js.map +1 -1
  754. package/build/esm/array/groupBy/shim.js +1 -11
  755. package/build/esm/array/groupBy/shim.js.map +1 -1
  756. package/build/esm/array/implode/index.js +4 -2
  757. package/build/esm/array/implode/index.js.map +1 -1
  758. package/build/esm/array/implode/shim.js +1 -12
  759. package/build/esm/array/implode/shim.js.map +1 -1
  760. package/build/esm/array/index.js.map +1 -1
  761. package/build/esm/array/indexOfAll/index.js +9 -0
  762. package/build/esm/array/indexOfAll/index.js.map +1 -1
  763. package/build/esm/array/indexOfAll/shim.js +1 -11
  764. package/build/esm/array/indexOfAll/shim.js.map +1 -1
  765. package/build/esm/array/initial/index.js +5 -0
  766. package/build/esm/array/initial/index.js.map +1 -1
  767. package/build/esm/array/initial/shim.js +1 -9
  768. package/build/esm/array/initial/shim.js.map +1 -1
  769. package/build/esm/array/intersect/index.js +8 -1
  770. package/build/esm/array/intersect/index.js.map +1 -1
  771. package/build/esm/array/intersect/shim.js +1 -10
  772. package/build/esm/array/intersect/shim.js.map +1 -1
  773. package/build/esm/array/isEmpty/index.js +7 -0
  774. package/build/esm/array/isEmpty/index.js.map +1 -1
  775. package/build/esm/array/isEmpty/shim.js +1 -10
  776. package/build/esm/array/isEmpty/shim.js.map +1 -1
  777. package/build/esm/array/last/index.js +6 -0
  778. package/build/esm/array/last/index.js.map +1 -1
  779. package/build/esm/array/last/shim.js +1 -9
  780. package/build/esm/array/last/shim.js.map +1 -1
  781. package/build/esm/array/limit/index.js +9 -2
  782. package/build/esm/array/limit/index.js.map +1 -1
  783. package/build/esm/array/limit/shim.js +2 -21
  784. package/build/esm/array/limit/shim.js.map +1 -1
  785. package/build/esm/array/max/index.js +1 -1
  786. package/build/esm/array/max/index.js.map +1 -1
  787. package/build/esm/array/max/shim.js +1 -12
  788. package/build/esm/array/max/shim.js.map +1 -1
  789. package/build/esm/array/median/index.js +1 -1
  790. package/build/esm/array/median/index.js.map +1 -1
  791. package/build/esm/array/median/shim.js +1 -11
  792. package/build/esm/array/median/shim.js.map +1 -1
  793. package/build/esm/array/merge/index.js +8 -0
  794. package/build/esm/array/merge/index.js.map +1 -1
  795. package/build/esm/array/merge/shim.js +1 -10
  796. package/build/esm/array/merge/shim.js.map +1 -1
  797. package/build/esm/array/min/index.js +1 -1
  798. package/build/esm/array/min/index.js.map +1 -1
  799. package/build/esm/array/min/shim.js +1 -12
  800. package/build/esm/array/min/shim.js.map +1 -1
  801. package/build/esm/array/nest/index.js +24 -5
  802. package/build/esm/array/nest/index.js.map +1 -1
  803. package/build/esm/array/nest/shim.js +1 -18
  804. package/build/esm/array/nest/shim.js.map +1 -1
  805. package/build/esm/array/orderBy/index.js +11 -9
  806. package/build/esm/array/orderBy/index.js.map +1 -1
  807. package/build/esm/array/orderBy/shim.js +1 -13
  808. package/build/esm/array/orderBy/shim.js.map +1 -1
  809. package/build/esm/array/pad/index.js +10 -0
  810. package/build/esm/array/pad/index.js.map +1 -1
  811. package/build/esm/array/pad/shim.js +1 -12
  812. package/build/esm/array/pad/shim.js.map +1 -1
  813. package/build/esm/array/partition/index.js +17 -1
  814. package/build/esm/array/partition/index.js.map +1 -1
  815. package/build/esm/array/partition/shim.js +1 -17
  816. package/build/esm/array/partition/shim.js.map +1 -1
  817. package/build/esm/array/pluck/index.js +11 -1
  818. package/build/esm/array/pluck/index.js.map +1 -1
  819. package/build/esm/array/pluck/shim.js +1 -11
  820. package/build/esm/array/pluck/shim.js.map +1 -1
  821. package/build/esm/array/prepend/index.js +8 -0
  822. package/build/esm/array/prepend/index.js.map +1 -1
  823. package/build/esm/array/prepend/shim.js +1 -10
  824. package/build/esm/array/prepend/shim.js.map +1 -1
  825. package/build/esm/array/pull/index.js +10 -2
  826. package/build/esm/array/pull/index.js.map +1 -1
  827. package/build/esm/array/pull/shim.js +1 -10
  828. package/build/esm/array/pull/shim.js.map +1 -1
  829. package/build/esm/array/range/index.js +14 -1
  830. package/build/esm/array/range/index.js.map +1 -1
  831. package/build/esm/array/range/shim.js +0 -14
  832. package/build/esm/array/range/shim.js.map +1 -1
  833. package/build/esm/array/repeat/index.js +7 -0
  834. package/build/esm/array/repeat/index.js.map +1 -1
  835. package/build/esm/array/repeat/shim.js +0 -10
  836. package/build/esm/array/repeat/shim.js.map +1 -1
  837. package/build/esm/array/sample/index.js +5 -0
  838. package/build/esm/array/sample/index.js.map +1 -1
  839. package/build/esm/array/sample/shim.js +1 -9
  840. package/build/esm/array/sample/shim.js.map +1 -1
  841. package/build/esm/array/shim.js +0 -1
  842. package/build/esm/array/shim.js.map +1 -1
  843. package/build/esm/array/shuffle/index.js +6 -0
  844. package/build/esm/array/shuffle/index.js.map +1 -1
  845. package/build/esm/array/shuffle/shim.js +0 -9
  846. package/build/esm/array/shuffle/shim.js.map +1 -1
  847. package/build/esm/array/skip/index.js +7 -0
  848. package/build/esm/array/skip/index.js.map +1 -1
  849. package/build/esm/array/skip/shim.js +1 -20
  850. package/build/esm/array/skip/shim.js.map +1 -1
  851. package/build/esm/array/sortBy/index.js +10 -0
  852. package/build/esm/array/sortBy/index.js.map +1 -1
  853. package/build/esm/array/sortBy/shim.js +0 -11
  854. package/build/esm/array/sortBy/shim.js.map +1 -1
  855. package/build/esm/array/sum/index.js +17 -8
  856. package/build/esm/array/sum/index.js.map +1 -1
  857. package/build/esm/array/sum/shim.js +0 -11
  858. package/build/esm/array/sum/shim.js.map +1 -1
  859. package/build/esm/array/tail/index.js +5 -0
  860. package/build/esm/array/tail/index.js.map +1 -1
  861. package/build/esm/array/tail/shim.js +1 -9
  862. package/build/esm/array/tail/shim.js.map +1 -1
  863. package/build/esm/array/toCSV/index.js +9 -0
  864. package/build/esm/array/toCSV/index.js.map +1 -1
  865. package/build/esm/array/toCSV/shim.js +1 -11
  866. package/build/esm/array/toCSV/shim.js.map +1 -1
  867. package/build/esm/array/union/index.js +7 -0
  868. package/build/esm/array/union/index.js.map +1 -1
  869. package/build/esm/array/union/shim.js +1 -10
  870. package/build/esm/array/union/shim.js.map +1 -1
  871. package/build/esm/array/unwind/index.js +12 -1
  872. package/build/esm/array/unwind/index.js.map +1 -1
  873. package/build/esm/array/unwind/shim.js +1 -11
  874. package/build/esm/array/unwind/shim.js.map +1 -1
  875. package/build/esm/array/where/index.js +35 -29
  876. package/build/esm/array/where/index.js.map +1 -1
  877. package/build/esm/array/where/shim.js +1 -15
  878. package/build/esm/array/where/shim.js.map +1 -1
  879. package/build/esm/array/whereBetween/index.js +10 -5
  880. package/build/esm/array/whereBetween/index.js.map +1 -1
  881. package/build/esm/array/whereBetween/shim.js +1 -13
  882. package/build/esm/array/whereBetween/shim.js.map +1 -1
  883. package/build/esm/array/whereIn/index.js +4 -4
  884. package/build/esm/array/whereIn/index.js.map +1 -1
  885. package/build/esm/array/whereIn/shim.js +1 -12
  886. package/build/esm/array/whereIn/shim.js.map +1 -1
  887. package/build/esm/array/whereLike/index.js +4 -4
  888. package/build/esm/array/whereLike/index.js.map +1 -1
  889. package/build/esm/array/whereLike/shim.js +1 -13
  890. package/build/esm/array/whereLike/shim.js.map +1 -1
  891. package/build/esm/array/whereNotBetween/index.js +10 -5
  892. package/build/esm/array/whereNotBetween/index.js.map +1 -1
  893. package/build/esm/array/whereNotBetween/shim.js +1 -13
  894. package/build/esm/array/whereNotBetween/shim.js.map +1 -1
  895. package/build/esm/array/whereNotIn/index.js +4 -4
  896. package/build/esm/array/whereNotIn/index.js.map +1 -1
  897. package/build/esm/array/whereNotIn/shim.js +1 -12
  898. package/build/esm/array/whereNotIn/shim.js.map +1 -1
  899. package/build/esm/array/whereNotLike/index.js +4 -4
  900. package/build/esm/array/whereNotLike/index.js.map +1 -1
  901. package/build/esm/array/whereNotLike/shim.js +1 -12
  902. package/build/esm/array/whereNotLike/shim.js.map +1 -1
  903. package/build/esm/array/whereNotNull/index.js +10 -2
  904. package/build/esm/array/whereNotNull/index.js.map +1 -1
  905. package/build/esm/array/whereNotNull/shim.js +1 -11
  906. package/build/esm/array/whereNotNull/shim.js.map +1 -1
  907. package/build/esm/array/whereNull/index.js +10 -2
  908. package/build/esm/array/whereNull/index.js.map +1 -1
  909. package/build/esm/array/whereNull/shim.js +1 -11
  910. package/build/esm/array/whereNull/shim.js.map +1 -1
  911. package/build/esm/array/zip/index.js +10 -3
  912. package/build/esm/array/zip/index.js.map +1 -1
  913. package/build/esm/array/zip/shim.js +1 -11
  914. package/build/esm/array/zip/shim.js.map +1 -1
  915. package/build/esm/array/zipObject/index.js +14 -1
  916. package/build/esm/array/zipObject/index.js.map +1 -1
  917. package/build/esm/array/zipObject/shim.js +1 -12
  918. package/build/esm/array/zipObject/shim.js.map +1 -1
  919. package/build/esm/boolean/isBoolean/index.js +8 -0
  920. package/build/esm/boolean/isBoolean/index.js.map +1 -1
  921. package/build/esm/boolean/isBoolean/shim.js +0 -10
  922. package/build/esm/boolean/isBoolean/shim.js.map +1 -1
  923. package/build/esm/boolean/shim.js +0 -1
  924. package/build/esm/boolean/shim.js.map +1 -1
  925. package/build/esm/date/equals/index.js +7 -0
  926. package/build/esm/date/equals/index.js.map +1 -1
  927. package/build/esm/date/equals/shim.js +1 -10
  928. package/build/esm/date/equals/shim.js.map +1 -1
  929. package/build/esm/date/isDate/index.js +10 -2
  930. package/build/esm/date/isDate/index.js.map +1 -1
  931. package/build/esm/date/isDate/shim.js +0 -10
  932. package/build/esm/date/isDate/shim.js.map +1 -1
  933. package/build/esm/date/shim.js +0 -1
  934. package/build/esm/date/shim.js.map +1 -1
  935. package/build/esm/date/today/index.js +8 -2
  936. package/build/esm/date/today/index.js.map +1 -1
  937. package/build/esm/date/today/shim.js +0 -8
  938. package/build/esm/date/today/shim.js.map +1 -1
  939. package/build/esm/date/tomorrow/index.js +8 -2
  940. package/build/esm/date/tomorrow/index.js.map +1 -1
  941. package/build/esm/date/tomorrow/shim.js +0 -8
  942. package/build/esm/date/tomorrow/shim.js.map +1 -1
  943. package/build/esm/date/yesterday/index.js +8 -2
  944. package/build/esm/date/yesterday/index.js.map +1 -1
  945. package/build/esm/date/yesterday/shim.js +0 -8
  946. package/build/esm/date/yesterday/shim.js.map +1 -1
  947. package/build/esm/function/cache/index.js +9 -1
  948. package/build/esm/function/cache/index.js.map +1 -1
  949. package/build/esm/function/cache/shim.js +0 -11
  950. package/build/esm/function/cache/shim.js.map +1 -1
  951. package/build/esm/function/defer/index.js +8 -0
  952. package/build/esm/function/defer/index.js.map +1 -1
  953. package/build/esm/function/defer/shim.js +1 -11
  954. package/build/esm/function/defer/shim.js.map +1 -1
  955. package/build/esm/function/isFunction/index.js +8 -0
  956. package/build/esm/function/isFunction/index.js.map +1 -1
  957. package/build/esm/function/isFunction/shim.js +0 -10
  958. package/build/esm/function/isFunction/shim.js.map +1 -1
  959. package/build/esm/function/once/index.js +9 -0
  960. package/build/esm/function/once/index.js.map +1 -1
  961. package/build/esm/function/once/shim.js +1 -12
  962. package/build/esm/function/once/shim.js.map +1 -1
  963. package/build/esm/function/shim.js +0 -1
  964. package/build/esm/function/shim.js.map +1 -1
  965. package/build/esm/globals/isBrowser/index.js +6 -0
  966. package/build/esm/globals/isBrowser/index.js.map +1 -1
  967. package/build/esm/globals/isBrowser/shim.js +0 -9
  968. package/build/esm/globals/isBrowser/shim.js.map +1 -1
  969. package/build/esm/globals/shim.js +0 -1
  970. package/build/esm/globals/shim.js.map +1 -1
  971. package/build/esm/index.js +1 -0
  972. package/build/esm/index.js.map +1 -1
  973. package/build/esm/math/average/index.js +8 -0
  974. package/build/esm/math/average/index.js.map +1 -1
  975. package/build/esm/math/average/shim.js +1 -22
  976. package/build/esm/math/average/shim.js.map +1 -1
  977. package/build/esm/math/degreesToRads/index.js +8 -2
  978. package/build/esm/math/degreesToRads/index.js.map +1 -1
  979. package/build/esm/math/degreesToRads/shim.js +0 -9
  980. package/build/esm/math/degreesToRads/shim.js.map +1 -1
  981. package/build/esm/math/factorial/index.js +6 -0
  982. package/build/esm/math/factorial/index.js.map +1 -1
  983. package/build/esm/math/factorial/shim.js +0 -9
  984. package/build/esm/math/factorial/shim.js.map +1 -1
  985. package/build/esm/math/fibonacci/index.js +6 -0
  986. package/build/esm/math/fibonacci/index.js.map +1 -1
  987. package/build/esm/math/fibonacci/shim.js +0 -9
  988. package/build/esm/math/fibonacci/shim.js.map +1 -1
  989. package/build/esm/math/gcd/index.js +10 -2
  990. package/build/esm/math/gcd/index.js.map +1 -1
  991. package/build/esm/math/gcd/shim.js +0 -10
  992. package/build/esm/math/gcd/shim.js.map +1 -1
  993. package/build/esm/math/isDivisible/index.js +7 -0
  994. package/build/esm/math/isDivisible/index.js.map +1 -1
  995. package/build/esm/math/isDivisible/shim.js +0 -10
  996. package/build/esm/math/isDivisible/shim.js.map +1 -1
  997. package/build/esm/math/isEven/index.js +6 -0
  998. package/build/esm/math/isEven/index.js.map +1 -1
  999. package/build/esm/math/isEven/shim.js +0 -9
  1000. package/build/esm/math/isEven/shim.js.map +1 -1
  1001. package/build/esm/math/isPrime/index.js +6 -0
  1002. package/build/esm/math/isPrime/index.js.map +1 -1
  1003. package/build/esm/math/isPrime/shim.js +0 -9
  1004. package/build/esm/math/isPrime/shim.js.map +1 -1
  1005. package/build/esm/math/lcm/index.js +10 -3
  1006. package/build/esm/math/lcm/index.js.map +1 -1
  1007. package/build/esm/math/lcm/shim.js +0 -10
  1008. package/build/esm/math/lcm/shim.js.map +1 -1
  1009. package/build/esm/math/primes/index.js +7 -1
  1010. package/build/esm/math/primes/index.js.map +1 -1
  1011. package/build/esm/math/primes/shim.js +0 -9
  1012. package/build/esm/math/primes/shim.js.map +1 -1
  1013. package/build/esm/math/radsToDegrees/index.js +8 -2
  1014. package/build/esm/math/radsToDegrees/index.js.map +1 -1
  1015. package/build/esm/math/radsToDegrees/shim.js +0 -9
  1016. package/build/esm/math/radsToDegrees/shim.js.map +1 -1
  1017. package/build/esm/math/shim.js +0 -1
  1018. package/build/esm/math/shim.js.map +1 -1
  1019. package/build/esm/number/digitize/index.js +6 -1
  1020. package/build/esm/number/digitize/index.js.map +1 -1
  1021. package/build/esm/number/digitize/shim.js +1 -9
  1022. package/build/esm/number/digitize/shim.js.map +1 -1
  1023. package/build/esm/number/equals/index.js +7 -0
  1024. package/build/esm/number/equals/index.js.map +1 -1
  1025. package/build/esm/number/equals/shim.js +1 -10
  1026. package/build/esm/number/equals/shim.js.map +1 -1
  1027. package/build/esm/number/inRange/index.js +8 -0
  1028. package/build/esm/number/inRange/index.js.map +1 -1
  1029. package/build/esm/number/inRange/shim.js +1 -11
  1030. package/build/esm/number/inRange/shim.js.map +1 -1
  1031. package/build/esm/number/isNumber/index.js +8 -0
  1032. package/build/esm/number/isNumber/index.js.map +1 -1
  1033. package/build/esm/number/isNumber/shim.js +0 -10
  1034. package/build/esm/number/isNumber/shim.js.map +1 -1
  1035. package/build/esm/number/shim.js +0 -1
  1036. package/build/esm/number/shim.js.map +1 -1
  1037. package/build/esm/object/assign/index.js +7 -0
  1038. package/build/esm/object/assign/index.js.map +1 -1
  1039. package/build/esm/object/assign/shim.js +1 -10
  1040. package/build/esm/object/assign/shim.js.map +1 -1
  1041. package/build/esm/object/camelCaseKeys/index.js +7 -0
  1042. package/build/esm/object/camelCaseKeys/index.js.map +1 -1
  1043. package/build/esm/object/camelCaseKeys/shim.js +1 -10
  1044. package/build/esm/object/camelCaseKeys/shim.js.map +1 -1
  1045. package/build/esm/object/clone/index.js +9 -1
  1046. package/build/esm/object/clone/index.js.map +1 -1
  1047. package/build/esm/object/clone/shim.js +1 -11
  1048. package/build/esm/object/clone/shim.js.map +1 -1
  1049. package/build/esm/object/defaults/index.js +8 -1
  1050. package/build/esm/object/defaults/index.js.map +1 -1
  1051. package/build/esm/object/defaults/shim.js +1 -10
  1052. package/build/esm/object/defaults/shim.js.map +1 -1
  1053. package/build/esm/object/dig/index.js +17 -1
  1054. package/build/esm/object/dig/index.js.map +1 -1
  1055. package/build/esm/object/dig/shim.js +1 -18
  1056. package/build/esm/object/dig/shim.js.map +1 -1
  1057. package/build/esm/object/empty/index.js +12 -5
  1058. package/build/esm/object/empty/index.js.map +1 -1
  1059. package/build/esm/object/empty/shim.js +1 -10
  1060. package/build/esm/object/empty/shim.js.map +1 -1
  1061. package/build/esm/object/equals/index.js +12 -4
  1062. package/build/esm/object/equals/index.js.map +1 -1
  1063. package/build/esm/object/equals/shim.js +1 -10
  1064. package/build/esm/object/equals/shim.js.map +1 -1
  1065. package/build/esm/object/flatten/index.js +7 -1
  1066. package/build/esm/object/flatten/index.js.map +1 -1
  1067. package/build/esm/object/flatten/shim.js +1 -9
  1068. package/build/esm/object/flatten/shim.js.map +1 -1
  1069. package/build/esm/object/forEach/index.js +12 -1
  1070. package/build/esm/object/forEach/index.js.map +1 -1
  1071. package/build/esm/object/forEach/shim.js +1 -13
  1072. package/build/esm/object/forEach/shim.js.map +1 -1
  1073. package/build/esm/object/get/index.js +7 -0
  1074. package/build/esm/object/get/index.js.map +1 -1
  1075. package/build/esm/object/get/shim.js +1 -10
  1076. package/build/esm/object/get/shim.js.map +1 -1
  1077. package/build/esm/object/invert/index.js +6 -0
  1078. package/build/esm/object/invert/index.js.map +1 -1
  1079. package/build/esm/object/invert/shim.js +1 -9
  1080. package/build/esm/object/invert/shim.js.map +1 -1
  1081. package/build/esm/object/isEmpty/index.js +8 -0
  1082. package/build/esm/object/isEmpty/index.js.map +1 -1
  1083. package/build/esm/object/isEmpty/shim.js +1 -10
  1084. package/build/esm/object/isEmpty/shim.js.map +1 -1
  1085. package/build/esm/object/isObject/index.js +8 -0
  1086. package/build/esm/object/isObject/index.js.map +1 -1
  1087. package/build/esm/object/isObject/shim.js +0 -10
  1088. package/build/esm/object/isObject/shim.js.map +1 -1
  1089. package/build/esm/object/isObjectLike/index.js +8 -0
  1090. package/build/esm/object/isObjectLike/index.js.map +1 -1
  1091. package/build/esm/object/isObjectLike/shim.js +0 -10
  1092. package/build/esm/object/isObjectLike/shim.js.map +1 -1
  1093. package/build/esm/object/isPlainObject/index.js +9 -2
  1094. package/build/esm/object/isPlainObject/index.js.map +1 -1
  1095. package/build/esm/object/isPlainObject/shim.js +0 -10
  1096. package/build/esm/object/isPlainObject/shim.js.map +1 -1
  1097. package/build/esm/object/kebabCaseKeys/index.js +7 -0
  1098. package/build/esm/object/kebabCaseKeys/index.js.map +1 -1
  1099. package/build/esm/object/kebabCaseKeys/shim.js +1 -10
  1100. package/build/esm/object/kebabCaseKeys/shim.js.map +1 -1
  1101. package/build/esm/object/keys/index.js +6 -0
  1102. package/build/esm/object/keys/index.js.map +1 -1
  1103. package/build/esm/object/keys/shim.js +1 -9
  1104. package/build/esm/object/keys/shim.js.map +1 -1
  1105. package/build/esm/object/lowerCaseKeys/index.js +6 -0
  1106. package/build/esm/object/lowerCaseKeys/index.js.map +1 -1
  1107. package/build/esm/object/lowerCaseKeys/shim.js +1 -10
  1108. package/build/esm/object/lowerCaseKeys/shim.js.map +1 -1
  1109. package/build/esm/object/map/index.js +12 -0
  1110. package/build/esm/object/map/index.js.map +1 -1
  1111. package/build/esm/object/map/shim.js +0 -14
  1112. package/build/esm/object/map/shim.js.map +1 -1
  1113. package/build/esm/object/mapKeys/index.js +8 -0
  1114. package/build/esm/object/mapKeys/index.js.map +1 -1
  1115. package/build/esm/object/mapKeys/shim.js +1 -11
  1116. package/build/esm/object/mapKeys/shim.js.map +1 -1
  1117. package/build/esm/object/mapValues/index.js +12 -0
  1118. package/build/esm/object/mapValues/index.js.map +1 -1
  1119. package/build/esm/object/mapValues/shim.js +1 -15
  1120. package/build/esm/object/mapValues/shim.js.map +1 -1
  1121. package/build/esm/object/merge/index.js +17 -1
  1122. package/build/esm/object/merge/index.js.map +1 -1
  1123. package/build/esm/object/merge/shim.js +1 -19
  1124. package/build/esm/object/merge/shim.js.map +1 -1
  1125. package/build/esm/object/omit/index.js +17 -3
  1126. package/build/esm/object/omit/index.js.map +1 -1
  1127. package/build/esm/object/omit/shim.js +1 -13
  1128. package/build/esm/object/omit/shim.js.map +1 -1
  1129. package/build/esm/object/reduce/index.js +11 -1
  1130. package/build/esm/object/reduce/index.js.map +1 -1
  1131. package/build/esm/object/reduce/shim.js +1 -12
  1132. package/build/esm/object/reduce/shim.js.map +1 -1
  1133. package/build/esm/object/set/index.js +11 -2
  1134. package/build/esm/object/set/index.js.map +1 -1
  1135. package/build/esm/object/set/shim.js +1 -12
  1136. package/build/esm/object/set/shim.js.map +1 -1
  1137. package/build/esm/object/shim.js +0 -1
  1138. package/build/esm/object/shim.js.map +1 -1
  1139. package/build/esm/object/size/index.js +5 -0
  1140. package/build/esm/object/size/index.js.map +1 -1
  1141. package/build/esm/object/size/shim.js +1 -9
  1142. package/build/esm/object/size/shim.js.map +1 -1
  1143. package/build/esm/object/snakeCaseKeys/index.js +7 -0
  1144. package/build/esm/object/snakeCaseKeys/index.js.map +1 -1
  1145. package/build/esm/object/snakeCaseKeys/shim.js +1 -10
  1146. package/build/esm/object/snakeCaseKeys/shim.js.map +1 -1
  1147. package/build/esm/object/values/index.js +5 -0
  1148. package/build/esm/object/values/index.js.map +1 -1
  1149. package/build/esm/object/values/shim.js +1 -9
  1150. package/build/esm/object/values/shim.js.map +1 -1
  1151. package/build/esm/string/base64/index.js +5 -0
  1152. package/build/esm/string/base64/index.js.map +1 -1
  1153. package/build/esm/string/base64/shim.js +1 -9
  1154. package/build/esm/string/base64/shim.js.map +1 -1
  1155. package/build/esm/string/base64Decode/index.js +5 -0
  1156. package/build/esm/string/base64Decode/index.js.map +1 -1
  1157. package/build/esm/string/base64Decode/shim.js +1 -9
  1158. package/build/esm/string/base64Decode/shim.js.map +1 -1
  1159. package/build/esm/string/camelCase/index.js +14 -2
  1160. package/build/esm/string/camelCase/index.js.map +1 -1
  1161. package/build/esm/string/camelCase/shim.js +1 -13
  1162. package/build/esm/string/camelCase/shim.js.map +1 -1
  1163. package/build/esm/string/capitalize/index.js +11 -2
  1164. package/build/esm/string/capitalize/index.js.map +1 -1
  1165. package/build/esm/string/capitalize/shim.js +1 -11
  1166. package/build/esm/string/capitalize/shim.js.map +1 -1
  1167. package/build/esm/string/chars/index.js +5 -0
  1168. package/build/esm/string/chars/index.js.map +1 -1
  1169. package/build/esm/string/chars/shim.js +1 -9
  1170. package/build/esm/string/chars/shim.js.map +1 -1
  1171. package/build/esm/string/contains/index.js +12 -2
  1172. package/build/esm/string/contains/index.js.map +1 -1
  1173. package/build/esm/string/contains/shim.js +1 -12
  1174. package/build/esm/string/contains/shim.js.map +1 -1
  1175. package/build/esm/string/decapitalize/index.js +11 -2
  1176. package/build/esm/string/decapitalize/index.js.map +1 -1
  1177. package/build/esm/string/decapitalize/shim.js +1 -11
  1178. package/build/esm/string/decapitalize/shim.js.map +1 -1
  1179. package/build/esm/string/equals/index.js +7 -0
  1180. package/build/esm/string/equals/index.js.map +1 -1
  1181. package/build/esm/string/equals/shim.js +1 -10
  1182. package/build/esm/string/equals/shim.js.map +1 -1
  1183. package/build/esm/string/forEach/index.js +8 -1
  1184. package/build/esm/string/forEach/index.js.map +1 -1
  1185. package/build/esm/string/forEach/shim.js +1 -10
  1186. package/build/esm/string/forEach/shim.js.map +1 -1
  1187. package/build/esm/string/humanize/index.js +11 -3
  1188. package/build/esm/string/humanize/index.js.map +1 -1
  1189. package/build/esm/string/humanize/shim.js +1 -11
  1190. package/build/esm/string/humanize/shim.js.map +1 -1
  1191. package/build/esm/string/isEmpty/index.js +8 -0
  1192. package/build/esm/string/isEmpty/index.js.map +1 -1
  1193. package/build/esm/string/isEmpty/shim.js +1 -10
  1194. package/build/esm/string/isEmpty/shim.js.map +1 -1
  1195. package/build/esm/string/isString/index.js +8 -0
  1196. package/build/esm/string/isString/index.js.map +1 -1
  1197. package/build/esm/string/isString/shim.js +0 -10
  1198. package/build/esm/string/isString/shim.js.map +1 -1
  1199. package/build/esm/string/kebabCase/index.js +18 -2
  1200. package/build/esm/string/kebabCase/index.js.map +1 -1
  1201. package/build/esm/string/kebabCase/shim.js +1 -15
  1202. package/build/esm/string/kebabCase/shim.js.map +1 -1
  1203. package/build/esm/string/lines/index.js +6 -0
  1204. package/build/esm/string/lines/index.js.map +1 -1
  1205. package/build/esm/string/lines/shim.js +1 -9
  1206. package/build/esm/string/lines/shim.js.map +1 -1
  1207. package/build/esm/string/map/index.js +9 -1
  1208. package/build/esm/string/map/index.js.map +1 -1
  1209. package/build/esm/string/map/shim.js +1 -10
  1210. package/build/esm/string/map/shim.js.map +1 -1
  1211. package/build/esm/string/mask/index.js +14 -2
  1212. package/build/esm/string/mask/index.js.map +1 -1
  1213. package/build/esm/string/mask/shim.js +1 -13
  1214. package/build/esm/string/mask/shim.js.map +1 -1
  1215. package/build/esm/string/pad/index.js +10 -0
  1216. package/build/esm/string/pad/index.js.map +1 -1
  1217. package/build/esm/string/pad/shim.js +1 -12
  1218. package/build/esm/string/pad/shim.js.map +1 -1
  1219. package/build/esm/string/parseInt/index.js +7 -0
  1220. package/build/esm/string/parseInt/index.js.map +1 -1
  1221. package/build/esm/string/parseInt/shim.js +1 -10
  1222. package/build/esm/string/parseInt/shim.js.map +1 -1
  1223. package/build/esm/string/pluralize/index.js +51 -29
  1224. package/build/esm/string/pluralize/index.js.map +1 -1
  1225. package/build/esm/string/pluralize/shim.js +1 -15
  1226. package/build/esm/string/pluralize/shim.js.map +1 -1
  1227. package/build/esm/string/reduce/index.js +11 -1
  1228. package/build/esm/string/reduce/index.js.map +1 -1
  1229. package/build/esm/string/reduce/shim.js +1 -11
  1230. package/build/esm/string/reduce/shim.js.map +1 -1
  1231. package/build/esm/string/repeat/index.js +7 -0
  1232. package/build/esm/string/repeat/index.js.map +1 -1
  1233. package/build/esm/string/repeat/shim.js +0 -10
  1234. package/build/esm/string/repeat/shim.js.map +1 -1
  1235. package/build/esm/string/reverse/index.js +6 -0
  1236. package/build/esm/string/reverse/index.js.map +1 -1
  1237. package/build/esm/string/reverse/shim.js +1 -9
  1238. package/build/esm/string/reverse/shim.js.map +1 -1
  1239. package/build/esm/string/shim.js +0 -1
  1240. package/build/esm/string/shim.js.map +1 -1
  1241. package/build/esm/string/snakeCase/index.js +18 -2
  1242. package/build/esm/string/snakeCase/index.js.map +1 -1
  1243. package/build/esm/string/snakeCase/shim.js +1 -15
  1244. package/build/esm/string/snakeCase/shim.js.map +1 -1
  1245. package/build/esm/string/swapCase/index.js +7 -1
  1246. package/build/esm/string/swapCase/index.js.map +1 -1
  1247. package/build/esm/string/swapCase/shim.js +1 -9
  1248. package/build/esm/string/swapCase/shim.js.map +1 -1
  1249. package/build/esm/string/truncate/index.js +10 -0
  1250. package/build/esm/string/truncate/index.js.map +1 -1
  1251. package/build/esm/string/truncate/shim.js +1 -12
  1252. package/build/esm/string/truncate/shim.js.map +1 -1
  1253. package/build/esm/string/words/index.js +9 -0
  1254. package/build/esm/string/words/index.js.map +1 -1
  1255. package/build/esm/string/words/shim.js +1 -11
  1256. package/build/esm/string/words/shim.js.map +1 -1
  1257. package/build/esm/utils.js +37 -24
  1258. package/build/esm/utils.js.map +1 -1
  1259. package/build/types/array/all/index.d.ts +10 -0
  1260. package/build/types/array/all/shim.d.ts +9 -0
  1261. package/build/types/array/any/index.d.ts +11 -0
  1262. package/build/types/array/any/shim.d.ts +10 -0
  1263. package/build/types/array/append/index.d.ts +8 -0
  1264. package/build/types/array/append/shim.d.ts +7 -0
  1265. package/build/types/array/average/index.d.ts +12 -3
  1266. package/build/types/array/average/shim.d.ts +20 -0
  1267. package/build/types/array/chunk/index.d.ts +7 -0
  1268. package/build/types/array/chunk/shim.d.ts +6 -0
  1269. package/build/types/array/clone/index.d.ts +7 -0
  1270. package/build/types/array/clone/shim.d.ts +6 -0
  1271. package/build/types/array/compact/index.d.ts +7 -1
  1272. package/build/types/array/compact/shim.d.ts +6 -1
  1273. package/build/types/array/contains/index.d.ts +10 -0
  1274. package/build/types/array/contains/shim.d.ts +9 -0
  1275. package/build/types/array/count/index.d.ts +9 -0
  1276. package/build/types/array/count/shim.d.ts +8 -0
  1277. package/build/types/array/countBy/index.d.ts +11 -3
  1278. package/build/types/array/countBy/shim.d.ts +10 -3
  1279. package/build/types/array/crossJoin/index.d.ts +9 -1
  1280. package/build/types/array/crossJoin/shim.d.ts +8 -1
  1281. package/build/types/array/deepFlatten/index.d.ts +7 -1
  1282. package/build/types/array/deepFlatten/shim.d.ts +5 -0
  1283. package/build/types/array/diff/index.d.ts +12 -0
  1284. package/build/types/array/diff/shim.d.ts +11 -0
  1285. package/build/types/array/distinct/index.d.ts +11 -0
  1286. package/build/types/array/distinct/shim.d.ts +10 -0
  1287. package/build/types/array/distinctBy/index.d.ts +7 -0
  1288. package/build/types/array/distinctBy/shim.d.ts +6 -0
  1289. package/build/types/array/empty/index.d.ts +8 -0
  1290. package/build/types/array/empty/shim.d.ts +7 -0
  1291. package/build/types/array/equals/index.d.ts +7 -0
  1292. package/build/types/array/equals/shim.d.ts +6 -0
  1293. package/build/types/array/everyNth/index.d.ts +7 -0
  1294. package/build/types/array/everyNth/shim.d.ts +6 -0
  1295. package/build/types/array/first/index.d.ts +6 -0
  1296. package/build/types/array/first/shim.d.ts +5 -0
  1297. package/build/types/array/flatten/index.d.ts +9 -0
  1298. package/build/types/array/flatten/shim.d.ts +8 -0
  1299. package/build/types/array/get/index.d.ts +11 -1
  1300. package/build/types/array/get/shim.d.ts +10 -1
  1301. package/build/types/array/groupBy/index.d.ts +10 -3
  1302. package/build/types/array/groupBy/shim.d.ts +9 -3
  1303. package/build/types/array/implode/index.d.ts +10 -1
  1304. package/build/types/array/implode/shim.d.ts +8 -0
  1305. package/build/types/array/index.d.ts +3 -3
  1306. package/build/types/array/indexOfAll/index.d.ts +9 -0
  1307. package/build/types/array/indexOfAll/shim.d.ts +8 -0
  1308. package/build/types/array/initial/index.d.ts +5 -0
  1309. package/build/types/array/initial/shim.d.ts +5 -0
  1310. package/build/types/array/intersect/index.d.ts +7 -0
  1311. package/build/types/array/intersect/shim.d.ts +6 -0
  1312. package/build/types/array/isEmpty/index.d.ts +7 -0
  1313. package/build/types/array/isEmpty/shim.d.ts +7 -0
  1314. package/build/types/array/last/index.d.ts +5 -0
  1315. package/build/types/array/last/shim.d.ts +5 -0
  1316. package/build/types/array/limit/index.d.ts +8 -1
  1317. package/build/types/array/limit/shim.d.ts +16 -2
  1318. package/build/types/array/max/index.d.ts +16 -1
  1319. package/build/types/array/max/shim.d.ts +10 -0
  1320. package/build/types/array/median/index.d.ts +14 -1
  1321. package/build/types/array/median/shim.d.ts +8 -0
  1322. package/build/types/array/merge/index.d.ts +8 -0
  1323. package/build/types/array/merge/shim.d.ts +7 -0
  1324. package/build/types/array/min/index.d.ts +16 -1
  1325. package/build/types/array/min/shim.d.ts +10 -0
  1326. package/build/types/array/nest/index.d.ts +16 -1
  1327. package/build/types/array/nest/shim.d.ts +15 -1
  1328. package/build/types/array/orderBy/index.d.ts +22 -4
  1329. package/build/types/array/orderBy/shim.d.ts +16 -1
  1330. package/build/types/array/pad/index.d.ts +10 -0
  1331. package/build/types/array/pad/shim.d.ts +9 -0
  1332. package/build/types/array/partition/index.d.ts +14 -0
  1333. package/build/types/array/partition/shim.d.ts +13 -0
  1334. package/build/types/array/pluck/index.d.ts +9 -0
  1335. package/build/types/array/pluck/shim.d.ts +8 -0
  1336. package/build/types/array/prepend/index.d.ts +8 -0
  1337. package/build/types/array/prepend/shim.d.ts +7 -0
  1338. package/build/types/array/pull/index.d.ts +8 -0
  1339. package/build/types/array/pull/shim.d.ts +7 -0
  1340. package/build/types/array/range/index.d.ts +13 -0
  1341. package/build/types/array/range/shim.d.ts +13 -0
  1342. package/build/types/array/repeat/index.d.ts +7 -0
  1343. package/build/types/array/repeat/shim.d.ts +7 -0
  1344. package/build/types/array/sample/index.d.ts +5 -0
  1345. package/build/types/array/sample/shim.d.ts +5 -0
  1346. package/build/types/array/shim.d.ts +0 -1
  1347. package/build/types/array/shuffle/index.d.ts +6 -0
  1348. package/build/types/array/shuffle/shim.d.ts +6 -0
  1349. package/build/types/array/skip/index.d.ts +7 -0
  1350. package/build/types/array/skip/shim.d.ts +15 -1
  1351. package/build/types/array/sortBy/index.d.ts +10 -0
  1352. package/build/types/array/sortBy/shim.d.ts +9 -0
  1353. package/build/types/array/sum/index.d.ts +12 -3
  1354. package/build/types/array/sum/shim.d.ts +10 -0
  1355. package/build/types/array/tail/index.d.ts +5 -0
  1356. package/build/types/array/tail/shim.d.ts +5 -0
  1357. package/build/types/array/toCSV/index.d.ts +9 -0
  1358. package/build/types/array/toCSV/shim.d.ts +8 -0
  1359. package/build/types/array/union/index.d.ts +7 -0
  1360. package/build/types/array/union/shim.d.ts +7 -1
  1361. package/build/types/array/unwind/index.d.ts +8 -0
  1362. package/build/types/array/unwind/shim.d.ts +7 -0
  1363. package/build/types/array/where/index.d.ts +36 -4
  1364. package/build/types/array/where/shim.d.ts +31 -3
  1365. package/build/types/array/whereBetween/index.d.ts +18 -1
  1366. package/build/types/array/whereBetween/shim.d.ts +15 -0
  1367. package/build/types/array/whereIn/index.d.ts +16 -1
  1368. package/build/types/array/whereIn/shim.d.ts +13 -0
  1369. package/build/types/array/whereLike/index.d.ts +17 -2
  1370. package/build/types/array/whereLike/shim.d.ts +15 -2
  1371. package/build/types/array/whereNotBetween/index.d.ts +18 -1
  1372. package/build/types/array/whereNotBetween/shim.d.ts +15 -0
  1373. package/build/types/array/whereNotIn/index.d.ts +16 -1
  1374. package/build/types/array/whereNotIn/shim.d.ts +13 -0
  1375. package/build/types/array/whereNotLike/index.d.ts +17 -2
  1376. package/build/types/array/whereNotLike/shim.d.ts +15 -2
  1377. package/build/types/array/whereNotNull/index.d.ts +9 -0
  1378. package/build/types/array/whereNotNull/shim.d.ts +8 -0
  1379. package/build/types/array/whereNull/index.d.ts +9 -0
  1380. package/build/types/array/whereNull/shim.d.ts +11 -0
  1381. package/build/types/array/zip/index.d.ts +9 -0
  1382. package/build/types/array/zip/shim.d.ts +8 -0
  1383. package/build/types/array/zipObject/index.d.ts +10 -0
  1384. package/build/types/array/zipObject/shim.d.ts +9 -0
  1385. package/build/types/boolean/isBoolean/index.d.ts +8 -0
  1386. package/build/types/boolean/isBoolean/shim.d.ts +8 -0
  1387. package/build/types/boolean/shim.d.ts +0 -1
  1388. package/build/types/date/equals/index.d.ts +7 -0
  1389. package/build/types/date/equals/shim.d.ts +6 -0
  1390. package/build/types/date/isDate/index.d.ts +8 -0
  1391. package/build/types/date/isDate/shim.d.ts +8 -0
  1392. package/build/types/date/shim.d.ts +0 -1
  1393. package/build/types/date/today/index.d.ts +5 -0
  1394. package/build/types/date/today/shim.d.ts +5 -0
  1395. package/build/types/date/tomorrow/index.d.ts +5 -0
  1396. package/build/types/date/tomorrow/shim.d.ts +5 -0
  1397. package/build/types/date/yesterday/index.d.ts +5 -0
  1398. package/build/types/date/yesterday/shim.d.ts +5 -0
  1399. package/build/types/function/cache/index.d.ts +8 -0
  1400. package/build/types/function/cache/shim.d.ts +8 -0
  1401. package/build/types/function/defer/index.d.ts +9 -1
  1402. package/build/types/function/defer/shim.d.ts +7 -0
  1403. package/build/types/function/isFunction/index.d.ts +8 -0
  1404. package/build/types/function/isFunction/shim.d.ts +8 -0
  1405. package/build/types/function/once/index.d.ts +10 -1
  1406. package/build/types/function/once/shim.d.ts +8 -0
  1407. package/build/types/function/shim.d.ts +0 -1
  1408. package/build/types/globals/isBrowser/index.d.ts +6 -0
  1409. package/build/types/globals/isBrowser/shim.d.ts +6 -0
  1410. package/build/types/globals/shim.d.ts +0 -1
  1411. package/build/types/index.d.ts +1 -0
  1412. package/build/types/math/average/index.d.ts +8 -0
  1413. package/build/types/math/average/shim.d.ts +18 -0
  1414. package/build/types/math/degreesToRads/index.d.ts +6 -0
  1415. package/build/types/math/degreesToRads/shim.d.ts +6 -0
  1416. package/build/types/math/factorial/index.d.ts +6 -0
  1417. package/build/types/math/factorial/shim.d.ts +6 -0
  1418. package/build/types/math/fibonacci/index.d.ts +6 -0
  1419. package/build/types/math/fibonacci/shim.d.ts +6 -0
  1420. package/build/types/math/gcd/index.d.ts +8 -0
  1421. package/build/types/math/gcd/shim.d.ts +8 -0
  1422. package/build/types/math/isDivisible/index.d.ts +7 -0
  1423. package/build/types/math/isDivisible/shim.d.ts +7 -0
  1424. package/build/types/math/isEven/index.d.ts +6 -0
  1425. package/build/types/math/isEven/shim.d.ts +6 -0
  1426. package/build/types/math/isPrime/index.d.ts +6 -0
  1427. package/build/types/math/isPrime/shim.d.ts +6 -0
  1428. package/build/types/math/lcm/index.d.ts +8 -0
  1429. package/build/types/math/lcm/shim.d.ts +8 -0
  1430. package/build/types/math/primes/index.d.ts +6 -0
  1431. package/build/types/math/primes/shim.d.ts +6 -0
  1432. package/build/types/math/radsToDegrees/index.d.ts +6 -0
  1433. package/build/types/math/radsToDegrees/shim.d.ts +6 -0
  1434. package/build/types/math/shim.d.ts +0 -1
  1435. package/build/types/number/digitize/index.d.ts +5 -0
  1436. package/build/types/number/digitize/shim.d.ts +5 -0
  1437. package/build/types/number/equals/index.d.ts +7 -0
  1438. package/build/types/number/equals/shim.d.ts +6 -0
  1439. package/build/types/number/inRange/index.d.ts +8 -0
  1440. package/build/types/number/inRange/shim.d.ts +7 -0
  1441. package/build/types/number/isNumber/index.d.ts +8 -0
  1442. package/build/types/number/isNumber/shim.d.ts +8 -0
  1443. package/build/types/number/shim.d.ts +0 -1
  1444. package/build/types/object/assign/index.d.ts +8 -1
  1445. package/build/types/object/assign/shim.d.ts +7 -1
  1446. package/build/types/object/camelCaseKeys/index.d.ts +7 -0
  1447. package/build/types/object/camelCaseKeys/shim.d.ts +6 -0
  1448. package/build/types/object/clone/index.d.ts +8 -0
  1449. package/build/types/object/clone/shim.d.ts +7 -0
  1450. package/build/types/object/defaults/index.d.ts +8 -1
  1451. package/build/types/object/defaults/shim.d.ts +7 -1
  1452. package/build/types/object/dig/index.d.ts +15 -0
  1453. package/build/types/object/dig/shim.d.ts +14 -0
  1454. package/build/types/object/empty/index.d.ts +8 -0
  1455. package/build/types/object/empty/shim.d.ts +7 -0
  1456. package/build/types/object/equals/index.d.ts +7 -0
  1457. package/build/types/object/equals/shim.d.ts +6 -0
  1458. package/build/types/object/flatten/index.d.ts +6 -0
  1459. package/build/types/object/flatten/shim.d.ts +5 -0
  1460. package/build/types/object/forEach/index.d.ts +11 -0
  1461. package/build/types/object/forEach/shim.d.ts +10 -0
  1462. package/build/types/object/get/index.d.ts +7 -0
  1463. package/build/types/object/get/shim.d.ts +6 -0
  1464. package/build/types/object/invert/index.d.ts +6 -0
  1465. package/build/types/object/invert/shim.d.ts +5 -0
  1466. package/build/types/object/isEmpty/index.d.ts +8 -0
  1467. package/build/types/object/isEmpty/shim.d.ts +7 -0
  1468. package/build/types/object/isObject/index.d.ts +8 -0
  1469. package/build/types/object/isObject/shim.d.ts +8 -0
  1470. package/build/types/object/isObjectLike/index.d.ts +8 -0
  1471. package/build/types/object/isObjectLike/shim.d.ts +8 -0
  1472. package/build/types/object/isPlainObject/index.d.ts +8 -0
  1473. package/build/types/object/isPlainObject/shim.d.ts +8 -0
  1474. package/build/types/object/kebabCaseKeys/index.d.ts +7 -0
  1475. package/build/types/object/kebabCaseKeys/shim.d.ts +6 -0
  1476. package/build/types/object/keys/index.d.ts +6 -0
  1477. package/build/types/object/keys/shim.d.ts +5 -0
  1478. package/build/types/object/lowerCaseKeys/index.d.ts +6 -0
  1479. package/build/types/object/lowerCaseKeys/shim.d.ts +6 -0
  1480. package/build/types/object/map/index.d.ts +12 -0
  1481. package/build/types/object/map/shim.d.ts +11 -0
  1482. package/build/types/object/mapKeys/index.d.ts +8 -0
  1483. package/build/types/object/mapKeys/shim.d.ts +7 -0
  1484. package/build/types/object/mapValues/index.d.ts +12 -0
  1485. package/build/types/object/mapValues/shim.d.ts +11 -0
  1486. package/build/types/object/merge/index.d.ts +17 -1
  1487. package/build/types/object/merge/shim.d.ts +16 -1
  1488. package/build/types/object/omit/index.d.ts +11 -0
  1489. package/build/types/object/omit/shim.d.ts +10 -0
  1490. package/build/types/object/reduce/index.d.ts +8 -0
  1491. package/build/types/object/reduce/shim.d.ts +7 -0
  1492. package/build/types/object/set/index.d.ts +10 -0
  1493. package/build/types/object/set/shim.d.ts +9 -0
  1494. package/build/types/object/shim.d.ts +0 -1
  1495. package/build/types/object/size/index.d.ts +5 -0
  1496. package/build/types/object/size/shim.d.ts +5 -0
  1497. package/build/types/object/snakeCaseKeys/index.d.ts +7 -0
  1498. package/build/types/object/snakeCaseKeys/shim.d.ts +6 -0
  1499. package/build/types/object/values/index.d.ts +6 -1
  1500. package/build/types/object/values/shim.d.ts +5 -0
  1501. package/build/types/string/base64/index.d.ts +5 -0
  1502. package/build/types/string/base64/shim.d.ts +5 -0
  1503. package/build/types/string/base64Decode/index.d.ts +5 -0
  1504. package/build/types/string/base64Decode/shim.d.ts +5 -0
  1505. package/build/types/string/camelCase/index.d.ts +12 -0
  1506. package/build/types/string/camelCase/shim.d.ts +12 -0
  1507. package/build/types/string/capitalize/index.d.ts +9 -0
  1508. package/build/types/string/capitalize/shim.d.ts +8 -0
  1509. package/build/types/string/chars/index.d.ts +5 -0
  1510. package/build/types/string/chars/shim.d.ts +5 -0
  1511. package/build/types/string/contains/index.d.ts +10 -0
  1512. package/build/types/string/contains/shim.d.ts +9 -0
  1513. package/build/types/string/decapitalize/index.d.ts +9 -0
  1514. package/build/types/string/decapitalize/shim.d.ts +8 -0
  1515. package/build/types/string/equals/index.d.ts +7 -0
  1516. package/build/types/string/equals/shim.d.ts +6 -0
  1517. package/build/types/string/forEach/index.d.ts +7 -0
  1518. package/build/types/string/forEach/shim.d.ts +6 -0
  1519. package/build/types/string/humanize/index.d.ts +8 -0
  1520. package/build/types/string/humanize/shim.d.ts +7 -0
  1521. package/build/types/string/isEmpty/index.d.ts +8 -0
  1522. package/build/types/string/isEmpty/shim.d.ts +7 -0
  1523. package/build/types/string/isString/index.d.ts +8 -0
  1524. package/build/types/string/isString/shim.d.ts +8 -0
  1525. package/build/types/string/kebabCase/index.d.ts +16 -0
  1526. package/build/types/string/kebabCase/shim.d.ts +15 -0
  1527. package/build/types/string/lines/index.d.ts +6 -0
  1528. package/build/types/string/lines/shim.d.ts +5 -0
  1529. package/build/types/string/map/index.d.ts +7 -0
  1530. package/build/types/string/map/shim.d.ts +7 -1
  1531. package/build/types/string/mask/index.d.ts +13 -1
  1532. package/build/types/string/mask/shim.d.ts +11 -0
  1533. package/build/types/string/pad/index.d.ts +10 -0
  1534. package/build/types/string/pad/shim.d.ts +9 -0
  1535. package/build/types/string/parseInt/index.d.ts +7 -0
  1536. package/build/types/string/parseInt/shim.d.ts +6 -0
  1537. package/build/types/string/pluralize/index.d.ts +17 -0
  1538. package/build/types/string/pluralize/shim.d.ts +16 -0
  1539. package/build/types/string/reduce/index.d.ts +8 -0
  1540. package/build/types/string/reduce/shim.d.ts +7 -0
  1541. package/build/types/string/repeat/index.d.ts +7 -0
  1542. package/build/types/string/repeat/shim.d.ts +7 -0
  1543. package/build/types/string/reverse/index.d.ts +6 -0
  1544. package/build/types/string/reverse/shim.d.ts +5 -0
  1545. package/build/types/string/shim.d.ts +0 -1
  1546. package/build/types/string/snakeCase/index.d.ts +16 -0
  1547. package/build/types/string/snakeCase/shim.d.ts +15 -0
  1548. package/build/types/string/swapCase/index.d.ts +6 -0
  1549. package/build/types/string/swapCase/shim.d.ts +5 -0
  1550. package/build/types/string/truncate/index.d.ts +10 -0
  1551. package/build/types/string/truncate/shim.d.ts +9 -0
  1552. package/build/types/string/words/index.d.ts +9 -0
  1553. package/build/types/string/words/shim.d.ts +8 -0
  1554. package/build/types/utils.d.ts +18 -17
  1555. package/docs/assets/highlight.css +31 -3
  1556. package/docs/assets/main.js +4 -2
  1557. package/docs/assets/search.js +1 -1
  1558. package/docs/assets/style.css +430 -619
  1559. package/docs/enums/OPERATOR.html +107 -0
  1560. package/docs/functions/array.all.html +160 -0
  1561. package/docs/functions/array.any.html +161 -0
  1562. package/docs/functions/array.append.html +141 -0
  1563. package/docs/functions/array.average.html +149 -0
  1564. package/docs/functions/array.chunk.html +141 -0
  1565. package/docs/functions/array.clone.html +141 -0
  1566. package/docs/functions/array.compact.html +139 -0
  1567. package/docs/functions/array.contains.html +146 -0
  1568. package/docs/functions/array.count.html +144 -0
  1569. package/docs/functions/array.countBy.html +148 -0
  1570. package/docs/functions/array.crossJoin.html +144 -0
  1571. package/docs/functions/array.deepFlatten.html +139 -0
  1572. package/docs/functions/array.diff.html +163 -0
  1573. package/docs/functions/array.distinct.html +147 -0
  1574. package/docs/functions/array.distinctBy.html +154 -0
  1575. package/docs/functions/array.empty.html +139 -0
  1576. package/docs/functions/array.equals.html +141 -0
  1577. package/docs/functions/array.everyNth.html +141 -0
  1578. package/docs/functions/array.first.html +139 -0
  1579. package/docs/functions/array.flatten.html +144 -0
  1580. package/docs/functions/array.get.html +150 -0
  1581. package/docs/functions/array.groupBy.html +147 -0
  1582. package/docs/functions/array.implode.html +145 -0
  1583. package/docs/functions/array.indexOfAll.html +144 -0
  1584. package/docs/functions/array.initial.html +139 -0
  1585. package/docs/functions/array.intersect.html +141 -0
  1586. package/docs/functions/array.isEmpty.html +142 -0
  1587. package/docs/functions/array.last.html +139 -0
  1588. package/docs/functions/array.limit.html +141 -0
  1589. package/docs/functions/array.max.html +164 -0
  1590. package/docs/functions/array.median.html +161 -0
  1591. package/docs/functions/array.merge.html +141 -0
  1592. package/docs/functions/array.min.html +164 -0
  1593. package/docs/functions/array.nest.html +143 -0
  1594. package/docs/functions/array.orderBy.html +168 -0
  1595. package/docs/functions/array.pad.html +146 -0
  1596. package/docs/functions/array.partition.html +157 -0
  1597. package/docs/functions/array.pluck.html +146 -0
  1598. package/docs/functions/array.prepend.html +141 -0
  1599. package/docs/functions/array.pull.html +141 -0
  1600. package/docs/functions/array.range.html +145 -0
  1601. package/docs/functions/array.repeat.html +141 -0
  1602. package/docs/functions/array.sample.html +139 -0
  1603. package/docs/functions/array.shuffle.html +139 -0
  1604. package/docs/functions/array.skip.html +141 -0
  1605. package/docs/functions/array.sortBy.html +145 -0
  1606. package/docs/functions/array.sum.html +149 -0
  1607. package/docs/functions/array.tail.html +139 -0
  1608. package/docs/functions/array.toCSV.html +144 -0
  1609. package/docs/functions/array.union.html +143 -0
  1610. package/docs/functions/array.unwind.html +141 -0
  1611. package/docs/functions/array.where.html +209 -0
  1612. package/docs/functions/array.whereBetween.html +167 -0
  1613. package/docs/functions/array.whereIn.html +163 -0
  1614. package/docs/functions/array.whereLike.html +163 -0
  1615. package/docs/functions/array.whereNotBetween.html +167 -0
  1616. package/docs/functions/array.whereNotIn.html +163 -0
  1617. package/docs/functions/array.whereNotLike.html +163 -0
  1618. package/docs/functions/array.whereNotNull.html +144 -0
  1619. package/docs/functions/array.whereNull.html +144 -0
  1620. package/docs/functions/array.zip.html +144 -0
  1621. package/docs/functions/array.zipObject.html +145 -0
  1622. package/docs/functions/boolean.isBoolean.html +73 -0
  1623. package/docs/functions/date.equals.html +76 -0
  1624. package/docs/functions/date.isDate.html +77 -0
  1625. package/docs/functions/date.today.html +69 -0
  1626. package/docs/functions/date.tomorrow.html +69 -0
  1627. package/docs/functions/date.yesterday.html +69 -0
  1628. package/docs/functions/func.cache.html +79 -0
  1629. package/docs/functions/func.defer.html +82 -0
  1630. package/docs/functions/func.isFunction.html +76 -0
  1631. package/docs/functions/func.once.html +84 -0
  1632. package/docs/functions/globals.isBrowser.html +66 -0
  1633. package/docs/functions/math.average.html +83 -0
  1634. package/docs/functions/math.degreesToRads.html +80 -0
  1635. package/docs/functions/math.factorial.html +80 -0
  1636. package/docs/functions/math.fibonacci.html +80 -0
  1637. package/docs/functions/math.gcd.html +83 -0
  1638. package/docs/functions/math.isDivisible.html +82 -0
  1639. package/docs/functions/math.isEven.html +80 -0
  1640. package/docs/functions/math.isPrime.html +80 -0
  1641. package/docs/functions/math.lcm.html +83 -0
  1642. package/docs/functions/math.primes.html +80 -0
  1643. package/docs/functions/math.radsToDegrees.html +80 -0
  1644. package/docs/functions/number.digitize.html +73 -0
  1645. package/docs/functions/number.equals.html +75 -0
  1646. package/docs/functions/number.inRange.html +77 -0
  1647. package/docs/functions/number.isNumber.html +76 -0
  1648. package/docs/functions/object.assign.html +99 -0
  1649. package/docs/functions/object.camelCaseKeys.html +97 -0
  1650. package/docs/functions/object.clone.html +104 -0
  1651. package/docs/functions/object.defaults.html +99 -0
  1652. package/docs/functions/object.dig.html +99 -0
  1653. package/docs/functions/object.empty.html +97 -0
  1654. package/docs/functions/object.equals.html +99 -0
  1655. package/docs/functions/object.flatten.html +97 -0
  1656. package/docs/functions/object.forEach.html +121 -0
  1657. package/docs/functions/object.get.html +106 -0
  1658. package/docs/functions/object.invert.html +97 -0
  1659. package/docs/functions/object.isEmpty.html +100 -0
  1660. package/docs/functions/object.isObject.html +100 -0
  1661. package/docs/functions/object.isObjectLike.html +100 -0
  1662. package/docs/functions/object.isPlainObject.html +100 -0
  1663. package/docs/functions/object.kebabCaseKeys.html +97 -0
  1664. package/docs/functions/object.keys.html +102 -0
  1665. package/docs/functions/object.lowerCaseKeys.html +97 -0
  1666. package/docs/functions/object.map.html +122 -0
  1667. package/docs/functions/object.mapKeys.html +122 -0
  1668. package/docs/functions/object.mapValues.html +122 -0
  1669. package/docs/functions/object.merge.html +99 -0
  1670. package/docs/functions/object.omit.html +104 -0
  1671. package/docs/functions/object.reduce.html +127 -0
  1672. package/docs/functions/object.set.html +101 -0
  1673. package/docs/functions/object.size.html +97 -0
  1674. package/docs/functions/object.snakeCaseKeys.html +97 -0
  1675. package/docs/functions/object.values.html +104 -0
  1676. package/docs/functions/string.base64.html +95 -0
  1677. package/docs/functions/string.base64Decode.html +95 -0
  1678. package/docs/functions/string.camelCase.html +104 -0
  1679. package/docs/functions/string.capitalize.html +100 -0
  1680. package/docs/functions/string.chars.html +95 -0
  1681. package/docs/functions/string.contains.html +102 -0
  1682. package/docs/functions/string.decapitalize.html +100 -0
  1683. package/docs/functions/string.equals.html +97 -0
  1684. package/docs/functions/string.forEach.html +112 -0
  1685. package/docs/functions/string.humanize.html +96 -0
  1686. package/docs/functions/string.isEmpty.html +98 -0
  1687. package/docs/functions/string.isString.html +98 -0
  1688. package/docs/functions/string.kebabCase.html +107 -0
  1689. package/docs/functions/string.lines.html +95 -0
  1690. package/docs/functions/string.map.html +112 -0
  1691. package/docs/functions/string.mask.html +105 -0
  1692. package/docs/functions/string.pad.html +102 -0
  1693. package/docs/functions/string.parseInt.html +97 -0
  1694. package/docs/functions/string.pluralize.html +112 -0
  1695. package/docs/functions/string.reduce.html +121 -0
  1696. package/docs/functions/string.repeat.html +97 -0
  1697. package/docs/functions/string.reverse.html +95 -0
  1698. package/docs/functions/string.snakeCase.html +107 -0
  1699. package/docs/functions/string.swapCase.html +95 -0
  1700. package/docs/functions/string.truncate.html +102 -0
  1701. package/docs/functions/string.words.html +100 -0
  1702. package/docs/index.html +58 -2
  1703. package/docs/modules/array.html +192 -1
  1704. package/docs/modules/boolean.html +61 -1
  1705. package/docs/modules/date.html +69 -1
  1706. package/docs/modules/func.html +67 -0
  1707. package/docs/modules/globals.html +61 -1
  1708. package/docs/modules/math.html +81 -1
  1709. package/docs/modules/number.html +67 -1
  1710. package/docs/modules/object.html +115 -1
  1711. package/docs/modules/string.html +111 -1
  1712. package/docs/modules.html +83 -1
  1713. package/docs/types/JoinT.html +66 -0
  1714. package/docs/types/OperatorT.html +62 -0
  1715. package/docs/types/PathT.html +66 -0
  1716. package/docs/types/PathsToStringPropsT.html +66 -0
  1717. package/docs/types/RecordT.html +62 -0
  1718. package/docs/types/array.CompactT.html +126 -0
  1719. package/docs/types/array.NestedArrayT.html +126 -0
  1720. package/docs/types/array.OrderT.html +122 -0
  1721. package/jest.config.js +8 -6
  1722. package/package.json +18 -18
  1723. package/src/array/all/index.ts +10 -0
  1724. package/src/array/all/shim.ts +11 -12
  1725. package/src/array/any/index.ts +11 -0
  1726. package/src/array/any/shim.ts +12 -13
  1727. package/src/array/append/index.ts +8 -0
  1728. package/src/array/append/shim.ts +9 -11
  1729. package/src/array/average/index.ts +13 -10
  1730. package/src/array/average/shim.ts +23 -26
  1731. package/src/array/chunk/index.ts +8 -1
  1732. package/src/array/chunk/shim.ts +8 -10
  1733. package/src/array/clone/index.ts +7 -0
  1734. package/src/array/clone/shim.ts +8 -10
  1735. package/src/array/compact/index.ts +8 -2
  1736. package/src/array/compact/shim.ts +8 -10
  1737. package/src/array/contains/index.ts +10 -0
  1738. package/src/array/contains/shim.ts +11 -10
  1739. package/src/array/count/index.ts +12 -3
  1740. package/src/array/count/shim.ts +10 -11
  1741. package/src/array/countBy/index.ts +12 -2
  1742. package/src/array/countBy/shim.ts +12 -13
  1743. package/src/array/crossJoin/index.ts +11 -5
  1744. package/src/array/crossJoin/shim.ts +10 -12
  1745. package/src/array/deepFlatten/index.ts +9 -9
  1746. package/src/array/deepFlatten/shim.ts +7 -9
  1747. package/src/array/diff/index.ts +14 -3
  1748. package/src/array/diff/shim.ts +13 -14
  1749. package/src/array/distinct/index.ts +17 -5
  1750. package/src/array/distinct/shim.ts +12 -12
  1751. package/src/array/distinctBy/index.ts +12 -5
  1752. package/src/array/distinctBy/shim.ts +8 -10
  1753. package/src/array/empty/index.ts +8 -0
  1754. package/src/array/empty/shim.ts +9 -10
  1755. package/src/array/equals/index.ts +8 -3
  1756. package/src/array/equals/shim.ts +8 -10
  1757. package/src/array/everyNth/index.ts +7 -0
  1758. package/src/array/everyNth/shim.ts +8 -9
  1759. package/src/array/first/index.ts +6 -0
  1760. package/src/array/first/shim.ts +7 -9
  1761. package/src/array/flatten/index.ts +14 -7
  1762. package/src/array/flatten/shim.ts +11 -11
  1763. package/src/array/get/index.ts +11 -1
  1764. package/src/array/get/shim.ts +12 -13
  1765. package/src/array/groupBy/index.ts +12 -2
  1766. package/src/array/groupBy/shim.ts +11 -12
  1767. package/src/array/implode/index.ts +16 -8
  1768. package/src/array/implode/shim.ts +10 -12
  1769. package/src/array/index.ts +3 -3
  1770. package/src/array/indexOfAll/index.ts +9 -0
  1771. package/src/array/indexOfAll/shim.ts +10 -11
  1772. package/src/array/initial/index.ts +6 -3
  1773. package/src/array/initial/shim.ts +7 -9
  1774. package/src/array/intersect/index.ts +8 -1
  1775. package/src/array/intersect/shim.ts +8 -10
  1776. package/src/array/isEmpty/index.ts +7 -0
  1777. package/src/array/isEmpty/shim.ts +9 -10
  1778. package/src/array/last/index.ts +8 -3
  1779. package/src/array/last/shim.ts +7 -9
  1780. package/src/array/limit/index.ts +9 -2
  1781. package/src/array/limit/shim.ts +19 -24
  1782. package/src/array/max/index.ts +22 -7
  1783. package/src/array/max/shim.ts +12 -12
  1784. package/src/array/median/index.ts +17 -4
  1785. package/src/array/median/shim.ts +10 -11
  1786. package/src/array/merge/index.ts +8 -0
  1787. package/src/array/merge/shim.ts +9 -10
  1788. package/src/array/min/index.ts +22 -7
  1789. package/src/array/min/shim.ts +12 -12
  1790. package/src/array/nest/index.ts +31 -12
  1791. package/src/array/nest/shim.ts +17 -19
  1792. package/src/array/orderBy/index.ts +31 -10
  1793. package/src/array/orderBy/shim.ts +17 -13
  1794. package/src/array/pad/index.ts +10 -0
  1795. package/src/array/pad/shim.ts +11 -12
  1796. package/src/array/partition/index.ts +17 -2
  1797. package/src/array/partition/shim.ts +15 -17
  1798. package/src/array/pluck/index.ts +11 -3
  1799. package/src/array/pluck/shim.ts +10 -11
  1800. package/src/array/prepend/index.ts +8 -0
  1801. package/src/array/prepend/shim.ts +9 -10
  1802. package/src/array/pull/index.ts +10 -2
  1803. package/src/array/pull/shim.ts +9 -10
  1804. package/src/array/range/index.ts +14 -1
  1805. package/src/array/range/shim.ts +14 -14
  1806. package/src/array/repeat/index.ts +7 -0
  1807. package/src/array/repeat/shim.ts +8 -10
  1808. package/src/array/sample/index.ts +5 -0
  1809. package/src/array/sample/shim.ts +7 -9
  1810. package/src/array/shim.ts +0 -2
  1811. package/src/array/shuffle/index.ts +6 -0
  1812. package/src/array/shuffle/shim.ts +7 -9
  1813. package/src/array/skip/index.ts +7 -0
  1814. package/src/array/skip/shim.ts +17 -22
  1815. package/src/array/sortBy/index.ts +11 -2
  1816. package/src/array/sortBy/shim.ts +10 -11
  1817. package/src/array/sum/index.ts +19 -18
  1818. package/src/array/sum/shim.ts +12 -12
  1819. package/src/array/tail/index.ts +6 -3
  1820. package/src/array/tail/shim.ts +7 -9
  1821. package/src/array/toCSV/index.ts +10 -1
  1822. package/src/array/toCSV/shim.ts +10 -11
  1823. package/src/array/union/index.ts +7 -0
  1824. package/src/array/union/shim.ts +9 -11
  1825. package/src/array/unwind/index.ts +14 -5
  1826. package/src/array/unwind/shim.ts +9 -11
  1827. package/src/array/where/index.ts +67 -29
  1828. package/src/array/where/shim.ts +32 -17
  1829. package/src/array/whereBetween/index.ts +27 -7
  1830. package/src/array/whereBetween/shim.ts +17 -13
  1831. package/src/array/whereIn/index.ts +22 -7
  1832. package/src/array/whereIn/shim.ts +15 -12
  1833. package/src/array/whereLike/index.ts +25 -10
  1834. package/src/array/whereLike/shim.ts +17 -15
  1835. package/src/array/whereNotBetween/index.ts +27 -7
  1836. package/src/array/whereNotBetween/shim.ts +17 -13
  1837. package/src/array/whereNotIn/index.ts +22 -7
  1838. package/src/array/whereNotIn/shim.ts +15 -12
  1839. package/src/array/whereNotLike/index.ts +25 -10
  1840. package/src/array/whereNotLike/shim.ts +17 -14
  1841. package/src/array/whereNotNull/index.ts +10 -3
  1842. package/src/array/whereNotNull/shim.ts +10 -11
  1843. package/src/array/whereNull/index.ts +10 -3
  1844. package/src/array/whereNull/shim.ts +13 -11
  1845. package/src/array/zip/index.ts +15 -4
  1846. package/src/array/zip/shim.ts +10 -11
  1847. package/src/array/zipObject/index.ts +15 -1
  1848. package/src/array/zipObject/shim.ts +11 -12
  1849. package/src/boolean/isBoolean/index.ts +8 -0
  1850. package/src/boolean/isBoolean/shim.ts +9 -10
  1851. package/src/boolean/shim.ts +0 -2
  1852. package/src/date/equals/index.ts +7 -0
  1853. package/src/date/equals/shim.ts +8 -10
  1854. package/src/date/isDate/index.ts +10 -2
  1855. package/src/date/isDate/shim.ts +9 -10
  1856. package/src/date/shim.ts +0 -2
  1857. package/src/date/today/index.ts +12 -5
  1858. package/src/date/today/shim.ts +6 -8
  1859. package/src/date/tomorrow/index.ts +12 -5
  1860. package/src/date/tomorrow/shim.ts +6 -8
  1861. package/src/date/yesterday/index.ts +12 -5
  1862. package/src/date/yesterday/shim.ts +6 -8
  1863. package/src/function/cache/index.ts +12 -5
  1864. package/src/function/cache/shim.ts +9 -12
  1865. package/src/function/defer/index.ts +9 -1
  1866. package/src/function/defer/shim.ts +9 -11
  1867. package/src/function/isFunction/index.ts +9 -3
  1868. package/src/function/isFunction/shim.ts +9 -10
  1869. package/src/function/once/index.ts +11 -1
  1870. package/src/function/once/shim.ts +9 -12
  1871. package/src/function/shim.ts +0 -2
  1872. package/src/globals/isBrowser/index.ts +6 -0
  1873. package/src/globals/isBrowser/shim.ts +7 -9
  1874. package/src/globals/shim.ts +0 -2
  1875. package/src/index.ts +2 -0
  1876. package/src/math/average/index.ts +8 -0
  1877. package/src/math/average/shim.ts +20 -23
  1878. package/src/math/degreesToRads/index.ts +8 -2
  1879. package/src/math/degreesToRads/shim.ts +7 -9
  1880. package/src/math/factorial/index.ts +6 -0
  1881. package/src/math/factorial/shim.ts +7 -9
  1882. package/src/math/fibonacci/index.ts +9 -4
  1883. package/src/math/fibonacci/shim.ts +7 -9
  1884. package/src/math/gcd/index.ts +10 -3
  1885. package/src/math/gcd/shim.ts +9 -10
  1886. package/src/math/isDivisible/index.ts +7 -0
  1887. package/src/math/isDivisible/shim.ts +8 -10
  1888. package/src/math/isEven/index.ts +6 -0
  1889. package/src/math/isEven/shim.ts +7 -9
  1890. package/src/math/isPrime/index.ts +6 -0
  1891. package/src/math/isPrime/shim.ts +7 -9
  1892. package/src/math/lcm/index.ts +11 -6
  1893. package/src/math/lcm/shim.ts +9 -10
  1894. package/src/math/primes/index.ts +7 -3
  1895. package/src/math/primes/shim.ts +7 -9
  1896. package/src/math/radsToDegrees/index.ts +8 -2
  1897. package/src/math/radsToDegrees/shim.ts +7 -9
  1898. package/src/math/shim.ts +0 -2
  1899. package/src/number/digitize/index.ts +6 -1
  1900. package/src/number/digitize/shim.ts +7 -9
  1901. package/src/number/equals/index.ts +7 -0
  1902. package/src/number/equals/shim.ts +8 -10
  1903. package/src/number/inRange/index.ts +8 -0
  1904. package/src/number/inRange/shim.ts +9 -11
  1905. package/src/number/isNumber/index.ts +8 -0
  1906. package/src/number/isNumber/shim.ts +9 -10
  1907. package/src/number/shim.ts +0 -2
  1908. package/src/object/assign/index.ts +8 -1
  1909. package/src/object/assign/shim.ts +9 -11
  1910. package/src/object/camelCaseKeys/index.ts +8 -3
  1911. package/src/object/camelCaseKeys/shim.ts +8 -10
  1912. package/src/object/clone/index.ts +9 -1
  1913. package/src/object/clone/shim.ts +9 -11
  1914. package/src/object/defaults/index.ts +9 -2
  1915. package/src/object/defaults/shim.ts +9 -11
  1916. package/src/object/dig/index.ts +18 -3
  1917. package/src/object/dig/shim.ts +16 -18
  1918. package/src/object/empty/index.ts +11 -5
  1919. package/src/object/empty/shim.ts +9 -10
  1920. package/src/object/equals/index.ts +12 -4
  1921. package/src/object/equals/shim.ts +8 -10
  1922. package/src/object/flatten/index.ts +10 -6
  1923. package/src/object/flatten/shim.ts +7 -9
  1924. package/src/object/forEach/index.ts +12 -1
  1925. package/src/object/forEach/shim.ts +12 -13
  1926. package/src/object/get/index.ts +7 -0
  1927. package/src/object/get/shim.ts +8 -10
  1928. package/src/object/invert/index.ts +9 -5
  1929. package/src/object/invert/shim.ts +7 -9
  1930. package/src/object/isEmpty/index.ts +8 -0
  1931. package/src/object/isEmpty/shim.ts +9 -10
  1932. package/src/object/isObject/index.ts +8 -0
  1933. package/src/object/isObject/shim.ts +9 -10
  1934. package/src/object/isObjectLike/index.ts +9 -3
  1935. package/src/object/isObjectLike/shim.ts +9 -10
  1936. package/src/object/isPlainObject/index.ts +11 -6
  1937. package/src/object/isPlainObject/shim.ts +9 -10
  1938. package/src/object/kebabCaseKeys/index.ts +8 -3
  1939. package/src/object/kebabCaseKeys/shim.ts +8 -10
  1940. package/src/object/keys/index.ts +7 -3
  1941. package/src/object/keys/shim.ts +7 -9
  1942. package/src/object/lowerCaseKeys/index.ts +7 -3
  1943. package/src/object/lowerCaseKeys/shim.ts +8 -10
  1944. package/src/object/map/index.ts +14 -2
  1945. package/src/object/map/shim.ts +12 -14
  1946. package/src/object/mapKeys/index.ts +8 -0
  1947. package/src/object/mapKeys/shim.ts +9 -11
  1948. package/src/object/mapValues/index.ts +13 -1
  1949. package/src/object/mapValues/shim.ts +13 -15
  1950. package/src/object/merge/index.ts +24 -10
  1951. package/src/object/merge/shim.ts +18 -20
  1952. package/src/object/omit/index.ts +21 -6
  1953. package/src/object/omit/shim.ts +12 -13
  1954. package/src/object/reduce/index.ts +9 -0
  1955. package/src/object/reduce/shim.ts +9 -12
  1956. package/src/object/set/index.ts +12 -3
  1957. package/src/object/set/shim.ts +11 -12
  1958. package/src/object/shim.ts +0 -2
  1959. package/src/object/size/index.ts +5 -0
  1960. package/src/object/size/shim.ts +7 -9
  1961. package/src/object/snakeCaseKeys/index.ts +8 -3
  1962. package/src/object/snakeCaseKeys/shim.ts +8 -10
  1963. package/src/object/values/index.ts +6 -1
  1964. package/src/object/values/shim.ts +7 -9
  1965. package/src/string/base64/index.ts +5 -0
  1966. package/src/string/base64/shim.ts +7 -9
  1967. package/src/string/base64Decode/index.ts +5 -0
  1968. package/src/string/base64Decode/shim.ts +7 -9
  1969. package/src/string/camelCase/index.ts +14 -4
  1970. package/src/string/camelCase/shim.ts +14 -13
  1971. package/src/string/capitalize/index.ts +11 -2
  1972. package/src/string/capitalize/shim.ts +10 -11
  1973. package/src/string/chars/index.ts +5 -0
  1974. package/src/string/chars/shim.ts +7 -9
  1975. package/src/string/contains/index.ts +12 -2
  1976. package/src/string/contains/shim.ts +11 -12
  1977. package/src/string/decapitalize/index.ts +11 -2
  1978. package/src/string/decapitalize/shim.ts +10 -11
  1979. package/src/string/equals/index.ts +7 -0
  1980. package/src/string/equals/shim.ts +8 -10
  1981. package/src/string/forEach/index.ts +8 -1
  1982. package/src/string/forEach/shim.ts +8 -10
  1983. package/src/string/humanize/index.ts +11 -5
  1984. package/src/string/humanize/shim.ts +9 -11
  1985. package/src/string/isEmpty/index.ts +8 -0
  1986. package/src/string/isEmpty/shim.ts +9 -10
  1987. package/src/string/isString/index.ts +8 -0
  1988. package/src/string/isString/shim.ts +9 -10
  1989. package/src/string/kebabCase/index.ts +18 -4
  1990. package/src/string/kebabCase/shim.ts +17 -15
  1991. package/src/string/lines/index.ts +6 -0
  1992. package/src/string/lines/shim.ts +7 -9
  1993. package/src/string/map/index.ts +9 -1
  1994. package/src/string/map/shim.ts +8 -12
  1995. package/src/string/mask/index.ts +14 -2
  1996. package/src/string/mask/shim.ts +13 -13
  1997. package/src/string/pad/index.ts +12 -2
  1998. package/src/string/pad/shim.ts +11 -12
  1999. package/src/string/parseInt/index.ts +7 -0
  2000. package/src/string/parseInt/shim.ts +8 -10
  2001. package/src/string/pluralize/index.ts +76 -48
  2002. package/src/string/pluralize/shim.ts +18 -15
  2003. package/src/string/reduce/index.ts +9 -0
  2004. package/src/string/reduce/shim.ts +9 -11
  2005. package/src/string/repeat/index.ts +7 -0
  2006. package/src/string/repeat/shim.ts +8 -10
  2007. package/src/string/reverse/index.ts +6 -0
  2008. package/src/string/reverse/shim.ts +7 -9
  2009. package/src/string/shim.ts +0 -2
  2010. package/src/string/snakeCase/index.ts +18 -4
  2011. package/src/string/snakeCase/shim.ts +17 -15
  2012. package/src/string/swapCase/index.ts +7 -3
  2013. package/src/string/swapCase/shim.ts +7 -9
  2014. package/src/string/truncate/index.ts +10 -0
  2015. package/src/string/truncate/shim.ts +11 -12
  2016. package/src/string/words/index.ts +9 -0
  2017. package/src/string/words/shim.ts +10 -11
  2018. package/src/utils.ts +59 -47
  2019. package/tsconfig.eslint.json +4 -0
  2020. package/tsconfig.json +1 -1
  2021. package/typedoc.json +8 -3
  2022. package/docs/assets/icons.css +0 -1043
  2023. package/docs/assets/icons.png +0 -0
  2024. package/docs/assets/icons@2x.png +0 -0
  2025. package/docs/enums/array_orderBy.ORDER.html +0 -1
  2026. package/docs/enums/utils.OPERATOR.html +0 -1
  2027. package/docs/modules/array_all.html +0 -1
  2028. package/docs/modules/array_any.html +0 -1
  2029. package/docs/modules/array_append.html +0 -1
  2030. package/docs/modules/array_average.html +0 -1
  2031. package/docs/modules/array_chunk.html +0 -1
  2032. package/docs/modules/array_clone.html +0 -1
  2033. package/docs/modules/array_compact.html +0 -1
  2034. package/docs/modules/array_contains.html +0 -1
  2035. package/docs/modules/array_count.html +0 -1
  2036. package/docs/modules/array_countBy.html +0 -1
  2037. package/docs/modules/array_crossJoin.html +0 -1
  2038. package/docs/modules/array_deepFlatten.html +0 -1
  2039. package/docs/modules/array_diff.html +0 -1
  2040. package/docs/modules/array_distinct.html +0 -1
  2041. package/docs/modules/array_distinctBy.html +0 -1
  2042. package/docs/modules/array_empty.html +0 -1
  2043. package/docs/modules/array_equals.html +0 -1
  2044. package/docs/modules/array_everyNth.html +0 -1
  2045. package/docs/modules/array_first.html +0 -1
  2046. package/docs/modules/array_flatten.html +0 -1
  2047. package/docs/modules/array_get.html +0 -1
  2048. package/docs/modules/array_groupBy.html +0 -1
  2049. package/docs/modules/array_implode.html +0 -1
  2050. package/docs/modules/array_indexOfAll.html +0 -1
  2051. package/docs/modules/array_initial.html +0 -1
  2052. package/docs/modules/array_intersect.html +0 -1
  2053. package/docs/modules/array_isEmpty.html +0 -1
  2054. package/docs/modules/array_last.html +0 -1
  2055. package/docs/modules/array_limit.html +0 -1
  2056. package/docs/modules/array_max.html +0 -1
  2057. package/docs/modules/array_median.html +0 -1
  2058. package/docs/modules/array_merge.html +0 -1
  2059. package/docs/modules/array_min.html +0 -1
  2060. package/docs/modules/array_nest.html +0 -1
  2061. package/docs/modules/array_orderBy.html +0 -1
  2062. package/docs/modules/array_pad.html +0 -1
  2063. package/docs/modules/array_partition.html +0 -1
  2064. package/docs/modules/array_pluck.html +0 -1
  2065. package/docs/modules/array_prepend.html +0 -1
  2066. package/docs/modules/array_pull.html +0 -1
  2067. package/docs/modules/array_range.html +0 -1
  2068. package/docs/modules/array_repeat.html +0 -1
  2069. package/docs/modules/array_sample.html +0 -1
  2070. package/docs/modules/array_shuffle.html +0 -1
  2071. package/docs/modules/array_skip.html +0 -1
  2072. package/docs/modules/array_sortBy.html +0 -1
  2073. package/docs/modules/array_sum.html +0 -1
  2074. package/docs/modules/array_tail.html +0 -1
  2075. package/docs/modules/array_toCSV.html +0 -1
  2076. package/docs/modules/array_union.html +0 -1
  2077. package/docs/modules/array_unwind.html +0 -1
  2078. package/docs/modules/array_where.html +0 -1
  2079. package/docs/modules/array_whereBetween.html +0 -1
  2080. package/docs/modules/array_whereIn.html +0 -1
  2081. package/docs/modules/array_whereLike.html +0 -1
  2082. package/docs/modules/array_whereNotBetween.html +0 -1
  2083. package/docs/modules/array_whereNotIn.html +0 -1
  2084. package/docs/modules/array_whereNotLike.html +0 -1
  2085. package/docs/modules/array_whereNotNull.html +0 -1
  2086. package/docs/modules/array_whereNull.html +0 -1
  2087. package/docs/modules/array_zip.html +0 -1
  2088. package/docs/modules/array_zipObject.html +0 -1
  2089. package/docs/modules/boolean_isBoolean.html +0 -1
  2090. package/docs/modules/date_equals.html +0 -1
  2091. package/docs/modules/date_isDate.html +0 -1
  2092. package/docs/modules/date_today.html +0 -1
  2093. package/docs/modules/date_tomorrow.html +0 -1
  2094. package/docs/modules/date_yesterday.html +0 -1
  2095. package/docs/modules/function.html +0 -1
  2096. package/docs/modules/function_cache.html +0 -1
  2097. package/docs/modules/function_defer.html +0 -1
  2098. package/docs/modules/function_isFunction.html +0 -1
  2099. package/docs/modules/function_once.html +0 -1
  2100. package/docs/modules/globals_isBrowser.html +0 -1
  2101. package/docs/modules/index.html +0 -1
  2102. package/docs/modules/math_average.html +0 -1
  2103. package/docs/modules/math_degreesToRads.html +0 -1
  2104. package/docs/modules/math_factorial.html +0 -1
  2105. package/docs/modules/math_fibonacci.html +0 -1
  2106. package/docs/modules/math_gcd.html +0 -1
  2107. package/docs/modules/math_isDivisible.html +0 -1
  2108. package/docs/modules/math_isEven.html +0 -1
  2109. package/docs/modules/math_isPrime.html +0 -1
  2110. package/docs/modules/math_lcm.html +0 -1
  2111. package/docs/modules/math_primes.html +0 -1
  2112. package/docs/modules/math_radsToDegrees.html +0 -1
  2113. package/docs/modules/number_digitize.html +0 -1
  2114. package/docs/modules/number_equals.html +0 -1
  2115. package/docs/modules/number_inRange.html +0 -1
  2116. package/docs/modules/number_isNumber.html +0 -1
  2117. package/docs/modules/object_assign.html +0 -1
  2118. package/docs/modules/object_camelCaseKeys.html +0 -1
  2119. package/docs/modules/object_clone.html +0 -1
  2120. package/docs/modules/object_defaults.html +0 -1
  2121. package/docs/modules/object_dig.html +0 -1
  2122. package/docs/modules/object_empty.html +0 -1
  2123. package/docs/modules/object_equals.html +0 -1
  2124. package/docs/modules/object_flatten.html +0 -1
  2125. package/docs/modules/object_forEach.html +0 -1
  2126. package/docs/modules/object_get.html +0 -1
  2127. package/docs/modules/object_invert.html +0 -1
  2128. package/docs/modules/object_isEmpty.html +0 -1
  2129. package/docs/modules/object_isObject.html +0 -1
  2130. package/docs/modules/object_isObjectLike.html +0 -1
  2131. package/docs/modules/object_isPlainObject.html +0 -1
  2132. package/docs/modules/object_kebabCaseKeys.html +0 -1
  2133. package/docs/modules/object_keys.html +0 -1
  2134. package/docs/modules/object_lowerCaseKeys.html +0 -1
  2135. package/docs/modules/object_map.html +0 -1
  2136. package/docs/modules/object_mapKeys.html +0 -1
  2137. package/docs/modules/object_mapValues.html +0 -1
  2138. package/docs/modules/object_merge.html +0 -1
  2139. package/docs/modules/object_omit.html +0 -1
  2140. package/docs/modules/object_reduce.html +0 -1
  2141. package/docs/modules/object_set.html +0 -1
  2142. package/docs/modules/object_size.html +0 -1
  2143. package/docs/modules/object_snakeCaseKeys.html +0 -1
  2144. package/docs/modules/object_values.html +0 -1
  2145. package/docs/modules/string_base64.html +0 -1
  2146. package/docs/modules/string_base64Decode.html +0 -1
  2147. package/docs/modules/string_camelCase.html +0 -1
  2148. package/docs/modules/string_capitalize.html +0 -1
  2149. package/docs/modules/string_chars.html +0 -1
  2150. package/docs/modules/string_contains.html +0 -1
  2151. package/docs/modules/string_decapitalize.html +0 -1
  2152. package/docs/modules/string_equals.html +0 -1
  2153. package/docs/modules/string_forEach.html +0 -1
  2154. package/docs/modules/string_humanize.html +0 -1
  2155. package/docs/modules/string_isEmpty.html +0 -1
  2156. package/docs/modules/string_isString.html +0 -1
  2157. package/docs/modules/string_kebabCase.html +0 -1
  2158. package/docs/modules/string_lines.html +0 -1
  2159. package/docs/modules/string_map.html +0 -1
  2160. package/docs/modules/string_mask.html +0 -1
  2161. package/docs/modules/string_pad.html +0 -1
  2162. package/docs/modules/string_parseInt.html +0 -1
  2163. package/docs/modules/string_pluralize.html +0 -1
  2164. package/docs/modules/string_reduce.html +0 -1
  2165. package/docs/modules/string_repeat.html +0 -1
  2166. package/docs/modules/string_reverse.html +0 -1
  2167. package/docs/modules/string_snakeCase.html +0 -1
  2168. package/docs/modules/string_swapCase.html +0 -1
  2169. package/docs/modules/string_truncate.html +0 -1
  2170. package/docs/modules/string_words.html +0 -1
  2171. package/docs/modules/utils.html +0 -7
  2172. package/scripts/docs.js +0 -11
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_js_1 = require("../../utils.js");
4
- exports.default = median;
5
4
  function median(arr, path) {
6
5
  const items = [...arr].sort((a, b) => a - b);
7
6
  const half = Math.floor(items.length / 2);
@@ -14,4 +13,5 @@ function median(arr, path) {
14
13
  return reducer(items[half]);
15
14
  return (reducer(items[half - 1]) + reducer(items[half])) / 2;
16
15
  }
16
+ exports.default = median;
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/median/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD,kBAAe,MAAM,CAAC;AAOtB,SAAS,MAAM,CAAQ,GAAY,EAAE,IAAa;IAChD,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE1C,IAAI,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC;IAEzC,IAAI,IAAI,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;QAE9B,OAAO,GAAG,CAAC,IAAW,EAAE,EAAE,CACxB,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC;KAC5E;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAElD,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\nexport default median;\n\nfunction median<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], path?: Path): number;\nfunction median<Value>(array: Value[]): number;\nfunction median<Value>(arr: Value[], path?: string): number {\n const items = [...arr].sort((a: any, b: any) => a - b);\n const half = Math.floor(items.length / 2);\n\n let reducer = (item: Value): any => item;\n\n if (path) {\n const keys = pathToKeys(path);\n\n reducer = (item: Value) =>\n keys.reduce((prev, curr) => (prev && (prev as any)[curr]) || prev, item);\n }\n\n if (items.length % 2) return reducer(items[half]);\n\n return (reducer(items[half - 1]) + reducer(items[half])) / 2;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/median/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAqBnD,SAAS,MAAM,CAAQ,GAAY,EAAE,IAAa;IAChD,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE1C,IAAI,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC;IAEzC,IAAI,IAAI,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;QAE9B,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC;KAC1G;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAElD,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/D,CAAC;AAED,kBAAe,MAAM,CAAC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\n/**\n * Returns the median value of a given path\n * @param array\n * @param [path]\n * @example\n * median([{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}], 'foo'); // 15\n */\nfunction median<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], path?: Path): number;\n\n/**\n * Returns the median value of a given path\n * @param array\n * @example\n * median([1, 1, 2, 4]); // 1.5\n */\nfunction median<Value>(array: Value[]): number;\nfunction median<Value>(arr: Value[], path?: string): number {\n const items = [...arr].sort((a: any, b: any) => a - b);\n const half = Math.floor(items.length / 2);\n\n let reducer = (item: Value): any => item;\n\n if (path) {\n const keys = pathToKeys(path);\n\n reducer = (item: Value): any => keys.reduce((prev, curr) => (prev && (prev as any)[curr]) || prev, item);\n }\n\n if (items.length % 2) return reducer(items[half]);\n\n return (reducer(items[half - 1]) + reducer(items[half])) / 2;\n}\n\nexport default median;\n"]}
@@ -3,17 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Returns the median value of a given path
10
- * @memberof Array.prototype
11
- * @function median
12
- * @param {String} [path]
13
- * @returns {Number}
14
- * @example
15
- * [1, 1, 2, 4].median(); // 1.5
16
- * [{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}].median('foo'); // 15
17
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
18
8
  (0, utils_js_1.addPrototype)(Array, "median", index_js_1.default);
19
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/median/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAAgC;AAChC,6CAAqD;AAQrD;;;;;;;;;GASG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,QAAQ,EAAE,kBAAM,CAAC,CAAC","sourcesContent":["import median from \"./index.js\";\nimport { addPrototype, PathT } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n median(path?: T extends Record<string, unknown> ? PathT<T> : never): number;\n }\n}\n\n/**\n * Returns the median value of a given path\n * @memberof Array.prototype\n * @function median\n * @param {String} [path]\n * @returns {Number}\n * @example\n * [1, 1, 2, 4].median(); // 1.5\n * [{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}].median('foo'); // 15\n */\naddPrototype(Array, \"median\", median);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/median/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAAqD;AACrD,0DAAgC;AAiBhC,IAAA,uBAAY,EAAC,KAAK,EAAE,QAAQ,EAAE,kBAAM,CAAC,CAAC","sourcesContent":["import { PathT, addPrototype } from \"../../utils.js\";\nimport median from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns the median value of a given path\n * @param [path]\n * @example\n * [1, 1, 2, 4].median(); // 1.5\n * @example\n * [{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}].median('foo'); // 15\n */\n median(path?: T extends Record<string, unknown> ? PathT<T> : never): number;\n }\n}\n\naddPrototype(Array, \"median\", median);\n"]}
@@ -1,5 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Merges array with the given array
5
+ * @param arr
6
+ * @param arr2
7
+ * @example
8
+ * let myArray = [1, 2, 3]
9
+ * merge(myArray, [0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]
10
+ */
3
11
  function merge(arr, arr2) {
4
12
  arr.push(...arr2);
5
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/merge/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,KAAK,CAAI,GAAQ,EAAE,IAAe;IACxD,GAAG,CAAC,IAAI,CAAC,GAAI,IAAgB,CAAC,CAAC;AACjC,CAAC;AAFD,wBAEC","sourcesContent":["export default function merge<T>(arr: T[], arr2: unknown[]): void {\n arr.push(...(arr2 as never[]));\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/merge/index.ts"],"names":[],"mappings":";;AAAA;;;;;;;GAOG;AACH,SAAwB,KAAK,CAAI,GAAQ,EAAE,IAAe;IACxD,GAAG,CAAC,IAAI,CAAC,GAAI,IAAgB,CAAC,CAAC;AACjC,CAAC;AAFD,wBAEC","sourcesContent":["/**\n * Merges array with the given array\n * @param arr\n * @param arr2\n * @example\n * let myArray = [1, 2, 3]\n * merge(myArray, [0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]\n */\nexport default function merge<T>(arr: T[], arr2: unknown[]): void {\n arr.push(...(arr2 as never[]));\n}\n"]}
@@ -3,16 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Merges array with the given array
10
- * @memberof Array.prototype
11
- * @function merge
12
- * @param {*} value
13
- * @example
14
- * var myArray = [1, 2, 3]
15
- * myArray.merge([0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]
16
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
17
8
  (0, utils_js_1.addPrototype)(Array, "merge", index_js_1.default);
18
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/merge/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA+B;AAC/B,6CAA8C;AAS9C;;;;;;;;GAQG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,EAAE,kBAAK,CAAC,CAAC","sourcesContent":["import merge from \"./index.js\";\nimport { addPrototype } from \"../../utils.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n merge(arr: unknown[]): void;\n }\n}\n\n/**\n * Merges array with the given array\n * @memberof Array.prototype\n * @function merge\n * @param {*} value\n * @example\n * var myArray = [1, 2, 3]\n * myArray.merge([0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]\n */\naddPrototype(Array, \"merge\", merge);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/merge/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAA8C;AAC9C,0DAA+B;AAiB/B,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,EAAE,kBAAK,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport merge from \"./index.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n\n /**\n * Merges array with the given array\n * @param arr\n * @example\n * let myArray = [1, 2, 3]\n * myArray.merge([0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]\n */\n merge(arr: unknown[]): void;\n }\n}\n\naddPrototype(Array, \"merge\", merge);\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_js_1 = require("../../utils.js");
4
- exports.default = min;
5
4
  function min(arr, path) {
6
5
  let reducer = (item) => item;
7
6
  if (path) {
@@ -10,4 +9,5 @@ function min(arr, path) {
10
9
  }
11
10
  return arr.reduce((prev, cur) => Math.min(prev, reducer(cur)), +Infinity);
12
11
  }
12
+ exports.default = min;
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/min/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD,kBAAe,GAAG,CAAC;AAOnB,SAAS,GAAG,CAAQ,GAAY,EAAE,IAAa;IAC7C,IAAI,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC;IAEzC,IAAI,IAAI,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;QAE9B,OAAO,GAAG,CAAC,IAAW,EAAE,EAAE,CACxB,IAAI,CAAC,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,EAC1D,IAAI,CACL,CAAC;KACL;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAC5E,CAAC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\nexport default min;\n\nfunction min<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], path?: Path): number;\nfunction min<Value>(array: Value[]): number;\nfunction min<Value>(arr: Value[], path?: string): number {\n let reducer = (item: Value): any => item;\n\n if (path) {\n const keys = pathToKeys(path);\n\n reducer = (item: Value) =>\n keys.reduce(\n (prev, curr) => (prev && (prev as any)[curr]) || +Infinity,\n item,\n );\n }\n\n return arr.reduce((prev, cur) => Math.min(prev, reducer(cur)), +Infinity);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/min/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAuBnD,SAAS,GAAG,CAAQ,GAAY,EAAE,IAAa;IAC7C,IAAI,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC;IAEzC,IAAI,IAAI,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;QAE9B,OAAO,GAAG,CAAC,IAAW,EAAO,EAAE,CAAC,IAAI,CAAC,MAAM,CACzC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,EAC1D,IAAI,CACL,CAAC;KACH;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAC5E,CAAC;AAED,kBAAe,GAAG,CAAC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\n/**\n * Returns the minimum value of a given path\n * @param array\n * @param [path]\n * @example\n * min([{a: 1}, {a: 2}, {a: 3}], 'a'); // 1\n * @example\n * min([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // 1\n */\nfunction min<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], path?: Path): number;\n\n/**\n * Returns the minimum value of a given path\n * @param array\n * @example\n * min([1, 2, 3]); // 1\n */\nfunction min<Value>(array: Value[]): number;\nfunction min<Value>(arr: Value[], path?: string): number {\n let reducer = (item: Value): any => item;\n\n if (path) {\n const keys = pathToKeys(path);\n\n reducer = (item: Value): any => keys.reduce(\n (prev, curr) => (prev && (prev as any)[curr]) || +Infinity,\n item,\n );\n }\n\n return arr.reduce((prev, cur) => Math.min(prev, reducer(cur)), +Infinity);\n}\n\nexport default min;\n"]}
@@ -3,18 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Returns the minimum value of a given path
10
- * @memberof Array.prototype
11
- * @function min
12
- * @param {String} [path]
13
- * @returns {Number}
14
- * @example
15
- * [1, 2, 3].min(); // 1
16
- * [{a: 1}, {a: 2}, {a: 3}].min('a'); // 1
17
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].min('a.b'); // 1
18
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
19
8
  (0, utils_js_1.addPrototype)(Array, "min", index_js_1.default);
20
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/min/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA6B;AAC7B,6CAAqD;AAQrD;;;;;;;;;;GAUG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,KAAK,EAAE,kBAAG,CAAC,CAAC","sourcesContent":["import min from \"./index.js\";\nimport { addPrototype, PathT } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n min(path?: T extends Record<string, unknown> ? PathT<T> : never): number;\n }\n}\n\n/**\n * Returns the minimum value of a given path\n * @memberof Array.prototype\n * @function min\n * @param {String} [path]\n * @returns {Number}\n * @example\n * [1, 2, 3].min(); // 1\n * [{a: 1}, {a: 2}, {a: 3}].min('a'); // 1\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].min('a.b'); // 1\n */\naddPrototype(Array, \"min\", min);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/min/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAAqD;AACrD,0DAA6B;AAmB7B,IAAA,uBAAY,EAAC,KAAK,EAAE,KAAK,EAAE,kBAAG,CAAC,CAAC","sourcesContent":["import { PathT, addPrototype } from \"../../utils.js\";\nimport min from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns the minimum value of a given path\n * @param [path]\n * @example\n * [1, 2, 3].min(); // 1\n * @example\n * [{a: 1}, {a: 2}, {a: 3}].min('a'); // 1\n * @example\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].min('a.b'); // 1\n */\n min(path?: T extends Record<string, unknown> ? PathT<T> : never): number;\n }\n}\n\naddPrototype(Array, \"min\", min);\n"]}
@@ -1,12 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ // eslint-disable-next-line max-params
4
+ function filter(arr, link, key, id = null) {
5
+ return arr
6
+ .filter(item => item[link] === id)
7
+ .map(item => ({
8
+ ...item,
9
+ children: filter(arr, link, key, item[key]),
10
+ }));
11
+ }
12
+ /**
13
+ * Given a flat array of objects linked to one another, it will nest them recursively
14
+ * @param arr
15
+ * @param [link="parent_id"]
16
+ * @param [key="id"]
17
+ * @example
18
+ * const comments = [
19
+ * { id: 1, comment_id: null },
20
+ * { id: 2, comment_id: 1 },
21
+ * { id: 3, comment_id: 1 },
22
+ * { id: 4, comment_id: 2 },
23
+ * { id: 5, comment_id: 4 }
24
+ * ];
25
+ * nest(comments, "comment_id"); // [{ id: 1, comment_id: null, children: [...] }]
26
+ */
3
27
  function nest(arr, link = "parent_id", key = "id") {
4
28
  return filter(arr, link, key);
5
29
  }
6
30
  exports.default = nest;
7
- function filter(arr, link, key, id = null) {
8
- return arr
9
- .filter((item) => item[link] === id)
10
- .map((item) => ({ ...item, children: filter(arr, link, key, item[key]) }));
11
- }
12
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/nest/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,IAAI,CAC1B,GAAQ,EACR,IAAI,GAAG,WAAW,EAClB,GAAG,GAAG,IAAI;IAEV,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC;AAND,uBAMC;AAED,SAAS,MAAM,CACb,GAA8B,EAC9B,IAAY,EACZ,GAAW,EACX,KAAc,IAAI;IAElB,OAAO,GAAG;SACP,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC","sourcesContent":["export default function nest<T extends Record<string, unknown>>(\n arr: T[],\n link = \"parent_id\",\n key = \"id\",\n): Record<string, unknown>[] {\n return filter(arr, link, key);\n}\n\nfunction filter(\n arr: Record<string, unknown>[],\n link: string,\n key: string,\n id: unknown = null,\n): Record<string, unknown>[] {\n return arr\n .filter((item) => item[link] === id)\n .map((item) => ({ ...item, children: filter(arr, link, key, item[key]) }));\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/nest/index.ts"],"names":[],"mappings":";;AAAA,sCAAsC;AACtC,SAAS,MAAM,CACb,GAAmC,EACnC,IAAY,EACZ,GAAW,EACX,KAAc,IAAI;IAElB,OAAO,GAAG;SACP,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;SACjC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACZ,GAAG,IAAI;QACP,QAAQ,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;KAC5C,CAAC,CAAC,CAAC;AACR,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAwB,IAAI,CAC1B,GAAQ,EACR,IAAI,GAAG,WAAW,EAClB,GAAG,GAAG,IAAI;IAEV,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC;AAND,uBAMC","sourcesContent":["// eslint-disable-next-line max-params\nfunction filter(\n arr: Array<Record<string, unknown>>,\n link: string,\n key: string,\n id: unknown = null,\n): Array<Record<string, unknown>> {\n return arr\n .filter(item => item[link] === id)\n .map(item => ({\n ...item,\n children: filter(arr, link, key, item[key]),\n }));\n}\n\n/**\n * Given a flat array of objects linked to one another, it will nest them recursively\n * @param arr\n * @param [link=\"parent_id\"]\n * @param [key=\"id\"]\n * @example\n * const comments = [\n * { id: 1, comment_id: null },\n * { id: 2, comment_id: 1 },\n * { id: 3, comment_id: 1 },\n * { id: 4, comment_id: 2 },\n * { id: 5, comment_id: 4 }\n * ];\n * nest(comments, \"comment_id\"); // [{ id: 1, comment_id: null, children: [...] }]\n */\nexport default function nest<T extends Record<string, unknown>>(\n arr: T[],\n link = \"parent_id\",\n key = \"id\",\n): Array<Record<string, unknown>> {\n return filter(arr, link, key);\n}\n"]}
@@ -3,24 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Given a flat array of objects linked to one another, it will nest them recursively
10
- * @memberof Array.prototype
11
- * @function nest
12
- * @param {String} link
13
- * @param {String} key
14
- * @returns {Object[]}
15
- * @example
16
- * const comments = [
17
- * { id: 1, comment_id: null },
18
- * { id: 2, comment_id: 1 },
19
- * { id: 3, comment_id: 1 },
20
- * { id: 4, comment_id: 2 },
21
- * { id: 5, comment_id: 4 }
22
- * ];
23
- * comments.nest("comment_id"); // [{ id: 1, comment_id: null, children: [...] }]
24
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
25
8
  (0, utils_js_1.addPrototype)(Array, "nest", index_js_1.default);
26
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/nest/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA8B;AAC9B,6CAA8C;AAS9C;;;;;;;;;;;;;;;;GAgBG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,MAAM,EAAE,kBAAI,CAAC,CAAC","sourcesContent":["import nest from \"./index.js\";\nimport { addPrototype } from \"../../utils.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n nest(link?: string, key?: string): Record<string, unknown>[];\n }\n}\n\n/**\n * Given a flat array of objects linked to one another, it will nest them recursively\n * @memberof Array.prototype\n * @function nest\n * @param {String} link\n * @param {String} key\n * @returns {Object[]}\n * @example\n * const comments = [\n * { id: 1, comment_id: null },\n * { id: 2, comment_id: 1 },\n * { id: 3, comment_id: 1 },\n * { id: 4, comment_id: 2 },\n * { id: 5, comment_id: 4 }\n * ];\n * comments.nest(\"comment_id\"); // [{ id: 1, comment_id: null, children: [...] }]\n */\naddPrototype(Array, \"nest\", nest);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/nest/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAA8C;AAC9C,0DAA8B;AAwB9B,IAAA,uBAAY,EAAC,KAAK,EAAE,MAAM,EAAE,kBAAI,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport nest from \"./index.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n\n /**\n * Given a flat array of objects linked to one another, it will nest them recursively\n * @param [link=\"parent_id\"]\n * @param [key=\"id\"]\n * @example\n * const comments = [\n * { id: 1, comment_id: null },\n * { id: 2, comment_id: 1 },\n * { id: 3, comment_id: 1 },\n * { id: 4, comment_id: 2 },\n * { id: 5, comment_id: 4 }\n * ];\n * comments.nest(\"comment_id\"); // [{ id: 1, comment_id: null, children: [...] }]\n */\n nest(link?: string, key?: string): Array<Record<string, unknown>>;\n }\n}\n\naddPrototype(Array, \"nest\", nest);\n"]}
@@ -6,13 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ORDER = void 0;
7
7
  const utils_js_1 = require("../../utils.js");
8
8
  const index_js_1 = __importDefault(require("../contains/index.js"));
9
- exports.default = orderBy;
10
- function orderBy(arr, field, order = "asc" /* ASC */) {
11
- if (field && (0, index_js_1.default)(["asc" /* ASC */, "desc" /* DESC */], field)) {
9
+ var ORDER;
10
+ (function (ORDER) {
11
+ ORDER["ASC"] = "asc";
12
+ ORDER["DESC"] = "desc";
13
+ })(ORDER || (ORDER = {}));
14
+ exports.ORDER = ORDER;
15
+ function orderBy(arr, field, order = "asc" /* ORDER.ASC */) {
16
+ if (field && (0, index_js_1.default)(["asc" /* ORDER.ASC */, "desc" /* ORDER.DESC */], field)) {
12
17
  order = field;
18
+ // eslint-disable-next-line no-undefined
13
19
  field = undefined;
14
20
  }
15
- const iterator = order === "asc" /* ASC */
21
+ const iterator = order === "asc" /* ORDER.ASC */
16
22
  ? (a, b) => (a > b ? 1 : a < b ? -1 : 0)
17
23
  : (a, b) => (a < b ? 1 : a > b ? -1 : 0);
18
24
  if (field) {
@@ -22,9 +28,5 @@ function orderBy(arr, field, order = "asc" /* ASC */) {
22
28
  }
23
29
  return arr.sort(iterator);
24
30
  }
25
- var ORDER;
26
- (function (ORDER) {
27
- ORDER["ASC"] = "asc";
28
- ORDER["DESC"] = "desc";
29
- })(ORDER = exports.ORDER || (exports.ORDER = {}));
31
+ exports.default = orderBy;
30
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/orderBy/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAmD;AACnD,oEAA4C;AAE5C,kBAAe,OAAO,CAAC;AAOvB,SAAS,OAAO,CACd,GAAY,EACZ,KAAc,EACd,uBAAyB;IAEzB,IAAI,KAAK,IAAI,IAAA,kBAAQ,EAAC,oCAAuB,EAAE,KAAK,CAAC,EAAE;QACrD,KAAK,GAAG,KAAe,CAAC;QACxB,KAAK,GAAG,SAAS,CAAC;KACnB;IAED,MAAM,QAAQ,GACZ,KAAK,oBAAc;QACjB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7C,IAAI,KAAK,EAAE;QACT,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QAE3E,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7D;IAED,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC5B,CAAC;AAED,IAAkB,KAGjB;AAHD,WAAkB,KAAK;IACrB,oBAAW,CAAA;IACX,sBAAa,CAAA;AACf,CAAC,EAHiB,KAAK,GAAL,aAAK,KAAL,aAAK,QAGtB","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\nimport contains from \"../contains/index.js\";\n\nexport default orderBy;\n\nfunction orderBy<Value>(arr: Value[], order?: OrderT): Value[];\nfunction orderBy<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], field: Path, order?: OrderT): Value[];\nfunction orderBy<Value>(\n arr: Value[],\n field?: string,\n order: OrderT = ORDER.ASC,\n): Value[] {\n if (field && contains([ORDER.ASC, ORDER.DESC], field)) {\n order = field as OrderT;\n field = undefined;\n }\n\n const iterator: (a: any, b: any) => number =\n order === ORDER.ASC\n ? (a, b) => (a > b ? 1 : a < b ? -1 : 0)\n : (a, b) => (a < b ? 1 : a > b ? -1 : 0);\n\n if (field) {\n const keys = pathToKeys(field);\n const reducer = (item: any) => keys.reduce((prev, cur) => prev[cur], item);\n\n return arr.sort((a, b) => iterator(reducer(a), reducer(b)));\n }\n\n return arr.sort(iterator);\n}\n\nexport const enum ORDER {\n ASC = \"asc\",\n DESC = \"desc\",\n}\n\nexport type OrderT = \"asc\" | \"desc\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/orderBy/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAmD;AACnD,oEAA4C;AAE5C,IAAW,KAGV;AAHD,WAAW,KAAK;IACd,oBAAW,CAAA;IACX,sBAAa,CAAA;AACf,CAAC,EAHU,KAAK,KAAL,KAAK,QAGf;AAqDQ,sBAAK;AA5Bd,SAAS,OAAO,CACd,GAAY,EACZ,KAAc,EACd,6BAAyB;IAEzB,IAAI,KAAK,IAAI,IAAA,kBAAQ,EAAC,gDAAuB,EAAE,KAAK,CAAC,EAAE;QACrD,KAAK,GAAG,KAAe,CAAC;QACxB,wCAAwC;QACxC,KAAK,GAAG,SAAS,CAAC;KACnB;IAED,MAAM,QAAQ,GACV,KAAK,0BAAc;QACnB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAErD,IAAI,KAAK,EAAE;QACT,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,CAAC,IAAS,EAAmB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QAE5F,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7D;IAED,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC5B,CAAC;AAED,kBAAe,OAAO,CAAC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\nimport contains from \"../contains/index.js\";\n\nconst enum ORDER {\n ASC = \"asc\",\n DESC = \"desc\",\n}\n\n/**\n * Sorts the array\n * @param arr\n * @param [order=\"asc\"]\n * @example\n * orderBy([2, 1, 2, 5]); // [1,2,2,5]\n * @example\n * orderBy([2, 1, 2, 5], \"desc\"); // [5,2,2,1]\n */\nfunction orderBy<Value>(arr: Value[], order?: OrderT): Value[];\n\n/**\n * Sorts the array\n * @param array\n * @param field\n * @param [order=\"asc\"]\n * @example\n * orderBy([{count:1}, {count:20}, {count:15}], \"count\", \"asc\"); // [{count:1},{count:15},{count:20}]\n */\nfunction orderBy<\n Value extends Record<string, unknown>,\n Path extends PathT<Value> = never,\n>(array: Value[], field: Path, order?: OrderT): Value[];\nfunction orderBy<Value>(\n arr: Value[],\n field?: string,\n order: OrderT = ORDER.ASC,\n): Value[] {\n if (field && contains([ORDER.ASC, ORDER.DESC], field)) {\n order = field as OrderT;\n // eslint-disable-next-line no-undefined\n field = undefined;\n }\n\n const iterator: (a: any, b: any) => number\n = order === ORDER.ASC\n ? (a, b): number => (a > b ? 1 : a < b ? -1 : 0)\n : (a, b): number => (a < b ? 1 : a > b ? -1 : 0);\n\n if (field) {\n const keys = pathToKeys(field);\n const reducer = (item: any): number | string => keys.reduce((prev, cur) => prev[cur], item);\n\n return arr.sort((a, b) => iterator(reducer(a), reducer(b)));\n }\n\n return arr.sort(iterator);\n}\n\nexport default orderBy;\n\nexport { ORDER };\n\nexport type OrderT = \"asc\" | \"desc\";\n"]}
@@ -3,19 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * sorts the array
10
- * @memberof Array.prototype
11
- * @function orderBy
12
- * @param {String} [field]
13
- * @param {"asc"|"desc"} [order="asc"]
14
- * @returns {Array}
15
- * @example
16
- * [2, 1, 2, 5].orderBy(); // [1,2,2,5]
17
- * [2, 1, 2, 5].orderBy("desc"); // [5,2,2,1]
18
- * [{count:1}, {count:20}, {count:15}].orderBy("count", "asc"); // [{count:1},{count:15},{count:20}]
19
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
20
8
  (0, utils_js_1.addPrototype)(Array, "orderBy", index_js_1.default);
21
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/orderBy/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA6C;AAC7C,6CAAqD;AAarD;;;;;;;;;;;GAWG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,SAAS,EAAE,kBAAO,CAAC,CAAC","sourcesContent":["import orderBy, { OrderT } from \"./index.js\";\nimport { addPrototype, PathT } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n orderBy(order?: OrderT): T[];\n\n orderBy(\n field: T extends Record<string, unknown> ? PathT<T> : never,\n order?: OrderT,\n ): T[];\n }\n}\n\n/**\n * sorts the array\n * @memberof Array.prototype\n * @function orderBy\n * @param {String} [field]\n * @param {\"asc\"|\"desc\"} [order=\"asc\"]\n * @returns {Array}\n * @example\n * [2, 1, 2, 5].orderBy(); // [1,2,2,5]\n * [2, 1, 2, 5].orderBy(\"desc\"); // [5,2,2,1]\n * [{count:1}, {count:20}, {count:15}].orderBy(\"count\", \"asc\"); // [{count:1},{count:15},{count:20}]\n */\naddPrototype(Array, \"orderBy\", orderBy);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/orderBy/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAAqD;AACrD,0DAA6C;AA6B7C,IAAA,uBAAY,EAAC,KAAK,EAAE,SAAS,EAAE,kBAAO,CAAC,CAAC","sourcesContent":["import { PathT, addPrototype } from \"../../utils.js\";\nimport orderBy, { OrderT } from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Sorts the array\n * @param [order=\"asc\"]\n * @example\n * [2, 1, 2, 5].orderBy(); // [1,2,2,5]\n * @example\n * [2, 1, 2, 5].orderBy(\"desc\"); // [5,2,2,1]\n */\n orderBy(order?: OrderT): T[];\n\n /**\n * Sorts the array\n * @param field\n * @param [order=\"asc\"]\n * @example\n * [{count:1}, {count:20}, {count:15}].orderBy(\"count\", \"asc\"); // [{count:1},{count:15},{count:20}]\n */\n orderBy(\n field: T extends Record<string, unknown> ? PathT<T> : never,\n order?: OrderT,\n ): T[];\n }\n}\n\naddPrototype(Array, \"orderBy\", orderBy);\n"]}
@@ -4,6 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../repeat/index.js"));
7
+ /**
8
+ * FillS the array with the given value until the array reaches the specified size
9
+ * @param arr
10
+ * @param size
11
+ * @param [value=0]
12
+ * @example
13
+ * pad([1, 2, 3], 5, 0); // [1, 2, 3, 0, 0]
14
+ * @example
15
+ * pad([1, 2, 3], -5, 0); // [0, 0, 1, 2, 3]
16
+ */
7
17
  function pad(arr, size, value = 0) {
8
18
  const length = Math.abs(size) - arr.length;
9
19
  if (length <= 0)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pad/index.ts"],"names":[],"mappings":";;;;;AAAA,kEAAwC;AAExC,SAAwB,GAAG,CACzB,GAAQ,EACR,IAAY,EACZ,QAAW,CAAU;IAErB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;IAE3C,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IAE5B,MAAM,KAAK,GAAG,IAAA,kBAAM,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEpC,IAAI,IAAI,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEvC,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAdD,sBAcC","sourcesContent":["import repeat from \"../repeat/index.js\";\n\nexport default function pad<T>(\n arr: T[],\n size: number,\n value: T = 0 as never,\n): T[] {\n const length = Math.abs(size) - arr.length;\n\n if (length <= 0) return arr;\n\n const array = repeat(length, value);\n\n if (size < 0) return array.concat(arr);\n\n return arr.concat(array);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pad/index.ts"],"names":[],"mappings":";;;;;AAAA,kEAAwC;AAExC;;;;;;;;;GASG;AACH,SAAwB,GAAG,CACzB,GAAQ,EACR,IAAY,EACZ,QAAW,CAAU;IAErB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;IAE3C,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IAE5B,MAAM,KAAK,GAAG,IAAA,kBAAM,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEpC,IAAI,IAAI,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEvC,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAdD,sBAcC","sourcesContent":["import repeat from \"../repeat/index.js\";\n\n/**\n * FillS the array with the given value until the array reaches the specified size\n * @param arr\n * @param size\n * @param [value=0]\n * @example\n * pad([1, 2, 3], 5, 0); // [1, 2, 3, 0, 0]\n * @example\n * pad([1, 2, 3], -5, 0); // [0, 0, 1, 2, 3]\n */\nexport default function pad<T>(\n arr: T[],\n size: number,\n value: T = 0 as never,\n): T[] {\n const length = Math.abs(size) - arr.length;\n\n if (length <= 0) return arr;\n\n const array = repeat(length, value);\n\n if (size < 0) return array.concat(arr);\n\n return arr.concat(array);\n}\n"]}
@@ -3,18 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * FillS the array with the given value until the array reaches the specified size
10
- * @memberof Array.prototype
11
- * @function pad
12
- * @param {Number} size
13
- * @param {*} [value=0]
14
- * @returns {Array}
15
- * @example
16
- * [1, 2, 3].pad(5, 0); // [1, 2, 3, 0, 0]
17
- * [1, 2, 3].pad(-5, 0); // [0, 0, 1, 2, 3]
18
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
19
8
  (0, utils_js_1.addPrototype)(Array, "pad", index_js_1.default);
20
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/pad/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA6B;AAC7B,6CAA8C;AAQ9C;;;;;;;;;;GAUG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,KAAK,EAAE,kBAAG,CAAC,CAAC","sourcesContent":["import pad from \"./index.js\";\nimport { addPrototype } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n pad(size: number, value?: T): T[];\n }\n}\n\n/**\n * FillS the array with the given value until the array reaches the specified size\n * @memberof Array.prototype\n * @function pad\n * @param {Number} size\n * @param {*} [value=0]\n * @returns {Array}\n * @example\n * [1, 2, 3].pad(5, 0); // [1, 2, 3, 0, 0]\n * [1, 2, 3].pad(-5, 0); // [0, 0, 1, 2, 3]\n */\naddPrototype(Array, \"pad\", pad);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/pad/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAA8C;AAC9C,0DAA6B;AAkB7B,IAAA,uBAAY,EAAC,KAAK,EAAE,KAAK,EAAE,kBAAG,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport pad from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * FillS the array with the given value until the array reaches the specified size\n * @param size\n * @param [value=0]\n * @example\n * [1, 2, 3].pad(5, 0); // [1, 2, 3, 0, 0]\n * @example\n * [1, 2, 3].pad(-5, 0); // [0, 0, 1, 2, 3]\n */\n pad(size: number, value?: T): T[];\n }\n}\n\naddPrototype(Array, \"pad\", pad);\n"]}
@@ -1,7 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Groups the elements into two arrays,
5
+ * depending on the provided function's truthiness for each element
6
+ * @param arr
7
+ * @param fn
8
+ * @example
9
+ * const users = [
10
+ * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }
11
+ * ];
12
+ * partition(users, o => o.active); // [
13
+ * [{ 'user': 'fred', 'age': 40, 'active': true }],
14
+ * [{ 'user': 'barney', 'age': 36, 'active': false }]
15
+ * ]
16
+ */
3
17
  function partition(arr, fn) {
4
- return arr.reduce((prev, value, index, array) => {
18
+ return arr.reduce(
19
+ // eslint-disable-next-line max-params
20
+ (prev, value, index, array) => {
5
21
  prev[fn(value, index, array) ? 0 : 1].push(value);
6
22
  return prev;
7
23
  }, [[], []]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/partition/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,SAAS,CAC/B,GAAQ,EACR,EAAoD;IAEpD,OAAO,GAAG,CAAC,MAAM,CACf,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC;IACd,CAAC,EACD,CAAC,EAAE,EAAE,EAAE,CAAe,CACvB,CAAC;AACJ,CAAC;AAZD,4BAYC","sourcesContent":["export default function partition<T>(\n arr: T[],\n fn: (value: T, index: number, array: T[]) => boolean,\n): [T[], T[]] {\n return arr.reduce(\n (prev, value, index, array) => {\n prev[fn(value, index, array) ? 0 : 1].push(value);\n\n return prev;\n },\n [[], []] as [T[], T[]],\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/partition/index.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;GAaG;AACH,SAAwB,SAAS,CAC/B,GAAQ,EACR,EAAoD;IAEpD,OAAO,GAAG,CAAC,MAAM;IACf,sCAAsC;IACtC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC;IACd,CAAC,EACD,CAAC,EAAE,EAAE,EAAE,CAAC,CACT,CAAC;AACJ,CAAC;AAbD,4BAaC","sourcesContent":["/**\n * Groups the elements into two arrays,\n * depending on the provided function's truthiness for each element\n * @param arr\n * @param fn\n * @example\n * const users = [\n * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }\n * ];\n * partition(users, o => o.active); // [\n * [{ 'user': 'fred', 'age': 40, 'active': true }],\n * [{ 'user': 'barney', 'age': 36, 'active': false }]\n * ]\n */\nexport default function partition<T>(\n arr: T[],\n fn: (value: T, index: number, array: T[]) => boolean,\n): [T[], T[]] {\n return arr.reduce<[T[], T[]]>(\n // eslint-disable-next-line max-params\n (prev, value, index, array) => {\n prev[fn(value, index, array) ? 0 : 1].push(value);\n\n return prev;\n },\n [[], []],\n );\n}\n"]}
@@ -3,23 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Groups the elements into two arrays,
10
- * depending on the provided function's truthiness for each element
11
- * @memberof Array.prototype
12
- * @function partition
13
- * @param {Function} fn
14
- * @returns {Array}
15
- * @example
16
- * const users = [
17
- * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }
18
- * ];
19
- * users.partition(o => o.active); // [
20
- * [{ 'user': 'fred', 'age': 40, 'active': true }],
21
- * [{ 'user': 'barney', 'age': 36, 'active': false }]
22
- * ]
23
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
24
8
  (0, utils_js_1.addPrototype)(Array, "partition", index_js_1.default);
25
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/partition/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAAmC;AACnC,6CAA8C;AAQ9C;;;;;;;;;;;;;;;GAeG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,WAAW,EAAE,kBAAS,CAAC,CAAC","sourcesContent":["import partition from \"./index.js\";\nimport { addPrototype } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n partition(fn: (value: T, index: number, array: T[]) => boolean): [T[], T[]];\n }\n}\n\n/**\n * Groups the elements into two arrays,\n * depending on the provided function's truthiness for each element\n * @memberof Array.prototype\n * @function partition\n * @param {Function} fn\n * @returns {Array}\n * @example\n * const users = [\n * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }\n * ];\n * users.partition(o => o.active); // [\n * [{ 'user': 'fred', 'age': 40, 'active': true }],\n * [{ 'user': 'barney', 'age': 36, 'active': false }]\n * ]\n */\naddPrototype(Array, \"partition\", partition);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/partition/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAA8C;AAC9C,0DAAmC;AAsBnC,IAAA,uBAAY,EAAC,KAAK,EAAE,WAAW,EAAE,kBAAS,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport partition from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Groups the elements into two arrays,\n * depending on the provided function's truthiness for each element\n * @param fn\n * @example\n * const users = [\n * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }\n * ];\n * users.partition(o => o.active); // [\n * [{ 'user': 'fred', 'age': 40, 'active': true }],\n * [{ 'user': 'barney', 'age': 36, 'active': false }]\n * ]\n */\n partition(fn: (value: T, index: number, array: T[]) => boolean): [T[], T[]];\n }\n}\n\naddPrototype(Array, \"partition\", partition);\n"]}
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_js_1 = require("../../utils.js");
4
+ /**
5
+ * Returns all of the values for the given path
6
+ * @param array
7
+ * @param path
8
+ * @example
9
+ * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a'); // [{b: 1}, {b: 2}, {b: 3}]
10
+ * @example
11
+ * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // [1, 2, 3]
12
+ */
4
13
  function pluck(array, path) {
5
14
  const keys = (0, utils_js_1.pathToKeys)(path);
6
- return array.map((item) => keys.reduce((prev, cur) => (prev && prev[cur]) || undefined, item));
15
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition,no-undefined
16
+ return array.map(item => keys.reduce((prev, cur) => (prev && prev[cur]) || undefined, item));
7
17
  }
8
18
  exports.default = pluck;
9
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pluck/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD,SAAwB,KAAK,CAG3B,KAAc,EAAE,IAAU;IAC1B,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;IAE9B,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACxB,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,GAAG,CAAC,CAAC,IAAI,SAAS,EAAE,IAAI,CAAC,CAC5E,CAAC;AACJ,CAAC;AATD,wBASC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\nexport default function pluck<\n Value extends Record<string, unknown>,\n Path extends PathT<Value>,\n>(array: Value[], path: Path): unknown[] {\n const keys = pathToKeys(path);\n\n return array.map((item) =>\n keys.reduce((prev, cur) => (prev && (prev as any)[cur]) || undefined, item),\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pluck/index.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD;;;;;;;;GAQG;AACH,SAAwB,KAAK,CAG3B,KAAc,EAAE,IAAU;IAC1B,MAAM,IAAI,GAAG,IAAA,qBAAU,EAAC,IAAI,CAAC,CAAC;IAE9B,oFAAoF;IACpF,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,IAAK,IAAY,CAAC,GAAG,CAAC,CAAC,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AACxG,CAAC;AARD,wBAQC","sourcesContent":["import { PathT, pathToKeys } from \"../../utils.js\";\n\n/**\n * Returns all of the values for the given path\n * @param array\n * @param path\n * @example\n * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a'); // [{b: 1}, {b: 2}, {b: 3}]\n * @example\n * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // [1, 2, 3]\n */\nexport default function pluck<\n Value extends Record<string, unknown>,\n Path extends PathT<Value>,\n>(array: Value[], path: Path): unknown[] {\n const keys = pathToKeys(path);\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition,no-undefined\n return array.map(item => keys.reduce((prev, cur) => (prev && (prev as any)[cur]) || undefined, item));\n}\n"]}
@@ -3,17 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Returns all of the values for the given path
10
- * @memberof Array.prototype
11
- * @function pluck
12
- * @param {String} path
13
- * @returns {Array}
14
- * @example
15
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a'); // [{b: 1}, {b: 2}, {b: 3}]
16
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a.b'); // [1, 2, 3]
17
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
18
8
  (0, utils_js_1.addPrototype)(Array, "pluck", index_js_1.default);
19
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/pluck/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAA+B;AAC/B,6CAAqD;AAUrD;;;;;;;;;GASG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,EAAE,kBAAK,CAAC,CAAC","sourcesContent":["import pluck from \"./index.js\";\nimport { addPrototype, PathT } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n pluck(\n path: T extends Record<string, unknown> ? PathT<T> : never,\n ): unknown[];\n }\n}\n\n/**\n * Returns all of the values for the given path\n * @memberof Array.prototype\n * @function pluck\n * @param {String} path\n * @returns {Array}\n * @example\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a'); // [{b: 1}, {b: 2}, {b: 3}]\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a.b'); // [1, 2, 3]\n */\naddPrototype(Array, \"pluck\", pluck);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/pluck/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAAqD;AACrD,0DAA+B;AAmB/B,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,EAAE,kBAAK,CAAC,CAAC","sourcesContent":["import { PathT, addPrototype } from \"../../utils.js\";\nimport pluck from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns all of the values for the given path\n * @param path\n * @example\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a'); // [{b: 1}, {b: 2}, {b: 3}]\n * @example\n * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a.b'); // [1, 2, 3]\n */\n pluck(\n path: T extends Record<string, unknown> ? PathT<T> : never,\n ): unknown[];\n }\n}\n\naddPrototype(Array, \"pluck\", pluck);\n"]}
@@ -1,5 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Adds an item to the beginning of the array
5
+ * @param arr
6
+ * @param value
7
+ * @example
8
+ * let myArray = [1, 2, 3]
9
+ * prepend(myArray, 0); // myArray => [0, 1, 2, 3]
10
+ */
3
11
  function prepend(arr, value) {
4
12
  const array = [...arr];
5
13
  arr.length = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/prepend/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,OAAO,CAAI,GAAQ,EAAE,KAAQ;IACnD,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;IAEvB,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAEf,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5C,CAAC;AAND,0BAMC","sourcesContent":["export default function prepend<T>(arr: T[], value: T): number {\n const array = [...arr];\n\n arr.length = 0;\n\n return arr.push(...[value].concat(array));\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/prepend/index.ts"],"names":[],"mappings":";;AAAA;;;;;;;GAOG;AACH,SAAwB,OAAO,CAAI,GAAQ,EAAE,KAAQ;IACnD,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;IAEvB,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAEf,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5C,CAAC;AAND,0BAMC","sourcesContent":["/**\n * Adds an item to the beginning of the array\n * @param arr\n * @param value\n * @example\n * let myArray = [1, 2, 3]\n * prepend(myArray, 0); // myArray => [0, 1, 2, 3]\n */\nexport default function prepend<T>(arr: T[], value: T): number {\n const array = [...arr];\n\n arr.length = 0;\n\n return arr.push(...[value].concat(array));\n}\n"]}
@@ -3,16 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_js_1 = __importDefault(require("./index.js"));
7
6
  const utils_js_1 = require("../../utils.js");
8
- /**
9
- * Adds an item to the beginning of the array
10
- * @memberof Array.prototype
11
- * @function prepend
12
- * @param {*} value
13
- * @example
14
- * var myArray = [1, 2, 3]
15
- * myArray.prepend(0); // myArray => [0, 1, 2, 3]
16
- */
7
+ const index_js_1 = __importDefault(require("./index.js"));
17
8
  (0, utils_js_1.addPrototype)(Array, "prepend", index_js_1.default);
18
9
  //# sourceMappingURL=shim.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/prepend/shim.ts"],"names":[],"mappings":";;;;;AAAA,0DAAiC;AACjC,6CAA8C;AAQ9C;;;;;;;;GAQG;AACH,IAAA,uBAAY,EAAC,KAAK,EAAE,SAAS,EAAE,kBAAO,CAAC,CAAC","sourcesContent":["import prepend from \"./index.js\";\nimport { addPrototype } from \"../../utils.js\";\n\ndeclare global {\n interface Array<T> {\n prepend(value: T): number;\n }\n}\n\n/**\n * Adds an item to the beginning of the array\n * @memberof Array.prototype\n * @function prepend\n * @param {*} value\n * @example\n * var myArray = [1, 2, 3]\n * myArray.prepend(0); // myArray => [0, 1, 2, 3]\n */\naddPrototype(Array, \"prepend\", prepend);\n"]}
1
+ {"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/prepend/shim.ts"],"names":[],"mappings":";;;;;AAAA,6CAA8C;AAC9C,0DAAiC;AAgBjC,IAAA,uBAAY,EAAC,KAAK,EAAE,SAAS,EAAE,kBAAO,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport prepend from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Adds an item to the beginning of the array\n * @param value\n * @example\n * let myArray = [1, 2, 3]\n * myArray.prepend(0); // myArray => [0, 1, 2, 3]\n */\n prepend(value: T): number;\n }\n}\n\naddPrototype(Array, \"prepend\", prepend);\n"]}
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Mutates the original array to filter out the values specified
5
+ * @param arr
6
+ * @param args
7
+ * @example
8
+ * let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
9
+ * pull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ];
10
+ */
3
11
  function pull(arr, ...args) {
4
- const pulled = arr.filter((value) => !args.includes(value));
12
+ const pulled = arr.filter(value => !args.includes(value));
5
13
  arr.length = 0;
6
- pulled.forEach((value) => arr.push(value));
14
+ pulled.forEach(value => arr.push(value));
7
15
  }
8
16
  exports.default = pull;
9
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pull/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,IAAI,CAAI,GAAQ,EAAE,GAAG,IAAS;IACpD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAE5D,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAEf,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC;AAND,uBAMC","sourcesContent":["export default function pull<T>(arr: T[], ...args: T[]): void {\n const pulled = arr.filter((value) => !args.includes(value));\n\n arr.length = 0;\n\n pulled.forEach((value) => arr.push(value));\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/pull/index.ts"],"names":[],"mappings":";;AAAA;;;;;;;GAOG;AACH,SAAwB,IAAI,CAAI,GAAQ,EAAE,GAAG,IAAS;IACpD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1D,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAEf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3C,CAAC;AAND,uBAMC","sourcesContent":["/**\n * Mutates the original array to filter out the values specified\n * @param arr\n * @param args\n * @example\n * let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];\n * pull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ];\n */\nexport default function pull<T>(arr: T[], ...args: T[]): void {\n const pulled = arr.filter(value => !args.includes(value));\n\n arr.length = 0;\n\n pulled.forEach(value => arr.push(value));\n}\n"]}