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