prototyped.js 3.0.4 → 3.0.6

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 (1234) hide show
  1. package/.node-version +1 -0
  2. package/CODEOWNERS +2 -0
  3. package/README.md +31 -1
  4. package/build/cjs/object/merge/index.js +10 -3
  5. package/build/cjs/object/merge/index.js.map +1 -1
  6. package/build/esm/array/all/index.d.ts +11 -0
  7. package/build/esm/array/all/shim.d.ts +15 -0
  8. package/build/esm/array/any/index.d.ts +12 -0
  9. package/build/esm/array/any/shim.d.ts +16 -0
  10. package/build/esm/array/append/index.d.ts +9 -0
  11. package/build/esm/array/append/shim.d.ts +13 -0
  12. package/build/esm/array/average/index.d.ts +13 -0
  13. package/build/esm/array/average/shim.d.ts +27 -0
  14. package/build/esm/array/chunk/index.d.ts +8 -0
  15. package/build/esm/array/chunk/shim.d.ts +12 -0
  16. package/build/esm/array/clone/index.d.ts +8 -0
  17. package/build/esm/array/clone/shim.d.ts +12 -0
  18. package/build/esm/array/compact/index.d.ts +8 -0
  19. package/build/esm/array/compact/shim.d.ts +11 -0
  20. package/build/esm/array/contains/index.d.ts +11 -0
  21. package/build/esm/array/contains/shim.d.ts +15 -0
  22. package/build/esm/array/count/index.d.ts +10 -0
  23. package/build/esm/array/count/shim.d.ts +14 -0
  24. package/build/esm/array/countBy/index.d.ts +11 -0
  25. package/build/esm/array/countBy/shim.d.ts +15 -0
  26. package/build/esm/array/crossJoin/index.d.ts +9 -0
  27. package/build/esm/array/crossJoin/shim.d.ts +13 -0
  28. package/build/esm/array/deepFlatten/index.d.ts +8 -0
  29. package/build/esm/array/deepFlatten/shim.d.ts +11 -0
  30. package/build/esm/array/diff/index.d.ts +13 -0
  31. package/build/esm/array/diff/shim.d.ts +17 -0
  32. package/build/esm/array/distinct/index.d.ts +12 -0
  33. package/build/esm/array/distinct/shim.d.ts +16 -0
  34. package/build/esm/array/distinctBy/index.d.ts +8 -0
  35. package/build/esm/array/distinctBy/shim.d.ts +12 -0
  36. package/build/esm/array/empty/index.d.ts +9 -0
  37. package/build/esm/array/empty/shim.d.ts +13 -0
  38. package/build/esm/array/equals/index.d.ts +8 -0
  39. package/build/esm/array/equals/shim.d.ts +12 -0
  40. package/build/esm/array/everyNth/index.d.ts +8 -0
  41. package/build/esm/array/everyNth/shim.d.ts +12 -0
  42. package/build/esm/array/first/index.d.ts +7 -0
  43. package/build/esm/array/first/shim.d.ts +11 -0
  44. package/build/esm/array/flatten/index.d.ts +10 -0
  45. package/build/esm/array/flatten/shim.d.ts +14 -0
  46. package/build/esm/array/get/index.d.ts +11 -0
  47. package/build/esm/array/get/shim.d.ts +15 -0
  48. package/build/esm/array/groupBy/index.d.ts +10 -0
  49. package/build/esm/array/groupBy/shim.d.ts +14 -0
  50. package/build/esm/array/implode/index.d.ts +12 -0
  51. package/build/esm/array/implode/shim.d.ts +14 -0
  52. package/build/esm/array/indexOfAll/index.d.ts +10 -0
  53. package/build/esm/array/indexOfAll/shim.d.ts +14 -0
  54. package/build/esm/array/initial/index.d.ts +6 -0
  55. package/build/esm/array/initial/shim.d.ts +11 -0
  56. package/build/esm/array/intersect/index.d.ts +8 -0
  57. package/build/esm/array/intersect/shim.d.ts +12 -0
  58. package/build/esm/array/isEmpty/index.d.ts +8 -0
  59. package/build/esm/array/isEmpty/shim.d.ts +13 -0
  60. package/build/esm/array/last/index.d.ts +6 -0
  61. package/build/esm/array/last/shim.d.ts +11 -0
  62. package/build/esm/array/limit/index.d.ts +8 -0
  63. package/build/esm/array/limit/shim.d.ts +21 -0
  64. package/build/esm/array/max/index.d.ts +19 -0
  65. package/build/esm/array/max/shim.d.ts +16 -0
  66. package/build/esm/array/median/index.d.ts +17 -0
  67. package/build/esm/array/median/shim.d.ts +14 -0
  68. package/build/esm/array/merge/index.d.ts +9 -0
  69. package/build/esm/array/merge/shim.d.ts +13 -0
  70. package/build/esm/array/min/index.d.ts +19 -0
  71. package/build/esm/array/min/shim.d.ts +16 -0
  72. package/build/esm/array/nest/index.d.ts +16 -0
  73. package/build/esm/array/nest/shim.d.ts +20 -0
  74. package/build/esm/array/orderBy/index.d.ts +27 -0
  75. package/build/esm/array/orderBy/shim.d.ts +23 -0
  76. package/build/esm/array/pad/index.d.ts +11 -0
  77. package/build/esm/array/pad/shim.d.ts +15 -0
  78. package/build/esm/array/partition/index.d.ts +15 -0
  79. package/build/esm/array/partition/shim.d.ts +19 -0
  80. package/build/esm/array/pluck/index.d.ts +11 -0
  81. package/build/esm/array/pluck/shim.d.ts +14 -0
  82. package/build/esm/array/prepend/index.d.ts +9 -0
  83. package/build/esm/array/prepend/shim.d.ts +13 -0
  84. package/build/esm/array/pull/index.d.ts +9 -0
  85. package/build/esm/array/pull/shim.d.ts +13 -0
  86. package/build/esm/array/range/index.d.ts +14 -0
  87. package/build/esm/array/range/shim.d.ts +19 -0
  88. package/build/esm/array/repeat/index.d.ts +8 -0
  89. package/build/esm/array/repeat/shim.d.ts +13 -0
  90. package/build/esm/array/sample/index.d.ts +6 -0
  91. package/build/esm/array/sample/shim.d.ts +11 -0
  92. package/build/esm/array/shuffle/index.d.ts +7 -0
  93. package/build/esm/array/shuffle/shim.d.ts +12 -0
  94. package/build/esm/array/skip/index.d.ts +8 -0
  95. package/build/esm/array/skip/shim.d.ts +21 -0
  96. package/build/esm/array/sortBy/index.d.ts +11 -0
  97. package/build/esm/array/sortBy/shim.d.ts +15 -0
  98. package/build/esm/array/sum/index.d.ts +13 -0
  99. package/build/esm/array/sum/shim.d.ts +16 -0
  100. package/build/esm/array/tail/index.d.ts +6 -0
  101. package/build/esm/array/tail/shim.d.ts +11 -0
  102. package/build/esm/array/toCSV/index.d.ts +10 -0
  103. package/build/esm/array/toCSV/shim.d.ts +14 -0
  104. package/build/esm/array/union/index.d.ts +8 -0
  105. package/build/esm/array/union/shim.d.ts +12 -0
  106. package/build/esm/array/unwind/index.d.ts +9 -0
  107. package/build/esm/array/unwind/shim.d.ts +13 -0
  108. package/build/esm/array/where/index.d.ts +38 -0
  109. package/build/esm/array/where/shim.d.ts +37 -0
  110. package/build/esm/array/whereBetween/index.d.ts +20 -0
  111. package/build/esm/array/whereBetween/shim.d.ts +22 -0
  112. package/build/esm/array/whereIn/index.d.ts +18 -0
  113. package/build/esm/array/whereIn/shim.d.ts +20 -0
  114. package/build/esm/array/whereLike/index.d.ts +18 -0
  115. package/build/esm/array/whereLike/shim.d.ts +20 -0
  116. package/build/esm/array/whereNotBetween/index.d.ts +20 -0
  117. package/build/esm/array/whereNotBetween/shim.d.ts +22 -0
  118. package/build/esm/array/whereNotIn/index.d.ts +18 -0
  119. package/build/esm/array/whereNotIn/shim.d.ts +20 -0
  120. package/build/esm/array/whereNotLike/index.d.ts +18 -0
  121. package/build/esm/array/whereNotLike/shim.d.ts +20 -0
  122. package/build/esm/array/whereNotNull/index.d.ts +10 -0
  123. package/build/esm/array/whereNotNull/shim.d.ts +14 -0
  124. package/build/esm/array/whereNull/index.d.ts +10 -0
  125. package/build/esm/array/whereNull/shim.d.ts +18 -0
  126. package/build/esm/array/zip/index.d.ts +10 -0
  127. package/build/esm/array/zip/shim.d.ts +14 -0
  128. package/build/esm/array/zipObject/index.d.ts +11 -0
  129. package/build/esm/array/zipObject/shim.d.ts +15 -0
  130. package/build/esm/boolean/isBoolean/index.d.ts +9 -0
  131. package/build/esm/boolean/isBoolean/shim.d.ts +14 -0
  132. package/build/esm/date/equals/index.d.ts +8 -0
  133. package/build/esm/date/equals/shim.d.ts +12 -0
  134. package/build/esm/date/isDate/index.d.ts +9 -0
  135. package/build/esm/date/isDate/shim.d.ts +14 -0
  136. package/build/esm/date/today/index.d.ts +6 -0
  137. package/build/esm/date/today/shim.d.ts +11 -0
  138. package/build/esm/date/tomorrow/index.d.ts +6 -0
  139. package/build/esm/date/tomorrow/shim.d.ts +11 -0
  140. package/build/esm/date/yesterday/index.d.ts +6 -0
  141. package/build/esm/date/yesterday/shim.d.ts +11 -0
  142. package/build/esm/function/cache/index.d.ts +9 -0
  143. package/build/esm/function/cache/shim.d.ts +15 -0
  144. package/build/esm/function/defer/index.d.ts +10 -0
  145. package/build/esm/function/defer/shim.d.ts +14 -0
  146. package/build/esm/function/isFunction/index.d.ts +9 -0
  147. package/build/esm/function/isFunction/shim.d.ts +14 -0
  148. package/build/esm/function/once/index.d.ts +10 -0
  149. package/build/esm/function/once/shim.d.ts +15 -0
  150. package/build/esm/globals/isBrowser/index.d.ts +7 -0
  151. package/build/esm/globals/isBrowser/shim.d.ts +12 -0
  152. package/build/esm/index.d.ts +10 -0
  153. package/build/esm/math/average/index.d.ts +9 -0
  154. package/build/esm/math/average/shim.d.ts +25 -0
  155. package/build/esm/math/degreesToRads/index.d.ts +7 -0
  156. package/build/esm/math/degreesToRads/shim.d.ts +12 -0
  157. package/build/esm/math/factorial/index.d.ts +7 -0
  158. package/build/esm/math/factorial/shim.d.ts +12 -0
  159. package/build/esm/math/fibonacci/index.d.ts +7 -0
  160. package/build/esm/math/fibonacci/shim.d.ts +12 -0
  161. package/build/esm/math/gcd/index.d.ts +9 -0
  162. package/build/esm/math/gcd/shim.d.ts +14 -0
  163. package/build/esm/math/isDivisible/index.d.ts +8 -0
  164. package/build/esm/math/isDivisible/shim.d.ts +13 -0
  165. package/build/esm/math/isEven/index.d.ts +7 -0
  166. package/build/esm/math/isEven/shim.d.ts +12 -0
  167. package/build/esm/math/isPrime/index.d.ts +7 -0
  168. package/build/esm/math/isPrime/shim.d.ts +12 -0
  169. package/build/esm/math/lcm/index.d.ts +9 -0
  170. package/build/esm/math/lcm/shim.d.ts +14 -0
  171. package/build/esm/math/primes/index.d.ts +7 -0
  172. package/build/esm/math/primes/shim.d.ts +12 -0
  173. package/build/esm/math/radsToDegrees/index.d.ts +7 -0
  174. package/build/esm/math/radsToDegrees/shim.d.ts +12 -0
  175. package/build/esm/number/digitize/index.d.ts +6 -0
  176. package/build/esm/number/digitize/shim.d.ts +11 -0
  177. package/build/esm/number/equals/index.d.ts +8 -0
  178. package/build/esm/number/equals/shim.d.ts +12 -0
  179. package/build/esm/number/inRange/index.d.ts +9 -0
  180. package/build/esm/number/inRange/shim.d.ts +13 -0
  181. package/build/esm/number/isNumber/index.d.ts +9 -0
  182. package/build/esm/number/isNumber/shim.d.ts +14 -0
  183. package/build/esm/object/assign/index.d.ts +8 -0
  184. package/build/esm/object/assign/shim.d.ts +12 -0
  185. package/build/esm/object/camelCaseKeys/index.d.ts +8 -0
  186. package/build/esm/object/camelCaseKeys/shim.d.ts +12 -0
  187. package/build/esm/object/clone/index.d.ts +9 -0
  188. package/build/esm/object/clone/shim.d.ts +13 -0
  189. package/build/esm/object/defaults/index.d.ts +8 -0
  190. package/build/esm/object/defaults/shim.d.ts +12 -0
  191. package/build/esm/object/dig/index.d.ts +16 -0
  192. package/build/esm/object/dig/shim.d.ts +20 -0
  193. package/build/esm/object/empty/index.d.ts +9 -0
  194. package/build/esm/object/empty/shim.d.ts +13 -0
  195. package/build/esm/object/equals/index.d.ts +8 -0
  196. package/build/esm/object/equals/shim.d.ts +12 -0
  197. package/build/esm/object/flatten/index.d.ts +7 -0
  198. package/build/esm/object/flatten/shim.d.ts +11 -0
  199. package/build/esm/object/forEach/index.d.ts +12 -0
  200. package/build/esm/object/forEach/shim.d.ts +16 -0
  201. package/build/esm/object/get/index.d.ts +9 -0
  202. package/build/esm/object/get/shim.d.ts +12 -0
  203. package/build/esm/object/invert/index.d.ts +7 -0
  204. package/build/esm/object/invert/shim.d.ts +11 -0
  205. package/build/esm/object/isEmpty/index.d.ts +9 -0
  206. package/build/esm/object/isEmpty/shim.d.ts +13 -0
  207. package/build/esm/object/isObject/index.d.ts +9 -0
  208. package/build/esm/object/isObject/shim.d.ts +14 -0
  209. package/build/esm/object/isObjectLike/index.d.ts +9 -0
  210. package/build/esm/object/isObjectLike/shim.d.ts +14 -0
  211. package/build/esm/object/isPlainObject/index.d.ts +9 -0
  212. package/build/esm/object/isPlainObject/shim.d.ts +14 -0
  213. package/build/esm/object/kebabCaseKeys/index.d.ts +8 -0
  214. package/build/esm/object/kebabCaseKeys/shim.d.ts +12 -0
  215. package/build/esm/object/keys/index.d.ts +7 -0
  216. package/build/esm/object/keys/shim.d.ts +11 -0
  217. package/build/esm/object/lowerCaseKeys/index.d.ts +7 -0
  218. package/build/esm/object/lowerCaseKeys/shim.d.ts +12 -0
  219. package/build/esm/object/map/index.d.ts +13 -0
  220. package/build/esm/object/map/shim.d.ts +17 -0
  221. package/build/esm/object/mapKeys/index.d.ts +9 -0
  222. package/build/esm/object/mapKeys/shim.d.ts +13 -0
  223. package/build/esm/object/mapValues/index.d.ts +13 -0
  224. package/build/esm/object/mapValues/shim.d.ts +17 -0
  225. package/build/esm/object/merge/index.d.ts +17 -0
  226. package/build/esm/object/merge/index.js +10 -3
  227. package/build/esm/object/merge/index.js.map +1 -1
  228. package/build/esm/object/merge/shim.d.ts +21 -0
  229. package/build/esm/object/omit/index.d.ts +12 -0
  230. package/build/esm/object/omit/shim.d.ts +16 -0
  231. package/build/esm/object/reduce/index.d.ts +9 -0
  232. package/build/esm/object/reduce/shim.d.ts +13 -0
  233. package/build/esm/object/set/index.d.ts +11 -0
  234. package/build/esm/object/set/shim.d.ts +15 -0
  235. package/build/esm/object/size/index.d.ts +6 -0
  236. package/build/esm/object/size/shim.d.ts +11 -0
  237. package/build/esm/object/snakeCaseKeys/index.d.ts +8 -0
  238. package/build/esm/object/snakeCaseKeys/shim.d.ts +12 -0
  239. package/build/esm/object/values/index.d.ts +6 -0
  240. package/build/esm/object/values/shim.d.ts +11 -0
  241. package/build/esm/string/base64/index.d.ts +6 -0
  242. package/build/esm/string/base64/shim.d.ts +11 -0
  243. package/build/esm/string/base64Decode/index.d.ts +6 -0
  244. package/build/esm/string/base64Decode/shim.d.ts +11 -0
  245. package/build/esm/string/camelCase/index.d.ts +13 -0
  246. package/build/esm/string/camelCase/shim.d.ts +18 -0
  247. package/build/esm/string/capitalize/index.d.ts +10 -0
  248. package/build/esm/string/capitalize/shim.d.ts +14 -0
  249. package/build/esm/string/chars/index.d.ts +6 -0
  250. package/build/esm/string/chars/shim.d.ts +11 -0
  251. package/build/esm/string/contains/index.d.ts +11 -0
  252. package/build/esm/string/contains/shim.d.ts +15 -0
  253. package/build/esm/string/decapitalize/index.d.ts +10 -0
  254. package/build/esm/string/decapitalize/shim.d.ts +14 -0
  255. package/build/esm/string/equals/index.d.ts +8 -0
  256. package/build/esm/string/equals/shim.d.ts +12 -0
  257. package/build/esm/string/forEach/index.d.ts +8 -0
  258. package/build/esm/string/forEach/shim.d.ts +12 -0
  259. package/build/esm/string/humanize/index.d.ts +9 -0
  260. package/build/esm/string/humanize/shim.d.ts +13 -0
  261. package/build/esm/string/isEmpty/index.d.ts +9 -0
  262. package/build/esm/string/isEmpty/shim.d.ts +13 -0
  263. package/build/esm/string/isString/index.d.ts +9 -0
  264. package/build/esm/string/isString/shim.d.ts +14 -0
  265. package/build/esm/string/kebabCase/index.d.ts +17 -0
  266. package/build/esm/string/kebabCase/shim.d.ts +21 -0
  267. package/build/esm/string/lines/index.d.ts +7 -0
  268. package/build/esm/string/lines/shim.d.ts +11 -0
  269. package/build/esm/string/map/index.d.ts +8 -0
  270. package/build/esm/string/map/shim.d.ts +12 -0
  271. package/build/esm/string/mask/index.d.ts +13 -0
  272. package/build/esm/string/mask/shim.d.ts +17 -0
  273. package/build/esm/string/pad/index.d.ts +11 -0
  274. package/build/esm/string/pad/shim.d.ts +15 -0
  275. package/build/esm/string/parseInt/index.d.ts +8 -0
  276. package/build/esm/string/parseInt/shim.d.ts +12 -0
  277. package/build/esm/string/pluralize/index.d.ts +18 -0
  278. package/build/esm/string/pluralize/shim.d.ts +22 -0
  279. package/build/esm/string/reduce/index.d.ts +9 -0
  280. package/build/esm/string/reduce/shim.d.ts +13 -0
  281. package/build/esm/string/repeat/index.d.ts +8 -0
  282. package/build/esm/string/repeat/shim.d.ts +13 -0
  283. package/build/esm/string/reverse/index.d.ts +7 -0
  284. package/build/esm/string/reverse/shim.d.ts +11 -0
  285. package/build/esm/string/snakeCase/index.d.ts +17 -0
  286. package/build/esm/string/snakeCase/shim.d.ts +21 -0
  287. package/build/esm/string/swapCase/index.d.ts +7 -0
  288. package/build/esm/string/swapCase/shim.d.ts +11 -0
  289. package/build/esm/string/truncate/index.d.ts +11 -0
  290. package/build/esm/string/truncate/shim.d.ts +15 -0
  291. package/build/esm/string/words/index.d.ts +10 -0
  292. package/build/esm/string/words/shim.d.ts +14 -0
  293. package/build/esm/utils.d.ts +54 -0
  294. package/package.json +2461 -710
  295. package/pnpm-workspace.yaml +10 -0
  296. package/.eslintrc +0 -18
  297. package/.gitattributes +0 -2
  298. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  299. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -17
  300. package/.github/dependabot.yml +0 -26
  301. package/.github/workflows/release.yml +0 -111
  302. package/.github/workflows/test.yml +0 -83
  303. package/.prettierrc +0 -6
  304. package/CODE_OF_CONDUCT.md +0 -46
  305. package/__tests__/array/all.test.ts +0 -15
  306. package/__tests__/array/any.test.ts +0 -15
  307. package/__tests__/array/append.test.ts +0 -13
  308. package/__tests__/array/average.test.ts +0 -29
  309. package/__tests__/array/chunk.test.ts +0 -7
  310. package/__tests__/array/clone.test.ts +0 -34
  311. package/__tests__/array/compact.test.ts +0 -19
  312. package/__tests__/array/contains.test.ts +0 -7
  313. package/__tests__/array/count.test.ts +0 -11
  314. package/__tests__/array/countBy.test.ts +0 -17
  315. package/__tests__/array/crossJoin.test.ts +0 -12
  316. package/__tests__/array/deepFlatten.test.ts +0 -7
  317. package/__tests__/array/diff.test.ts +0 -14
  318. package/__tests__/array/distinct.test.ts +0 -16
  319. package/__tests__/array/distinctBy.test.ts +0 -7
  320. package/__tests__/array/empty.test.ts +0 -9
  321. package/__tests__/array/equals.test.ts +0 -35
  322. package/__tests__/array/everyNth.test.ts +0 -7
  323. package/__tests__/array/first.test.ts +0 -7
  324. package/__tests__/array/flatten.test.ts +0 -19
  325. package/__tests__/array/get.test.ts +0 -15
  326. package/__tests__/array/groupBy.test.ts +0 -17
  327. package/__tests__/array/implode.test.ts +0 -27
  328. package/__tests__/array/indexOfAll.test.ts +0 -11
  329. package/__tests__/array/initial.test.ts +0 -7
  330. package/__tests__/array/intersect.test.ts +0 -7
  331. package/__tests__/array/isEmpty.test.ts +0 -11
  332. package/__tests__/array/last.test.ts +0 -7
  333. package/__tests__/array/limit.test.ts +0 -7
  334. package/__tests__/array/max.test.ts +0 -19
  335. package/__tests__/array/median.test.ts +0 -23
  336. package/__tests__/array/merge.test.ts +0 -11
  337. package/__tests__/array/min.test.ts +0 -19
  338. package/__tests__/array/nest.test.ts +0 -115
  339. package/__tests__/array/orderBy.test.ts +0 -16
  340. package/__tests__/array/pad.test.ts +0 -15
  341. package/__tests__/array/partition.test.ts +0 -33
  342. package/__tests__/array/pluck.test.ts +0 -17
  343. package/__tests__/array/prepend.test.ts +0 -10
  344. package/__tests__/array/pull.test.ts +0 -15
  345. package/__tests__/array/range.test.ts +0 -15
  346. package/__tests__/array/repeat.test.ts +0 -11
  347. package/__tests__/array/sample.test.ts +0 -7
  348. package/__tests__/array/shuffle.test.ts +0 -7
  349. package/__tests__/array/skip.test.ts +0 -7
  350. package/__tests__/array/sortBy.test.ts +0 -19
  351. package/__tests__/array/sum.test.ts +0 -19
  352. package/__tests__/array/tail.test.ts +0 -11
  353. package/__tests__/array/toCSV.test.ts +0 -17
  354. package/__tests__/array/union.test.ts +0 -7
  355. package/__tests__/array/unwind.test.ts +0 -16
  356. package/__tests__/array/where.test.ts +0 -41
  357. package/__tests__/array/whereBetween.test.ts +0 -12
  358. package/__tests__/array/whereIn.test.ts +0 -12
  359. package/__tests__/array/whereLike.test.ts +0 -18
  360. package/__tests__/array/whereNotBetween.test.ts +0 -15
  361. package/__tests__/array/whereNotIn.test.ts +0 -11
  362. package/__tests__/array/whereNotLike.test.ts +0 -14
  363. package/__tests__/array/whereNotNull.test.ts +0 -12
  364. package/__tests__/array/whereNull.test.ts +0 -16
  365. package/__tests__/array/zip.test.ts +0 -18
  366. package/__tests__/array/zipObject.test.ts +0 -19
  367. package/__tests__/boolean/isBoolean.test.ts +0 -11
  368. package/__tests__/date/equals.test.ts +0 -17
  369. package/__tests__/date/isDate.test.ts +0 -11
  370. package/__tests__/date/today.test.ts +0 -14
  371. package/__tests__/date/tomorrow.test.ts +0 -20
  372. package/__tests__/date/yesterday.test.ts +0 -20
  373. package/__tests__/function/cache.test.ts +0 -11
  374. package/__tests__/function/isFunction.test.ts +0 -16
  375. package/__tests__/globals/isBrowser.test.ts +0 -15
  376. package/__tests__/math/average.test.ts +0 -7
  377. package/__tests__/math/degreesToRads.test.ts +0 -7
  378. package/__tests__/math/factorial.test.ts +0 -7
  379. package/__tests__/math/fibonacci.test.ts +0 -7
  380. package/__tests__/math/gcd.test.ts +0 -7
  381. package/__tests__/math/isDivisible.test.ts +0 -7
  382. package/__tests__/math/isEven.test.ts +0 -7
  383. package/__tests__/math/isPrime.test.ts +0 -11
  384. package/__tests__/math/lcm.test.ts +0 -7
  385. package/__tests__/math/primes.test.ts +0 -7
  386. package/__tests__/math/radsToDegrees.test.ts +0 -7
  387. package/__tests__/number/digitize.test.ts +0 -7
  388. package/__tests__/number/equals.test.ts +0 -11
  389. package/__tests__/number/inRange.test.ts +0 -7
  390. package/__tests__/number/isNumber.test.ts +0 -19
  391. package/__tests__/object/assign.test.ts +0 -10
  392. package/__tests__/object/camelCaseKeys.test.ts +0 -17
  393. package/__tests__/object/clone.test.ts +0 -62
  394. package/__tests__/object/defaults.test.ts +0 -13
  395. package/__tests__/object/dig.test.ts +0 -25
  396. package/__tests__/object/empty.test.ts +0 -9
  397. package/__tests__/object/equals.test.ts +0 -44
  398. package/__tests__/object/flatten.test.ts +0 -44
  399. package/__tests__/object/forEach.test.ts +0 -28
  400. package/__tests__/object/get.test.ts +0 -7
  401. package/__tests__/object/invert.test.ts +0 -13
  402. package/__tests__/object/isEmpty.test.ts +0 -11
  403. package/__tests__/object/isObject.test.ts +0 -23
  404. package/__tests__/object/isObjectLike.test.ts +0 -23
  405. package/__tests__/object/isPlainObject.test.ts +0 -29
  406. package/__tests__/object/kebabCaseKeys.test.ts +0 -17
  407. package/__tests__/object/keys.test.ts +0 -15
  408. package/__tests__/object/lowerCaseKeys.test.ts +0 -13
  409. package/__tests__/object/map.test.ts +0 -23
  410. package/__tests__/object/mapKeys.test.ts +0 -13
  411. package/__tests__/object/mapValues.test.ts +0 -23
  412. package/__tests__/object/merge.test.ts +0 -22
  413. package/__tests__/object/omit.test.ts +0 -24
  414. package/__tests__/object/reduce.test.ts +0 -24
  415. package/__tests__/object/set.test.ts +0 -21
  416. package/__tests__/object/size.test.ts +0 -11
  417. package/__tests__/object/snakeCaseKeys.test.ts +0 -17
  418. package/__tests__/object/values.test.ts +0 -11
  419. package/__tests__/string/base64.test.ts +0 -7
  420. package/__tests__/string/base64Decode.test.ts +0 -7
  421. package/__tests__/string/camelCase.test.ts +0 -32
  422. package/__tests__/string/capitalize.test.ts +0 -11
  423. package/__tests__/string/chars.test.ts +0 -7
  424. package/__tests__/string/contains.test.ts +0 -11
  425. package/__tests__/string/decapitalize.test.ts +0 -11
  426. package/__tests__/string/equals.test.ts +0 -11
  427. package/__tests__/string/forEach.test.ts +0 -11
  428. package/__tests__/string/humanize.test.ts +0 -16
  429. package/__tests__/string/isEmpty.test.ts +0 -11
  430. package/__tests__/string/isString.test.ts +0 -11
  431. package/__tests__/string/kebabCase.test.ts +0 -39
  432. package/__tests__/string/lines.test.ts +0 -13
  433. package/__tests__/string/map.test.ts +0 -7
  434. package/__tests__/string/mask.test.ts +0 -15
  435. package/__tests__/string/pad.test.ts +0 -15
  436. package/__tests__/string/parseInt.test.ts +0 -7
  437. package/__tests__/string/pluralize.test.ts +0 -684
  438. package/__tests__/string/reduce.test.ts +0 -12
  439. package/__tests__/string/repeat.test.ts +0 -11
  440. package/__tests__/string/reverse.test.ts +0 -7
  441. package/__tests__/string/snakeCase.test.ts +0 -39
  442. package/__tests__/string/swapCase.test.ts +0 -7
  443. package/__tests__/string/truncate.test.ts +0 -19
  444. package/__tests__/string/words.test.ts +0 -15
  445. package/__tests__/utils.test.ts +0 -61
  446. package/docs/.nojekyll +0 -1
  447. package/docs/CNAME +0 -1
  448. package/docs/assets/highlight.css +0 -106
  449. package/docs/assets/main.js +0 -54
  450. package/docs/assets/search.js +0 -1
  451. package/docs/assets/style.css +0 -1224
  452. package/docs/assets/widgets.png +0 -0
  453. package/docs/assets/widgets@2x.png +0 -0
  454. package/docs/enums/OPERATOR.html +0 -107
  455. package/docs/functions/array.all.html +0 -160
  456. package/docs/functions/array.any.html +0 -161
  457. package/docs/functions/array.append.html +0 -141
  458. package/docs/functions/array.average.html +0 -149
  459. package/docs/functions/array.chunk.html +0 -141
  460. package/docs/functions/array.clone.html +0 -141
  461. package/docs/functions/array.compact.html +0 -139
  462. package/docs/functions/array.contains.html +0 -146
  463. package/docs/functions/array.count.html +0 -144
  464. package/docs/functions/array.countBy.html +0 -148
  465. package/docs/functions/array.crossJoin.html +0 -144
  466. package/docs/functions/array.deepFlatten.html +0 -139
  467. package/docs/functions/array.diff.html +0 -163
  468. package/docs/functions/array.distinct.html +0 -147
  469. package/docs/functions/array.distinctBy.html +0 -154
  470. package/docs/functions/array.empty.html +0 -139
  471. package/docs/functions/array.equals.html +0 -141
  472. package/docs/functions/array.everyNth.html +0 -141
  473. package/docs/functions/array.first.html +0 -139
  474. package/docs/functions/array.flatten.html +0 -144
  475. package/docs/functions/array.get.html +0 -150
  476. package/docs/functions/array.groupBy.html +0 -147
  477. package/docs/functions/array.implode.html +0 -145
  478. package/docs/functions/array.indexOfAll.html +0 -144
  479. package/docs/functions/array.initial.html +0 -139
  480. package/docs/functions/array.intersect.html +0 -141
  481. package/docs/functions/array.isEmpty.html +0 -142
  482. package/docs/functions/array.last.html +0 -139
  483. package/docs/functions/array.limit.html +0 -141
  484. package/docs/functions/array.max.html +0 -164
  485. package/docs/functions/array.median.html +0 -161
  486. package/docs/functions/array.merge.html +0 -141
  487. package/docs/functions/array.min.html +0 -164
  488. package/docs/functions/array.nest.html +0 -143
  489. package/docs/functions/array.orderBy.html +0 -168
  490. package/docs/functions/array.pad.html +0 -146
  491. package/docs/functions/array.partition.html +0 -157
  492. package/docs/functions/array.pluck.html +0 -146
  493. package/docs/functions/array.prepend.html +0 -141
  494. package/docs/functions/array.pull.html +0 -141
  495. package/docs/functions/array.range.html +0 -145
  496. package/docs/functions/array.repeat.html +0 -141
  497. package/docs/functions/array.sample.html +0 -139
  498. package/docs/functions/array.shuffle.html +0 -139
  499. package/docs/functions/array.skip.html +0 -141
  500. package/docs/functions/array.sortBy.html +0 -145
  501. package/docs/functions/array.sum.html +0 -149
  502. package/docs/functions/array.tail.html +0 -139
  503. package/docs/functions/array.toCSV.html +0 -144
  504. package/docs/functions/array.union.html +0 -143
  505. package/docs/functions/array.unwind.html +0 -141
  506. package/docs/functions/array.where.html +0 -209
  507. package/docs/functions/array.whereBetween.html +0 -167
  508. package/docs/functions/array.whereIn.html +0 -163
  509. package/docs/functions/array.whereLike.html +0 -163
  510. package/docs/functions/array.whereNotBetween.html +0 -167
  511. package/docs/functions/array.whereNotIn.html +0 -163
  512. package/docs/functions/array.whereNotLike.html +0 -163
  513. package/docs/functions/array.whereNotNull.html +0 -144
  514. package/docs/functions/array.whereNull.html +0 -144
  515. package/docs/functions/array.zip.html +0 -144
  516. package/docs/functions/array.zipObject.html +0 -145
  517. package/docs/functions/boolean.isBoolean.html +0 -73
  518. package/docs/functions/date.equals.html +0 -76
  519. package/docs/functions/date.isDate.html +0 -77
  520. package/docs/functions/date.today.html +0 -69
  521. package/docs/functions/date.tomorrow.html +0 -69
  522. package/docs/functions/date.yesterday.html +0 -69
  523. package/docs/functions/func.cache.html +0 -79
  524. package/docs/functions/func.defer.html +0 -82
  525. package/docs/functions/func.isFunction.html +0 -76
  526. package/docs/functions/func.once.html +0 -84
  527. package/docs/functions/globals.isBrowser.html +0 -66
  528. package/docs/functions/math.average.html +0 -83
  529. package/docs/functions/math.degreesToRads.html +0 -80
  530. package/docs/functions/math.factorial.html +0 -80
  531. package/docs/functions/math.fibonacci.html +0 -80
  532. package/docs/functions/math.gcd.html +0 -83
  533. package/docs/functions/math.isDivisible.html +0 -82
  534. package/docs/functions/math.isEven.html +0 -80
  535. package/docs/functions/math.isPrime.html +0 -80
  536. package/docs/functions/math.lcm.html +0 -83
  537. package/docs/functions/math.primes.html +0 -80
  538. package/docs/functions/math.radsToDegrees.html +0 -80
  539. package/docs/functions/number.digitize.html +0 -73
  540. package/docs/functions/number.equals.html +0 -75
  541. package/docs/functions/number.inRange.html +0 -77
  542. package/docs/functions/number.isNumber.html +0 -76
  543. package/docs/functions/object.assign.html +0 -99
  544. package/docs/functions/object.camelCaseKeys.html +0 -97
  545. package/docs/functions/object.clone.html +0 -104
  546. package/docs/functions/object.defaults.html +0 -99
  547. package/docs/functions/object.dig.html +0 -99
  548. package/docs/functions/object.empty.html +0 -97
  549. package/docs/functions/object.equals.html +0 -99
  550. package/docs/functions/object.flatten.html +0 -97
  551. package/docs/functions/object.forEach.html +0 -121
  552. package/docs/functions/object.get.html +0 -106
  553. package/docs/functions/object.invert.html +0 -97
  554. package/docs/functions/object.isEmpty.html +0 -100
  555. package/docs/functions/object.isObject.html +0 -100
  556. package/docs/functions/object.isObjectLike.html +0 -100
  557. package/docs/functions/object.isPlainObject.html +0 -100
  558. package/docs/functions/object.kebabCaseKeys.html +0 -97
  559. package/docs/functions/object.keys.html +0 -102
  560. package/docs/functions/object.lowerCaseKeys.html +0 -97
  561. package/docs/functions/object.map.html +0 -122
  562. package/docs/functions/object.mapKeys.html +0 -122
  563. package/docs/functions/object.mapValues.html +0 -122
  564. package/docs/functions/object.merge.html +0 -99
  565. package/docs/functions/object.omit.html +0 -104
  566. package/docs/functions/object.reduce.html +0 -127
  567. package/docs/functions/object.set.html +0 -101
  568. package/docs/functions/object.size.html +0 -97
  569. package/docs/functions/object.snakeCaseKeys.html +0 -97
  570. package/docs/functions/object.values.html +0 -104
  571. package/docs/functions/string.base64.html +0 -95
  572. package/docs/functions/string.base64Decode.html +0 -95
  573. package/docs/functions/string.camelCase.html +0 -104
  574. package/docs/functions/string.capitalize.html +0 -100
  575. package/docs/functions/string.chars.html +0 -95
  576. package/docs/functions/string.contains.html +0 -102
  577. package/docs/functions/string.decapitalize.html +0 -100
  578. package/docs/functions/string.equals.html +0 -97
  579. package/docs/functions/string.forEach.html +0 -112
  580. package/docs/functions/string.humanize.html +0 -96
  581. package/docs/functions/string.isEmpty.html +0 -98
  582. package/docs/functions/string.isString.html +0 -98
  583. package/docs/functions/string.kebabCase.html +0 -107
  584. package/docs/functions/string.lines.html +0 -95
  585. package/docs/functions/string.map.html +0 -112
  586. package/docs/functions/string.mask.html +0 -105
  587. package/docs/functions/string.pad.html +0 -102
  588. package/docs/functions/string.parseInt.html +0 -97
  589. package/docs/functions/string.pluralize.html +0 -112
  590. package/docs/functions/string.reduce.html +0 -121
  591. package/docs/functions/string.repeat.html +0 -97
  592. package/docs/functions/string.reverse.html +0 -95
  593. package/docs/functions/string.snakeCase.html +0 -107
  594. package/docs/functions/string.swapCase.html +0 -95
  595. package/docs/functions/string.truncate.html +0 -102
  596. package/docs/functions/string.words.html +0 -100
  597. package/docs/index.html +0 -141
  598. package/docs/modules/array.html +0 -192
  599. package/docs/modules/boolean.html +0 -61
  600. package/docs/modules/date.html +0 -69
  601. package/docs/modules/func.html +0 -67
  602. package/docs/modules/globals.html +0 -61
  603. package/docs/modules/math.html +0 -81
  604. package/docs/modules/number.html +0 -67
  605. package/docs/modules/object.html +0 -115
  606. package/docs/modules/string.html +0 -111
  607. package/docs/modules.html +0 -83
  608. package/docs/types/JoinT.html +0 -66
  609. package/docs/types/OperatorT.html +0 -62
  610. package/docs/types/PathT.html +0 -66
  611. package/docs/types/PathsToStringPropsT.html +0 -66
  612. package/docs/types/RecordT.html +0 -62
  613. package/docs/types/array.CompactT.html +0 -126
  614. package/docs/types/array.NestedArrayT.html +0 -126
  615. package/docs/types/array.OrderT.html +0 -122
  616. package/jest.config.js +0 -194
  617. package/scripts/post-build.sh +0 -13
  618. package/scripts/pre-build.sh +0 -6
  619. package/scripts/regenerate-package-json.js +0 -90
  620. package/src/array/all/index.ts +0 -16
  621. package/src/array/all/shim.ts +0 -20
  622. package/src/array/any/index.ts +0 -17
  623. package/src/array/any/shim.ts +0 -21
  624. package/src/array/append/index.ts +0 -15
  625. package/src/array/append/shim.ts +0 -18
  626. package/src/array/average/index.ts +0 -17
  627. package/src/array/average/shim.ts +0 -35
  628. package/src/array/chunk/index.ts +0 -15
  629. package/src/array/chunk/shim.ts +0 -17
  630. package/src/array/clone/index.ts +0 -12
  631. package/src/array/clone/shim.ts +0 -17
  632. package/src/array/compact/index.ts +0 -21
  633. package/src/array/compact/shim.ts +0 -16
  634. package/src/array/contains/index.ts +0 -17
  635. package/src/array/contains/shim.ts +0 -20
  636. package/src/array/count/index.ts +0 -14
  637. package/src/array/count/shim.ts +0 -19
  638. package/src/array/countBy/index.ts +0 -22
  639. package/src/array/countBy/shim.ts +0 -22
  640. package/src/array/crossJoin/index.ts +0 -15
  641. package/src/array/crossJoin/shim.ts +0 -18
  642. package/src/array/deepFlatten/index.ts +0 -11
  643. package/src/array/deepFlatten/shim.ts +0 -16
  644. package/src/array/diff/index.ts +0 -23
  645. package/src/array/diff/shim.ts +0 -22
  646. package/src/array/distinct/index.ts +0 -44
  647. package/src/array/distinct/shim.ts +0 -21
  648. package/src/array/distinctBy/index.ts +0 -29
  649. package/src/array/distinctBy/shim.ts +0 -17
  650. package/src/array/empty/index.ts +0 -11
  651. package/src/array/empty/shim.ts +0 -19
  652. package/src/array/equals/index.ts +0 -17
  653. package/src/array/equals/shim.ts +0 -17
  654. package/src/array/everyNth/index.ts +0 -10
  655. package/src/array/everyNth/shim.ts +0 -17
  656. package/src/array/first/index.ts +0 -9
  657. package/src/array/first/shim.ts +0 -16
  658. package/src/array/flatten/index.ts +0 -18
  659. package/src/array/flatten/shim.ts +0 -20
  660. package/src/array/get/index.ts +0 -17
  661. package/src/array/get/shim.ts +0 -20
  662. package/src/array/groupBy/index.ts +0 -22
  663. package/src/array/groupBy/shim.ts +0 -21
  664. package/src/array/implode/index.ts +0 -29
  665. package/src/array/implode/shim.ts +0 -22
  666. package/src/array/indexOfAll/index.ts +0 -16
  667. package/src/array/indexOfAll/shim.ts +0 -19
  668. package/src/array/initial/index.ts +0 -8
  669. package/src/array/initial/shim.ts +0 -16
  670. package/src/array/intersect/index.ts +0 -12
  671. package/src/array/intersect/shim.ts +0 -17
  672. package/src/array/isEmpty/index.ts +0 -10
  673. package/src/array/isEmpty/shim.ts +0 -19
  674. package/src/array/last/index.ts +0 -10
  675. package/src/array/last/shim.ts +0 -16
  676. package/src/array/limit/index.ts +0 -10
  677. package/src/array/limit/shim.ts +0 -27
  678. package/src/array/max/index.ts +0 -39
  679. package/src/array/max/shim.ts +0 -21
  680. package/src/array/median/index.ts +0 -39
  681. package/src/array/median/shim.ts +0 -19
  682. package/src/array/merge/index.ts +0 -11
  683. package/src/array/merge/shim.ts +0 -19
  684. package/src/array/min/index.ts +0 -39
  685. package/src/array/min/shim.ts +0 -21
  686. package/src/array/nest/index.ts +0 -37
  687. package/src/array/nest/shim.ts +0 -26
  688. package/src/array/orderBy/index.ts +0 -62
  689. package/src/array/orderBy/shim.ts +0 -31
  690. package/src/array/pad/index.ts +0 -27
  691. package/src/array/pad/shim.ts +0 -20
  692. package/src/array/partition/index.ts +0 -28
  693. package/src/array/partition/shim.ts +0 -24
  694. package/src/array/pluck/index.ts +0 -20
  695. package/src/array/pluck/shim.ts +0 -21
  696. package/src/array/prepend/index.ts +0 -15
  697. package/src/array/prepend/shim.ts +0 -18
  698. package/src/array/pull/index.ts +0 -15
  699. package/src/array/pull/shim.ts +0 -18
  700. package/src/array/range/index.ts +0 -18
  701. package/src/array/range/shim.ts +0 -23
  702. package/src/array/repeat/index.ts +0 -10
  703. package/src/array/repeat/shim.ts +0 -17
  704. package/src/array/sample/index.ts +0 -8
  705. package/src/array/sample/shim.ts +0 -16
  706. package/src/array/shuffle/index.ts +0 -17
  707. package/src/array/shuffle/shim.ts +0 -17
  708. package/src/array/skip/index.ts +0 -10
  709. package/src/array/skip/shim.ts +0 -27
  710. package/src/array/sortBy/index.ts +0 -27
  711. package/src/array/sortBy/shim.ts +0 -20
  712. package/src/array/sum/index.ts +0 -25
  713. package/src/array/sum/shim.ts +0 -21
  714. package/src/array/tail/index.ts +0 -8
  715. package/src/array/tail/shim.ts +0 -16
  716. package/src/array/toCSV/index.ts +0 -14
  717. package/src/array/toCSV/shim.ts +0 -20
  718. package/src/array/union/index.ts +0 -13
  719. package/src/array/union/shim.ts +0 -17
  720. package/src/array/unwind/index.ts +0 -20
  721. package/src/array/unwind/shim.ts +0 -19
  722. package/src/array/where/index.ts +0 -110
  723. package/src/array/where/shim.ts +0 -45
  724. package/src/array/whereBetween/index.ts +0 -47
  725. package/src/array/whereBetween/shim.ts +0 -28
  726. package/src/array/whereIn/index.ts +0 -31
  727. package/src/array/whereIn/shim.ts +0 -26
  728. package/src/array/whereLike/index.ts +0 -38
  729. package/src/array/whereLike/shim.ts +0 -26
  730. package/src/array/whereNotBetween/index.ts +0 -47
  731. package/src/array/whereNotBetween/shim.ts +0 -28
  732. package/src/array/whereNotIn/index.ts +0 -31
  733. package/src/array/whereNotIn/shim.ts +0 -26
  734. package/src/array/whereNotLike/index.ts +0 -38
  735. package/src/array/whereNotLike/shim.ts +0 -26
  736. package/src/array/whereNotNull/index.ts +0 -14
  737. package/src/array/whereNotNull/shim.ts +0 -19
  738. package/src/array/whereNull/index.ts +0 -14
  739. package/src/array/whereNull/shim.ts +0 -24
  740. package/src/array/zip/index.ts +0 -20
  741. package/src/array/zip/shim.ts +0 -20
  742. package/src/array/zipObject/index.ts +0 -23
  743. package/src/array/zipObject/shim.ts +0 -21
  744. package/src/boolean/isBoolean/index.ts +0 -11
  745. package/src/boolean/isBoolean/shim.ts +0 -18
  746. package/src/date/equals/index.ts +0 -12
  747. package/src/date/equals/shim.ts +0 -17
  748. package/src/date/isDate/index.ts +0 -14
  749. package/src/date/isDate/shim.ts +0 -18
  750. package/src/date/today/index.ts +0 -18
  751. package/src/date/today/shim.ts +0 -15
  752. package/src/date/tomorrow/index.ts +0 -20
  753. package/src/date/tomorrow/shim.ts +0 -15
  754. package/src/date/yesterday/index.ts +0 -20
  755. package/src/date/yesterday/shim.ts +0 -15
  756. package/src/function/cache/index.ts +0 -26
  757. package/src/function/cache/shim.ts +0 -21
  758. package/src/function/defer/index.ts +0 -14
  759. package/src/function/defer/shim.ts +0 -18
  760. package/src/function/isFunction/index.ts +0 -11
  761. package/src/function/isFunction/shim.ts +0 -18
  762. package/src/function/once/index.ts +0 -21
  763. package/src/function/once/shim.ts +0 -20
  764. package/src/globals/isBrowser/index.ts +0 -11
  765. package/src/globals/isBrowser/shim.ts +0 -17
  766. package/src/index.ts +0 -11
  767. package/src/math/average/index.ts +0 -13
  768. package/src/math/average/shim.ts +0 -30
  769. package/src/math/degreesToRads/index.ts +0 -11
  770. package/src/math/degreesToRads/shim.ts +0 -16
  771. package/src/math/factorial/index.ts +0 -9
  772. package/src/math/factorial/shim.ts +0 -16
  773. package/src/math/fibonacci/index.ts +0 -12
  774. package/src/math/fibonacci/shim.ts +0 -16
  775. package/src/math/gcd/index.ts +0 -12
  776. package/src/math/gcd/shim.ts +0 -18
  777. package/src/math/isDivisible/index.ts +0 -13
  778. package/src/math/isDivisible/shim.ts +0 -17
  779. package/src/math/isEven/index.ts +0 -9
  780. package/src/math/isEven/shim.ts +0 -16
  781. package/src/math/isPrime/index.ts +0 -13
  782. package/src/math/isPrime/shim.ts +0 -16
  783. package/src/math/lcm/index.ts +0 -13
  784. package/src/math/lcm/shim.ts +0 -18
  785. package/src/math/primes/index.ts +0 -15
  786. package/src/math/primes/shim.ts +0 -16
  787. package/src/math/radsToDegrees/index.ts +0 -11
  788. package/src/math/radsToDegrees/shim.ts +0 -16
  789. package/src/number/digitize/index.ts +0 -8
  790. package/src/number/digitize/shim.ts +0 -16
  791. package/src/number/equals/index.ts +0 -10
  792. package/src/number/equals/shim.ts +0 -17
  793. package/src/number/inRange/index.ts +0 -11
  794. package/src/number/inRange/shim.ts +0 -18
  795. package/src/number/isNumber/index.ts +0 -11
  796. package/src/number/isNumber/shim.ts +0 -18
  797. package/src/object/assign/index.ts +0 -13
  798. package/src/object/assign/shim.ts +0 -17
  799. package/src/object/camelCaseKeys/index.ts +0 -17
  800. package/src/object/camelCaseKeys/shim.ts +0 -17
  801. package/src/object/clone/index.ts +0 -16
  802. package/src/object/clone/shim.ts +0 -18
  803. package/src/object/defaults/index.ts +0 -13
  804. package/src/object/defaults/shim.ts +0 -17
  805. package/src/object/dig/index.ts +0 -30
  806. package/src/object/dig/shim.ts +0 -25
  807. package/src/object/empty/index.ts +0 -15
  808. package/src/object/empty/shim.ts +0 -18
  809. package/src/object/equals/index.ts +0 -31
  810. package/src/object/equals/shim.ts +0 -17
  811. package/src/object/flatten/index.ts +0 -40
  812. package/src/object/flatten/shim.ts +0 -16
  813. package/src/object/forEach/index.ts +0 -19
  814. package/src/object/forEach/shim.ts +0 -27
  815. package/src/object/get/index.ts +0 -18
  816. package/src/object/get/shim.ts +0 -17
  817. package/src/object/invert/index.ts +0 -15
  818. package/src/object/invert/shim.ts +0 -16
  819. package/src/object/isEmpty/index.ts +0 -13
  820. package/src/object/isEmpty/shim.ts +0 -18
  821. package/src/object/isObject/index.ts +0 -11
  822. package/src/object/isObject/shim.ts +0 -18
  823. package/src/object/isObjectLike/index.ts +0 -15
  824. package/src/object/isObjectLike/shim.ts +0 -18
  825. package/src/object/isPlainObject/index.ts +0 -20
  826. package/src/object/isPlainObject/shim.ts +0 -18
  827. package/src/object/kebabCaseKeys/index.ts +0 -17
  828. package/src/object/kebabCaseKeys/shim.ts +0 -17
  829. package/src/object/keys/index.ts +0 -9
  830. package/src/object/keys/shim.ts +0 -16
  831. package/src/object/lowerCaseKeys/index.ts +0 -15
  832. package/src/object/lowerCaseKeys/shim.ts +0 -17
  833. package/src/object/map/index.ts +0 -31
  834. package/src/object/map/shim.ts +0 -28
  835. package/src/object/mapKeys/index.ts +0 -24
  836. package/src/object/mapKeys/shim.ts +0 -24
  837. package/src/object/mapValues/index.ts +0 -29
  838. package/src/object/mapValues/shim.ts +0 -28
  839. package/src/object/merge/index.ts +0 -34
  840. package/src/object/merge/shim.ts +0 -26
  841. package/src/object/omit/index.ts +0 -42
  842. package/src/object/omit/shim.ts +0 -23
  843. package/src/object/reduce/index.ts +0 -27
  844. package/src/object/reduce/shim.ts +0 -26
  845. package/src/object/set/index.ts +0 -32
  846. package/src/object/set/shim.ts +0 -20
  847. package/src/object/size/index.ts +0 -10
  848. package/src/object/size/shim.ts +0 -16
  849. package/src/object/snakeCaseKeys/index.ts +0 -17
  850. package/src/object/snakeCaseKeys/shim.ts +0 -17
  851. package/src/object/values/index.ts +0 -9
  852. package/src/object/values/shim.ts +0 -16
  853. package/src/string/base64/index.ts +0 -8
  854. package/src/string/base64/shim.ts +0 -16
  855. package/src/string/base64Decode/index.ts +0 -8
  856. package/src/string/base64Decode/shim.ts +0 -16
  857. package/src/string/camelCase/index.ts +0 -21
  858. package/src/string/camelCase/shim.ts +0 -23
  859. package/src/string/capitalize/index.ts +0 -14
  860. package/src/string/capitalize/shim.ts +0 -19
  861. package/src/string/chars/index.ts +0 -8
  862. package/src/string/chars/shim.ts +0 -16
  863. package/src/string/contains/index.ts +0 -19
  864. package/src/string/contains/shim.ts +0 -20
  865. package/src/string/decapitalize/index.ts +0 -14
  866. package/src/string/decapitalize/shim.ts +0 -19
  867. package/src/string/equals/index.ts +0 -10
  868. package/src/string/equals/shim.ts +0 -17
  869. package/src/string/forEach/index.ts +0 -13
  870. package/src/string/forEach/shim.ts +0 -17
  871. package/src/string/humanize/index.ts +0 -16
  872. package/src/string/humanize/shim.ts +0 -18
  873. package/src/string/isEmpty/index.ts +0 -11
  874. package/src/string/isEmpty/shim.ts +0 -18
  875. package/src/string/isString/index.ts +0 -11
  876. package/src/string/isString/shim.ts +0 -18
  877. package/src/string/kebabCase/index.ts +0 -23
  878. package/src/string/kebabCase/shim.ts +0 -26
  879. package/src/string/lines/index.ts +0 -9
  880. package/src/string/lines/shim.ts +0 -16
  881. package/src/string/map/index.ts +0 -14
  882. package/src/string/map/shim.ts +0 -17
  883. package/src/string/mask/index.ts +0 -15
  884. package/src/string/mask/shim.ts +0 -22
  885. package/src/string/pad/index.ts +0 -23
  886. package/src/string/pad/shim.ts +0 -20
  887. package/src/string/parseInt/index.ts +0 -10
  888. package/src/string/parseInt/shim.ts +0 -17
  889. package/src/string/pluralize/index.ts +0 -427
  890. package/src/string/pluralize/shim.ts +0 -27
  891. package/src/string/reduce/index.ts +0 -16
  892. package/src/string/reduce/shim.ts +0 -21
  893. package/src/string/repeat/index.ts +0 -12
  894. package/src/string/repeat/shim.ts +0 -17
  895. package/src/string/reverse/index.ts +0 -9
  896. package/src/string/reverse/shim.ts +0 -16
  897. package/src/string/snakeCase/index.ts +0 -23
  898. package/src/string/snakeCase/shim.ts +0 -26
  899. package/src/string/swapCase/index.ts +0 -9
  900. package/src/string/swapCase/shim.ts +0 -16
  901. package/src/string/truncate/index.ts +0 -21
  902. package/src/string/truncate/shim.ts +0 -20
  903. package/src/string/words/index.ts +0 -12
  904. package/src/string/words/shim.ts +0 -19
  905. package/src/utils.ts +0 -151
  906. package/stale.yml +0 -17
  907. package/tsconfig.eslint.json +0 -4
  908. package/tsconfig.esm.json +0 -11
  909. package/tsconfig.json +0 -103
  910. package/typedoc.json +0 -12
  911. /package/build/{types → cjs}/array/all/index.d.ts +0 -0
  912. /package/build/{types → cjs}/array/all/shim.d.ts +0 -0
  913. /package/build/{types → cjs}/array/any/index.d.ts +0 -0
  914. /package/build/{types → cjs}/array/any/shim.d.ts +0 -0
  915. /package/build/{types → cjs}/array/append/index.d.ts +0 -0
  916. /package/build/{types → cjs}/array/append/shim.d.ts +0 -0
  917. /package/build/{types → cjs}/array/average/index.d.ts +0 -0
  918. /package/build/{types → cjs}/array/average/shim.d.ts +0 -0
  919. /package/build/{types → cjs}/array/chunk/index.d.ts +0 -0
  920. /package/build/{types → cjs}/array/chunk/shim.d.ts +0 -0
  921. /package/build/{types → cjs}/array/clone/index.d.ts +0 -0
  922. /package/build/{types → cjs}/array/clone/shim.d.ts +0 -0
  923. /package/build/{types → cjs}/array/compact/index.d.ts +0 -0
  924. /package/build/{types → cjs}/array/compact/shim.d.ts +0 -0
  925. /package/build/{types → cjs}/array/contains/index.d.ts +0 -0
  926. /package/build/{types → cjs}/array/contains/shim.d.ts +0 -0
  927. /package/build/{types → cjs}/array/count/index.d.ts +0 -0
  928. /package/build/{types → cjs}/array/count/shim.d.ts +0 -0
  929. /package/build/{types → cjs}/array/countBy/index.d.ts +0 -0
  930. /package/build/{types → cjs}/array/countBy/shim.d.ts +0 -0
  931. /package/build/{types → cjs}/array/crossJoin/index.d.ts +0 -0
  932. /package/build/{types → cjs}/array/crossJoin/shim.d.ts +0 -0
  933. /package/build/{types → cjs}/array/deepFlatten/index.d.ts +0 -0
  934. /package/build/{types → cjs}/array/deepFlatten/shim.d.ts +0 -0
  935. /package/build/{types → cjs}/array/diff/index.d.ts +0 -0
  936. /package/build/{types → cjs}/array/diff/shim.d.ts +0 -0
  937. /package/build/{types → cjs}/array/distinct/index.d.ts +0 -0
  938. /package/build/{types → cjs}/array/distinct/shim.d.ts +0 -0
  939. /package/build/{types → cjs}/array/distinctBy/index.d.ts +0 -0
  940. /package/build/{types → cjs}/array/distinctBy/shim.d.ts +0 -0
  941. /package/build/{types → cjs}/array/empty/index.d.ts +0 -0
  942. /package/build/{types → cjs}/array/empty/shim.d.ts +0 -0
  943. /package/build/{types → cjs}/array/equals/index.d.ts +0 -0
  944. /package/build/{types → cjs}/array/equals/shim.d.ts +0 -0
  945. /package/build/{types → cjs}/array/everyNth/index.d.ts +0 -0
  946. /package/build/{types → cjs}/array/everyNth/shim.d.ts +0 -0
  947. /package/build/{types → cjs}/array/first/index.d.ts +0 -0
  948. /package/build/{types → cjs}/array/first/shim.d.ts +0 -0
  949. /package/build/{types → cjs}/array/flatten/index.d.ts +0 -0
  950. /package/build/{types → cjs}/array/flatten/shim.d.ts +0 -0
  951. /package/build/{types → cjs}/array/get/index.d.ts +0 -0
  952. /package/build/{types → cjs}/array/get/shim.d.ts +0 -0
  953. /package/build/{types → cjs}/array/groupBy/index.d.ts +0 -0
  954. /package/build/{types → cjs}/array/groupBy/shim.d.ts +0 -0
  955. /package/build/{types → cjs}/array/implode/index.d.ts +0 -0
  956. /package/build/{types → cjs}/array/implode/shim.d.ts +0 -0
  957. /package/build/{types → cjs}/array/index.d.ts +0 -0
  958. /package/build/{types → cjs}/array/indexOfAll/index.d.ts +0 -0
  959. /package/build/{types → cjs}/array/indexOfAll/shim.d.ts +0 -0
  960. /package/build/{types → cjs}/array/initial/index.d.ts +0 -0
  961. /package/build/{types → cjs}/array/initial/shim.d.ts +0 -0
  962. /package/build/{types → cjs}/array/intersect/index.d.ts +0 -0
  963. /package/build/{types → cjs}/array/intersect/shim.d.ts +0 -0
  964. /package/build/{types → cjs}/array/isEmpty/index.d.ts +0 -0
  965. /package/build/{types → cjs}/array/isEmpty/shim.d.ts +0 -0
  966. /package/build/{types → cjs}/array/last/index.d.ts +0 -0
  967. /package/build/{types → cjs}/array/last/shim.d.ts +0 -0
  968. /package/build/{types → cjs}/array/limit/index.d.ts +0 -0
  969. /package/build/{types → cjs}/array/limit/shim.d.ts +0 -0
  970. /package/build/{types → cjs}/array/max/index.d.ts +0 -0
  971. /package/build/{types → cjs}/array/max/shim.d.ts +0 -0
  972. /package/build/{types → cjs}/array/median/index.d.ts +0 -0
  973. /package/build/{types → cjs}/array/median/shim.d.ts +0 -0
  974. /package/build/{types → cjs}/array/merge/index.d.ts +0 -0
  975. /package/build/{types → cjs}/array/merge/shim.d.ts +0 -0
  976. /package/build/{types → cjs}/array/min/index.d.ts +0 -0
  977. /package/build/{types → cjs}/array/min/shim.d.ts +0 -0
  978. /package/build/{types → cjs}/array/nest/index.d.ts +0 -0
  979. /package/build/{types → cjs}/array/nest/shim.d.ts +0 -0
  980. /package/build/{types → cjs}/array/orderBy/index.d.ts +0 -0
  981. /package/build/{types → cjs}/array/orderBy/shim.d.ts +0 -0
  982. /package/build/{types → cjs}/array/pad/index.d.ts +0 -0
  983. /package/build/{types → cjs}/array/pad/shim.d.ts +0 -0
  984. /package/build/{types → cjs}/array/partition/index.d.ts +0 -0
  985. /package/build/{types → cjs}/array/partition/shim.d.ts +0 -0
  986. /package/build/{types → cjs}/array/pluck/index.d.ts +0 -0
  987. /package/build/{types → cjs}/array/pluck/shim.d.ts +0 -0
  988. /package/build/{types → cjs}/array/prepend/index.d.ts +0 -0
  989. /package/build/{types → cjs}/array/prepend/shim.d.ts +0 -0
  990. /package/build/{types → cjs}/array/pull/index.d.ts +0 -0
  991. /package/build/{types → cjs}/array/pull/shim.d.ts +0 -0
  992. /package/build/{types → cjs}/array/range/index.d.ts +0 -0
  993. /package/build/{types → cjs}/array/range/shim.d.ts +0 -0
  994. /package/build/{types → cjs}/array/repeat/index.d.ts +0 -0
  995. /package/build/{types → cjs}/array/repeat/shim.d.ts +0 -0
  996. /package/build/{types → cjs}/array/sample/index.d.ts +0 -0
  997. /package/build/{types → cjs}/array/sample/shim.d.ts +0 -0
  998. /package/build/{types → cjs}/array/shim.d.ts +0 -0
  999. /package/build/{types → cjs}/array/shuffle/index.d.ts +0 -0
  1000. /package/build/{types → cjs}/array/shuffle/shim.d.ts +0 -0
  1001. /package/build/{types → cjs}/array/skip/index.d.ts +0 -0
  1002. /package/build/{types → cjs}/array/skip/shim.d.ts +0 -0
  1003. /package/build/{types → cjs}/array/sortBy/index.d.ts +0 -0
  1004. /package/build/{types → cjs}/array/sortBy/shim.d.ts +0 -0
  1005. /package/build/{types → cjs}/array/sum/index.d.ts +0 -0
  1006. /package/build/{types → cjs}/array/sum/shim.d.ts +0 -0
  1007. /package/build/{types → cjs}/array/tail/index.d.ts +0 -0
  1008. /package/build/{types → cjs}/array/tail/shim.d.ts +0 -0
  1009. /package/build/{types → cjs}/array/toCSV/index.d.ts +0 -0
  1010. /package/build/{types → cjs}/array/toCSV/shim.d.ts +0 -0
  1011. /package/build/{types → cjs}/array/union/index.d.ts +0 -0
  1012. /package/build/{types → cjs}/array/union/shim.d.ts +0 -0
  1013. /package/build/{types → cjs}/array/unwind/index.d.ts +0 -0
  1014. /package/build/{types → cjs}/array/unwind/shim.d.ts +0 -0
  1015. /package/build/{types → cjs}/array/where/index.d.ts +0 -0
  1016. /package/build/{types → cjs}/array/where/shim.d.ts +0 -0
  1017. /package/build/{types → cjs}/array/whereBetween/index.d.ts +0 -0
  1018. /package/build/{types → cjs}/array/whereBetween/shim.d.ts +0 -0
  1019. /package/build/{types → cjs}/array/whereIn/index.d.ts +0 -0
  1020. /package/build/{types → cjs}/array/whereIn/shim.d.ts +0 -0
  1021. /package/build/{types → cjs}/array/whereLike/index.d.ts +0 -0
  1022. /package/build/{types → cjs}/array/whereLike/shim.d.ts +0 -0
  1023. /package/build/{types → cjs}/array/whereNotBetween/index.d.ts +0 -0
  1024. /package/build/{types → cjs}/array/whereNotBetween/shim.d.ts +0 -0
  1025. /package/build/{types → cjs}/array/whereNotIn/index.d.ts +0 -0
  1026. /package/build/{types → cjs}/array/whereNotIn/shim.d.ts +0 -0
  1027. /package/build/{types → cjs}/array/whereNotLike/index.d.ts +0 -0
  1028. /package/build/{types → cjs}/array/whereNotLike/shim.d.ts +0 -0
  1029. /package/build/{types → cjs}/array/whereNotNull/index.d.ts +0 -0
  1030. /package/build/{types → cjs}/array/whereNotNull/shim.d.ts +0 -0
  1031. /package/build/{types → cjs}/array/whereNull/index.d.ts +0 -0
  1032. /package/build/{types → cjs}/array/whereNull/shim.d.ts +0 -0
  1033. /package/build/{types → cjs}/array/zip/index.d.ts +0 -0
  1034. /package/build/{types → cjs}/array/zip/shim.d.ts +0 -0
  1035. /package/build/{types → cjs}/array/zipObject/index.d.ts +0 -0
  1036. /package/build/{types → cjs}/array/zipObject/shim.d.ts +0 -0
  1037. /package/build/{types → cjs}/boolean/index.d.ts +0 -0
  1038. /package/build/{types → cjs}/boolean/isBoolean/index.d.ts +0 -0
  1039. /package/build/{types → cjs}/boolean/isBoolean/shim.d.ts +0 -0
  1040. /package/build/{types → cjs}/boolean/shim.d.ts +0 -0
  1041. /package/build/{types → cjs}/date/equals/index.d.ts +0 -0
  1042. /package/build/{types → cjs}/date/equals/shim.d.ts +0 -0
  1043. /package/build/{types → cjs}/date/index.d.ts +0 -0
  1044. /package/build/{types → cjs}/date/isDate/index.d.ts +0 -0
  1045. /package/build/{types → cjs}/date/isDate/shim.d.ts +0 -0
  1046. /package/build/{types → cjs}/date/shim.d.ts +0 -0
  1047. /package/build/{types → cjs}/date/today/index.d.ts +0 -0
  1048. /package/build/{types → cjs}/date/today/shim.d.ts +0 -0
  1049. /package/build/{types → cjs}/date/tomorrow/index.d.ts +0 -0
  1050. /package/build/{types → cjs}/date/tomorrow/shim.d.ts +0 -0
  1051. /package/build/{types → cjs}/date/yesterday/index.d.ts +0 -0
  1052. /package/build/{types → cjs}/date/yesterday/shim.d.ts +0 -0
  1053. /package/build/{types → cjs}/function/cache/index.d.ts +0 -0
  1054. /package/build/{types → cjs}/function/cache/shim.d.ts +0 -0
  1055. /package/build/{types → cjs}/function/defer/index.d.ts +0 -0
  1056. /package/build/{types → cjs}/function/defer/shim.d.ts +0 -0
  1057. /package/build/{types → cjs}/function/index.d.ts +0 -0
  1058. /package/build/{types → cjs}/function/isFunction/index.d.ts +0 -0
  1059. /package/build/{types → cjs}/function/isFunction/shim.d.ts +0 -0
  1060. /package/build/{types → cjs}/function/once/index.d.ts +0 -0
  1061. /package/build/{types → cjs}/function/once/shim.d.ts +0 -0
  1062. /package/build/{types → cjs}/function/shim.d.ts +0 -0
  1063. /package/build/{types → cjs}/globals/index.d.ts +0 -0
  1064. /package/build/{types → cjs}/globals/isBrowser/index.d.ts +0 -0
  1065. /package/build/{types → cjs}/globals/isBrowser/shim.d.ts +0 -0
  1066. /package/build/{types → cjs}/globals/shim.d.ts +0 -0
  1067. /package/build/{types → cjs}/index.d.ts +0 -0
  1068. /package/build/{types → cjs}/math/average/index.d.ts +0 -0
  1069. /package/build/{types → cjs}/math/average/shim.d.ts +0 -0
  1070. /package/build/{types → cjs}/math/degreesToRads/index.d.ts +0 -0
  1071. /package/build/{types → cjs}/math/degreesToRads/shim.d.ts +0 -0
  1072. /package/build/{types → cjs}/math/factorial/index.d.ts +0 -0
  1073. /package/build/{types → cjs}/math/factorial/shim.d.ts +0 -0
  1074. /package/build/{types → cjs}/math/fibonacci/index.d.ts +0 -0
  1075. /package/build/{types → cjs}/math/fibonacci/shim.d.ts +0 -0
  1076. /package/build/{types → cjs}/math/gcd/index.d.ts +0 -0
  1077. /package/build/{types → cjs}/math/gcd/shim.d.ts +0 -0
  1078. /package/build/{types → cjs}/math/index.d.ts +0 -0
  1079. /package/build/{types → cjs}/math/isDivisible/index.d.ts +0 -0
  1080. /package/build/{types → cjs}/math/isDivisible/shim.d.ts +0 -0
  1081. /package/build/{types → cjs}/math/isEven/index.d.ts +0 -0
  1082. /package/build/{types → cjs}/math/isEven/shim.d.ts +0 -0
  1083. /package/build/{types → cjs}/math/isPrime/index.d.ts +0 -0
  1084. /package/build/{types → cjs}/math/isPrime/shim.d.ts +0 -0
  1085. /package/build/{types → cjs}/math/lcm/index.d.ts +0 -0
  1086. /package/build/{types → cjs}/math/lcm/shim.d.ts +0 -0
  1087. /package/build/{types → cjs}/math/primes/index.d.ts +0 -0
  1088. /package/build/{types → cjs}/math/primes/shim.d.ts +0 -0
  1089. /package/build/{types → cjs}/math/radsToDegrees/index.d.ts +0 -0
  1090. /package/build/{types → cjs}/math/radsToDegrees/shim.d.ts +0 -0
  1091. /package/build/{types → cjs}/math/shim.d.ts +0 -0
  1092. /package/build/{types → cjs}/number/digitize/index.d.ts +0 -0
  1093. /package/build/{types → cjs}/number/digitize/shim.d.ts +0 -0
  1094. /package/build/{types → cjs}/number/equals/index.d.ts +0 -0
  1095. /package/build/{types → cjs}/number/equals/shim.d.ts +0 -0
  1096. /package/build/{types → cjs}/number/inRange/index.d.ts +0 -0
  1097. /package/build/{types → cjs}/number/inRange/shim.d.ts +0 -0
  1098. /package/build/{types → cjs}/number/index.d.ts +0 -0
  1099. /package/build/{types → cjs}/number/isNumber/index.d.ts +0 -0
  1100. /package/build/{types → cjs}/number/isNumber/shim.d.ts +0 -0
  1101. /package/build/{types → cjs}/number/shim.d.ts +0 -0
  1102. /package/build/{types → cjs}/object/assign/index.d.ts +0 -0
  1103. /package/build/{types → cjs}/object/assign/shim.d.ts +0 -0
  1104. /package/build/{types → cjs}/object/camelCaseKeys/index.d.ts +0 -0
  1105. /package/build/{types → cjs}/object/camelCaseKeys/shim.d.ts +0 -0
  1106. /package/build/{types → cjs}/object/clone/index.d.ts +0 -0
  1107. /package/build/{types → cjs}/object/clone/shim.d.ts +0 -0
  1108. /package/build/{types → cjs}/object/defaults/index.d.ts +0 -0
  1109. /package/build/{types → cjs}/object/defaults/shim.d.ts +0 -0
  1110. /package/build/{types → cjs}/object/dig/index.d.ts +0 -0
  1111. /package/build/{types → cjs}/object/dig/shim.d.ts +0 -0
  1112. /package/build/{types → cjs}/object/empty/index.d.ts +0 -0
  1113. /package/build/{types → cjs}/object/empty/shim.d.ts +0 -0
  1114. /package/build/{types → cjs}/object/equals/index.d.ts +0 -0
  1115. /package/build/{types → cjs}/object/equals/shim.d.ts +0 -0
  1116. /package/build/{types → cjs}/object/flatten/index.d.ts +0 -0
  1117. /package/build/{types → cjs}/object/flatten/shim.d.ts +0 -0
  1118. /package/build/{types → cjs}/object/forEach/index.d.ts +0 -0
  1119. /package/build/{types → cjs}/object/forEach/shim.d.ts +0 -0
  1120. /package/build/{types → cjs}/object/get/index.d.ts +0 -0
  1121. /package/build/{types → cjs}/object/get/shim.d.ts +0 -0
  1122. /package/build/{types → cjs}/object/index.d.ts +0 -0
  1123. /package/build/{types → cjs}/object/invert/index.d.ts +0 -0
  1124. /package/build/{types → cjs}/object/invert/shim.d.ts +0 -0
  1125. /package/build/{types → cjs}/object/isEmpty/index.d.ts +0 -0
  1126. /package/build/{types → cjs}/object/isEmpty/shim.d.ts +0 -0
  1127. /package/build/{types → cjs}/object/isObject/index.d.ts +0 -0
  1128. /package/build/{types → cjs}/object/isObject/shim.d.ts +0 -0
  1129. /package/build/{types → cjs}/object/isObjectLike/index.d.ts +0 -0
  1130. /package/build/{types → cjs}/object/isObjectLike/shim.d.ts +0 -0
  1131. /package/build/{types → cjs}/object/isPlainObject/index.d.ts +0 -0
  1132. /package/build/{types → cjs}/object/isPlainObject/shim.d.ts +0 -0
  1133. /package/build/{types → cjs}/object/kebabCaseKeys/index.d.ts +0 -0
  1134. /package/build/{types → cjs}/object/kebabCaseKeys/shim.d.ts +0 -0
  1135. /package/build/{types → cjs}/object/keys/index.d.ts +0 -0
  1136. /package/build/{types → cjs}/object/keys/shim.d.ts +0 -0
  1137. /package/build/{types → cjs}/object/lowerCaseKeys/index.d.ts +0 -0
  1138. /package/build/{types → cjs}/object/lowerCaseKeys/shim.d.ts +0 -0
  1139. /package/build/{types → cjs}/object/map/index.d.ts +0 -0
  1140. /package/build/{types → cjs}/object/map/shim.d.ts +0 -0
  1141. /package/build/{types → cjs}/object/mapKeys/index.d.ts +0 -0
  1142. /package/build/{types → cjs}/object/mapKeys/shim.d.ts +0 -0
  1143. /package/build/{types → cjs}/object/mapValues/index.d.ts +0 -0
  1144. /package/build/{types → cjs}/object/mapValues/shim.d.ts +0 -0
  1145. /package/build/{types → cjs}/object/merge/index.d.ts +0 -0
  1146. /package/build/{types → cjs}/object/merge/shim.d.ts +0 -0
  1147. /package/build/{types → cjs}/object/omit/index.d.ts +0 -0
  1148. /package/build/{types → cjs}/object/omit/shim.d.ts +0 -0
  1149. /package/build/{types → cjs}/object/reduce/index.d.ts +0 -0
  1150. /package/build/{types → cjs}/object/reduce/shim.d.ts +0 -0
  1151. /package/build/{types → cjs}/object/set/index.d.ts +0 -0
  1152. /package/build/{types → cjs}/object/set/shim.d.ts +0 -0
  1153. /package/build/{types → cjs}/object/shim.d.ts +0 -0
  1154. /package/build/{types → cjs}/object/size/index.d.ts +0 -0
  1155. /package/build/{types → cjs}/object/size/shim.d.ts +0 -0
  1156. /package/build/{types → cjs}/object/snakeCaseKeys/index.d.ts +0 -0
  1157. /package/build/{types → cjs}/object/snakeCaseKeys/shim.d.ts +0 -0
  1158. /package/build/{types → cjs}/object/values/index.d.ts +0 -0
  1159. /package/build/{types → cjs}/object/values/shim.d.ts +0 -0
  1160. /package/build/{types → cjs}/shim.d.ts +0 -0
  1161. /package/build/{types → cjs}/string/base64/index.d.ts +0 -0
  1162. /package/build/{types → cjs}/string/base64/shim.d.ts +0 -0
  1163. /package/build/{types → cjs}/string/base64Decode/index.d.ts +0 -0
  1164. /package/build/{types → cjs}/string/base64Decode/shim.d.ts +0 -0
  1165. /package/build/{types → cjs}/string/camelCase/index.d.ts +0 -0
  1166. /package/build/{types → cjs}/string/camelCase/shim.d.ts +0 -0
  1167. /package/build/{types → cjs}/string/capitalize/index.d.ts +0 -0
  1168. /package/build/{types → cjs}/string/capitalize/shim.d.ts +0 -0
  1169. /package/build/{types → cjs}/string/chars/index.d.ts +0 -0
  1170. /package/build/{types → cjs}/string/chars/shim.d.ts +0 -0
  1171. /package/build/{types → cjs}/string/contains/index.d.ts +0 -0
  1172. /package/build/{types → cjs}/string/contains/shim.d.ts +0 -0
  1173. /package/build/{types → cjs}/string/decapitalize/index.d.ts +0 -0
  1174. /package/build/{types → cjs}/string/decapitalize/shim.d.ts +0 -0
  1175. /package/build/{types → cjs}/string/equals/index.d.ts +0 -0
  1176. /package/build/{types → cjs}/string/equals/shim.d.ts +0 -0
  1177. /package/build/{types → cjs}/string/forEach/index.d.ts +0 -0
  1178. /package/build/{types → cjs}/string/forEach/shim.d.ts +0 -0
  1179. /package/build/{types → cjs}/string/humanize/index.d.ts +0 -0
  1180. /package/build/{types → cjs}/string/humanize/shim.d.ts +0 -0
  1181. /package/build/{types → cjs}/string/index.d.ts +0 -0
  1182. /package/build/{types → cjs}/string/isEmpty/index.d.ts +0 -0
  1183. /package/build/{types → cjs}/string/isEmpty/shim.d.ts +0 -0
  1184. /package/build/{types → cjs}/string/isString/index.d.ts +0 -0
  1185. /package/build/{types → cjs}/string/isString/shim.d.ts +0 -0
  1186. /package/build/{types → cjs}/string/kebabCase/index.d.ts +0 -0
  1187. /package/build/{types → cjs}/string/kebabCase/shim.d.ts +0 -0
  1188. /package/build/{types → cjs}/string/lines/index.d.ts +0 -0
  1189. /package/build/{types → cjs}/string/lines/shim.d.ts +0 -0
  1190. /package/build/{types → cjs}/string/map/index.d.ts +0 -0
  1191. /package/build/{types → cjs}/string/map/shim.d.ts +0 -0
  1192. /package/build/{types → cjs}/string/mask/index.d.ts +0 -0
  1193. /package/build/{types → cjs}/string/mask/shim.d.ts +0 -0
  1194. /package/build/{types → cjs}/string/pad/index.d.ts +0 -0
  1195. /package/build/{types → cjs}/string/pad/shim.d.ts +0 -0
  1196. /package/build/{types → cjs}/string/parseInt/index.d.ts +0 -0
  1197. /package/build/{types → cjs}/string/parseInt/shim.d.ts +0 -0
  1198. /package/build/{types → cjs}/string/pluralize/index.d.ts +0 -0
  1199. /package/build/{types → cjs}/string/pluralize/shim.d.ts +0 -0
  1200. /package/build/{types → cjs}/string/reduce/index.d.ts +0 -0
  1201. /package/build/{types → cjs}/string/reduce/shim.d.ts +0 -0
  1202. /package/build/{types → cjs}/string/repeat/index.d.ts +0 -0
  1203. /package/build/{types → cjs}/string/repeat/shim.d.ts +0 -0
  1204. /package/build/{types → cjs}/string/reverse/index.d.ts +0 -0
  1205. /package/build/{types → cjs}/string/reverse/shim.d.ts +0 -0
  1206. /package/build/{types → cjs}/string/shim.d.ts +0 -0
  1207. /package/build/{types → cjs}/string/snakeCase/index.d.ts +0 -0
  1208. /package/build/{types → cjs}/string/snakeCase/shim.d.ts +0 -0
  1209. /package/build/{types → cjs}/string/swapCase/index.d.ts +0 -0
  1210. /package/build/{types → cjs}/string/swapCase/shim.d.ts +0 -0
  1211. /package/build/{types → cjs}/string/truncate/index.d.ts +0 -0
  1212. /package/build/{types → cjs}/string/truncate/shim.d.ts +0 -0
  1213. /package/build/{types → cjs}/string/words/index.d.ts +0 -0
  1214. /package/build/{types → cjs}/string/words/shim.d.ts +0 -0
  1215. /package/build/{types → cjs}/utils.d.ts +0 -0
  1216. /package/{src/array/index.ts → build/esm/array/index.d.ts} +0 -0
  1217. /package/{src/array/shim.ts → build/esm/array/shim.d.ts} +0 -0
  1218. /package/{src/boolean/index.ts → build/esm/boolean/index.d.ts} +0 -0
  1219. /package/{src/boolean/shim.ts → build/esm/boolean/shim.d.ts} +0 -0
  1220. /package/{src/date/index.ts → build/esm/date/index.d.ts} +0 -0
  1221. /package/{src/date/shim.ts → build/esm/date/shim.d.ts} +0 -0
  1222. /package/{src/function/index.ts → build/esm/function/index.d.ts} +0 -0
  1223. /package/{src/function/shim.ts → build/esm/function/shim.d.ts} +0 -0
  1224. /package/{src/globals/index.ts → build/esm/globals/index.d.ts} +0 -0
  1225. /package/{src/globals/shim.ts → build/esm/globals/shim.d.ts} +0 -0
  1226. /package/{src/math/index.ts → build/esm/math/index.d.ts} +0 -0
  1227. /package/{src/math/shim.ts → build/esm/math/shim.d.ts} +0 -0
  1228. /package/{src/number/index.ts → build/esm/number/index.d.ts} +0 -0
  1229. /package/{src/number/shim.ts → build/esm/number/shim.d.ts} +0 -0
  1230. /package/{src/object/index.ts → build/esm/object/index.d.ts} +0 -0
  1231. /package/{src/object/shim.ts → build/esm/object/shim.d.ts} +0 -0
  1232. /package/{src/shim.ts → build/esm/shim.d.ts} +0 -0
  1233. /package/{src/string/index.ts → build/esm/string/index.d.ts} +0 -0
  1234. /package/{src/string/shim.ts → build/esm/string/shim.d.ts} +0 -0
@@ -1,427 +0,0 @@
1
- /* eslint-disable prefer-named-capture-group */
2
- import { hasOwnProperty } from "../../utils.js";
3
- import isString from "../isString/index.js";
4
-
5
- const IRREGULAR_RULES = [
6
- // Pronouns.
7
- ["I", "we"],
8
- ["me", "us"],
9
- ["he", "they"],
10
- ["she", "they"],
11
- ["them", "them"],
12
- ["myself", "ourselves"],
13
- ["yourself", "yourselves"],
14
- ["itself", "themselves"],
15
- ["herself", "themselves"],
16
- ["himself", "themselves"],
17
- ["themself", "themselves"],
18
- ["is", "are"],
19
- ["was", "were"],
20
- ["has", "have"],
21
- ["this", "these"],
22
- ["that", "those"],
23
-
24
- // Words ending in with a consonant and `o`.
25
- ["echo", "echoes"],
26
- ["dingo", "dingoes"],
27
- ["volcano", "volcanoes"],
28
- ["tornado", "tornadoes"],
29
- ["torpedo", "torpedoes"],
30
-
31
- // Ends with `us`.
32
- ["genus", "genera"],
33
- ["viscus", "viscera"],
34
-
35
- // Ends with `ma`.
36
- ["stigma", "stigmata"],
37
- ["stoma", "stomata"],
38
- ["dogma", "dogmata"],
39
- ["lemma", "lemmata"],
40
- ["schema", "schemata"],
41
- ["anathema", "anathemata"],
42
-
43
- // Other irregular rules.
44
- ["ox", "oxen"],
45
- ["axe", "axes"],
46
- ["die", "dice"],
47
- ["yes", "yeses"],
48
- ["foot", "feet"],
49
- ["eave", "eaves"],
50
- ["goose", "geese"],
51
- ["tooth", "teeth"],
52
- ["quiz", "quizzes"],
53
- ["human", "humans"],
54
- ["proof", "proofs"],
55
- ["carve", "carves"],
56
- ["valve", "valves"],
57
- ["looey", "looies"],
58
- ["thief", "thieves"],
59
- ["groove", "grooves"],
60
- ["pickaxe", "pickaxes"],
61
- ["whiskey", "whiskies"],
62
- ];
63
-
64
- const PLURALIZATION_RUES: Array<[RegExp | string, string]> = [
65
- [/s?$/i, "s"],
66
- // eslint-disable-next-line no-control-regex
67
- [/[^\u0000-\u007F]$/i, "$0"],
68
- [/([^aeiou]ese)$/i, "$1"],
69
- [/(ax|test)is$/i, "$1es"],
70
- [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
71
- [/(e[mn]u)s?$/i, "$1s"],
72
- [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
73
- [
74
- /(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,
75
- "$1i",
76
- ],
77
- [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
78
- [/(seraph|cherub)(?:im)?$/i, "$1im"],
79
- [/(her|at|gr)o$/i, "$1oes"],
80
- [
81
- // eslint-disable-next-line max-len
82
- /(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,
83
- "$1a",
84
- ],
85
- [
86
- /(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,
87
- "$1a",
88
- ],
89
- [/sis$/i, "ses"],
90
- [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
91
- [/([^aeiouy]|qu)y$/i, "$1ies"],
92
- [/([^ch][ieo][ln])ey$/i, "$1ies"],
93
- [/(x|ch|ss|sh|zz)$/i, "$1es"],
94
- [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
95
- [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
96
- [/(pe)(?:rson|ople)$/i, "$1ople"],
97
- [/(child)(?:ren)?$/i, "$1ren"],
98
- [/eaux$/i, "$0"],
99
- [/m[ae]n$/i, "men"],
100
- ["thou", "you"],
101
- ];
102
-
103
- const SINGULARIZATION_RULES: Array<[RegExp, string]> = [
104
- [/s$/i, ""],
105
- [/(ss)$/i, "$1"],
106
- [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
107
- [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
108
- [/ies$/i, "y"],
109
- [
110
- /\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,
111
- "$1ie",
112
- ],
113
- [/\b(mon|smil)ies$/i, "$1ey"],
114
- [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
115
- [/(seraph|cherub)im$/i, "$1"],
116
- [
117
- /(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|ris)(?:es)?$/i,
118
- "$1",
119
- ],
120
- [
121
- /(analy|ba|diagno|parenthe|progno|synop|the|empha|cri)(?:sis|ses)$/i,
122
- "$1sis",
123
- ],
124
- [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
125
- [/(test)(?:is|es)$/i, "$1is"],
126
- [
127
- /(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,
128
- "$1us",
129
- ],
130
- [
131
- /(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,
132
- "$1um",
133
- ],
134
- [
135
- /(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,
136
- "$1on",
137
- ],
138
- [/(alumn|alg|vertebr)ae$/i, "$1a"],
139
- [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
140
- [/(matr|append)ices$/i, "$1ix"],
141
- [/(pe)(rson|ople)$/i, "$1rson"],
142
- [/(child)ren$/i, "$1"],
143
- [/(eau)x?$/i, "$1"],
144
- [/men$/i, "man"],
145
- ];
146
-
147
- const UNCOUNTABLE_RULES = [
148
- // Singular words with no plurals.
149
- "adulthood",
150
- "advice",
151
- "agenda",
152
- "aid",
153
- "alcohol",
154
- "ammo",
155
- "anime",
156
- "athletics",
157
- "audio",
158
- "bison",
159
- "blood",
160
- "bream",
161
- "buffalo",
162
- "butter",
163
- "carp",
164
- "cash",
165
- "chassis",
166
- "chess",
167
- "clothing",
168
- "cod",
169
- "commerce",
170
- "cooperation",
171
- "corps",
172
- "debris",
173
- "diabetes",
174
- "digestion",
175
- "elk",
176
- "energy",
177
- "equipment",
178
- "excretion",
179
- "expertise",
180
- "flounder",
181
- "fun",
182
- "gallows",
183
- "garbage",
184
- "graffiti",
185
- "headquarters",
186
- "health",
187
- "herpes",
188
- "highjinks",
189
- "homework",
190
- "housework",
191
- "information",
192
- "jeans",
193
- "justice",
194
- "kudos",
195
- "labour",
196
- "literature",
197
- "machinery",
198
- "mackerel",
199
- "mail",
200
- "media",
201
- "mews",
202
- "moose",
203
- "music",
204
- "mud",
205
- "manga",
206
- "news",
207
- "pike",
208
- "plankton",
209
- "pliers",
210
- "police",
211
- "pollution",
212
- "premises",
213
- "rain",
214
- "research",
215
- "rice",
216
- "salmon",
217
- "scissors",
218
- "series",
219
- "sewage",
220
- "shambles",
221
- "shrimp",
222
- "species",
223
- "staff",
224
- "swine",
225
- "tennis",
226
- "traffic",
227
- "transportation",
228
- "trout",
229
- "tuna",
230
- "wealth",
231
- "welfare",
232
- "whiting",
233
- "wildebeest",
234
- "wildlife",
235
- "you",
236
-
237
- // RegExes.
238
-
239
- // "chinese", "japanese"
240
- /[^aeiou]ese$/i,
241
-
242
- // "deer", "reindeer"
243
- /deer$/i,
244
-
245
- // "fish", "blowfish", "angelfish"
246
- /fish$/i,
247
- /measles$/i,
248
-
249
- // "carnivorous"
250
- /o[iu]s$/i,
251
-
252
- // "chickpox", "smallpox"
253
- /pox$/i,
254
- /sheep$/i,
255
- ];
256
-
257
- /*
258
- * Rule storage - pluralize and singularize need to be run sequentially,
259
- * while other rules can be optimized using an object for instant lookups.
260
- */
261
- const pluralRules: Array<[RegExp, string]> = [];
262
- const singularRules: Array<[RegExp, string]> = [];
263
- const uncountables: Record<string, boolean> = {};
264
- const irregularPlurals: Record<string, string> = {};
265
- const irregularSingles: Record<string, string> = {};
266
-
267
- /**
268
- * Sanitize a pluralization rule to a usable regular expression.
269
- *
270
- * @private
271
- * @param rule
272
- */
273
- const sanitizeRule = (rule: RegExp | string): RegExp => (isString(rule) ? new RegExp(`^${ rule }$`, "i") : rule);
274
-
275
- /**
276
- * Pass in a word token to produce a function that can replicate the case on
277
- * another word.
278
- *
279
- * @private
280
- * @param word
281
- * @param token
282
- */
283
- const restoreCase = (word: string, token: string): string => {
284
- // Tokens are an exact match.
285
- if (word === token) return token;
286
-
287
- // Upper cased words. E.g. "HELLO".
288
- if (word === word.toUpperCase()) return token.toUpperCase();
289
-
290
- // Title cased words. E.g. "Title".
291
- if (word.startsWith(word[0].toUpperCase())) return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
292
-
293
-
294
- // Lower cased words. E.g. "test".
295
- return token.toLowerCase();
296
- };
297
-
298
- /**
299
- * Replace a word with the updated word.
300
- *
301
- * @private
302
- * @param replaceMap
303
- * @param keepMap
304
- * @param rules
305
- */
306
- const replaceWord = (
307
- replaceMap: Record<string, string>,
308
- keepMap: Record<string, string>,
309
- rules: Array<[RegExp, string]>,
310
- ) => (word: string): string => {
311
- // Get the correct token and case restoration functions.
312
- const token = word.toLowerCase();
313
-
314
- // Check against the keep object map.
315
- if (hasOwnProperty.call(keepMap, token)) return restoreCase(word, token);
316
-
317
- // Check against the replacement map for a direct word replacement.
318
- if (hasOwnProperty.call(replaceMap, token)) return restoreCase(word, replaceMap[token]);
319
-
320
-
321
- // Run all the rules against the word.
322
-
323
- if (!token.length || hasOwnProperty.call(uncountables, token)) return word;
324
-
325
- let len = rules.length;
326
-
327
- // Iterate over the sanitization rules and use the first one to match.
328
- while (len--) {
329
- const rule = rules[len];
330
-
331
- if (rule[0].test(word)) {
332
- return word.replace(rule[0], (match, index, ...rest) => {
333
- const args = [match, index].concat(rest);
334
- const result = rule[1].replace(/\$(?<digits>\d{1,2})/g, (_, i) => args[i] || "");
335
-
336
- if (match === "") return restoreCase(word[index - 1], result);
337
-
338
- return restoreCase(match, result);
339
- });
340
- }
341
- }
342
-
343
- return word;
344
- };
345
-
346
- /**
347
- * Add a pluralization rule to the collection.
348
- *
349
- * @private
350
- * @param rule
351
- * @param replacement
352
- */
353
- const addPluralRule = (rule: RegExp | string, replacement: string): void => void pluralRules
354
- .push([sanitizeRule(rule) as any, replacement]);
355
-
356
- /**
357
- * Add a singularization rule to the collection.
358
- *
359
- * @private
360
- * @param {String|RegExp} rule
361
- * @param {String} replacement
362
- */
363
- const addSingularRule = (rule: RegExp | string, replacement: string): void => void singularRules
364
- .push([sanitizeRule(rule) as any, replacement]);
365
-
366
- IRREGULAR_RULES.forEach((rule) => {
367
- const pl = rule[1].toLowerCase();
368
- const single = rule[0].toLowerCase();
369
-
370
- irregularSingles[single] = pl;
371
- irregularPlurals[pl] = single;
372
- });
373
-
374
- PLURALIZATION_RUES.forEach(rule => addPluralRule(rule[0], rule[1]));
375
-
376
- SINGULARIZATION_RULES.forEach(rule => addSingularRule(rule[0], rule[1]));
377
-
378
- UNCOUNTABLE_RULES.forEach((word) => {
379
- if (isString(word)) {
380
- uncountables[word.toLowerCase()] = true;
381
-
382
- return;
383
- }
384
-
385
- // Set singular and plural references for the word.
386
- addPluralRule(word, "$0");
387
- addSingularRule(word, "$0");
388
- });
389
-
390
- /**
391
- * Pluralize a word.
392
- *
393
- * @private
394
- * @type {Function}
395
- */
396
- const plural = replaceWord(irregularSingles, irregularPlurals, pluralRules);
397
-
398
- /**
399
- * Singularize a word.
400
- *
401
- * @private
402
- * @type {Function}
403
- */
404
- const singular = replaceWord(irregularPlurals, irregularSingles, singularRules);
405
-
406
- /**
407
- * Returns the singular or plural form of the word based on the input number
408
- * @param str
409
- * @param [count]
410
- * @example
411
- * pluralize('apple'); // 'apples'
412
- * @example
413
- * pluralize('apple', 0); // 'apples'
414
- * @example
415
- * pluralize('apple', 1); // 'apple'
416
- * @example
417
- * pluralize('apple', 2); // 'apples'
418
- * @example
419
- * pluralize('person', 2); // 'people'
420
- * @example
421
- * pluralize('people', 1); // 'person'
422
- */
423
- export default function pluralize(str: string, count?: number): string {
424
- if (count === 1) return singular(str);
425
-
426
- return plural(str);
427
- }
@@ -1,27 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import pluralize from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Returns the singular or plural form of the word based on the input number
9
- * @param [count]
10
- * @example
11
- * 'apple'.pluralize(); // 'apples'
12
- * @example
13
- * 'apple'.pluralize(0); // 'apples'
14
- * @example
15
- * 'apple'.pluralize(1); // 'apple'
16
- * @example
17
- * 'apple'.pluralize(2); // 'apples'
18
- * @example
19
- * 'person'.pluralize(2); // 'people'
20
- * @example
21
- * 'people'.pluralize(1); // 'person'
22
- */
23
- pluralize(count?: number): string;
24
- }
25
- }
26
-
27
- addPrototype(String, "pluralize", pluralize);
@@ -1,16 +0,0 @@
1
- /**
2
- * Just like array.reduce
3
- * @param str
4
- * @param fn
5
- * @param initialValue
6
- * @example
7
- * reduce('123', (prev, char) => prev + (+char), 0); // 6
8
- */
9
- export default function reduce<T = any>(
10
- str: string,
11
- fn: (prev: T, char: string, index: number, chars: string[]) => T,
12
- // eslint-disable-next-line no-undefined
13
- initialValue: T = undefined as never,
14
- ): T {
15
- return str.split("").reduce(fn, initialValue);
16
- }
@@ -1,21 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import reduce from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Just like array.reduce
9
- * @param fn
10
- * @param initialValue
11
- * @example
12
- * '123'.reduce((prev, char) => prev + (+char), 0); // 6
13
- */
14
- reduce<T = any>(
15
- fn: (prev: T, char: string, index: number, chars: string[]) => T,
16
- initialValue?: T,
17
- ): T;
18
- }
19
- }
20
-
21
- addPrototype(String, "reduce", reduce);
@@ -1,12 +0,0 @@
1
- import arrayRepeat from "../../array/repeat/index.js";
2
-
3
- /**
4
- * Initializes and fills an string with the specified value
5
- * @param n
6
- * @param [value=" "]
7
- * @example
8
- * repeat(5, "2"); // "22222"
9
- */
10
- export default function repeat(n: number, value = " "): string {
11
- return arrayRepeat(n, value).join("");
12
- }
@@ -1,17 +0,0 @@
1
- import repeat from "./index.js";
2
-
3
- declare global {
4
- interface StringConstructor {
5
-
6
- /**
7
- * Initializes and fills an string with the specified value
8
- * @param n
9
- * @param [value=" "]
10
- * @example
11
- * String.repeat(5, "2"); // "22222"
12
- */
13
- repeat(n: number, value?: string): string;
14
- }
15
- }
16
-
17
- String.repeat = repeat;
@@ -1,9 +0,0 @@
1
- /**
2
- * Reverses the string
3
- * @param str
4
- * @example
5
- * reverse("foobar"); // "raboof"
6
- */
7
- export default function reverse(str: string): string {
8
- return [...str].reverse().join("");
9
- }
@@ -1,16 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import reverse from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Reverses the string
9
- * @example
10
- * "foobar".reverse(); // "raboof"
11
- */
12
- reverse(): string;
13
- }
14
- }
15
-
16
- addPrototype(String, "reverse", reverse);
@@ -1,23 +0,0 @@
1
- /**
2
- * Converts a string to snake case
3
- * @param str
4
- * @example
5
- * snakeCase('camelCase'); // 'camel_case'
6
- * @example
7
- * snakeCase('some text'); // 'some_text'
8
- * @example
9
- * snakeCase('some-mixed_string With spaces_underscores-and-hyphens');
10
- * // 'some_mixed_string_with_spaces_underscores_and_hyphens'
11
- * @example
12
- * snakeCase('AllThe-small Things'); // "all_the_small_things"
13
- * @example
14
- * snakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML');
15
- * // 'i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html'
16
- */
17
- export default function snakeCase(str: string): string {
18
- return (
19
- str.match(/[A-Z]{2,}(?=[A-Z][a-z]+\d*|\b)|[A-Z]?[a-z]+|[A-Z]|\d+/g) ?? [""]
20
- )
21
- .map(x => x.toLowerCase())
22
- .join("_");
23
- }
@@ -1,26 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import snakeCase from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Converts a string to snake case
9
- * @example
10
- * 'camelCase'.snakeCase(); // 'camel_case'
11
- * @example
12
- * 'some text'.snakeCase(); // 'some_text'
13
- * @example
14
- * 'some-mixed_string With spaces_underscores-and-hyphens'.snakeCase();
15
- * // 'some_mixed_string_with_spaces_underscores_and_hyphens'
16
- * @example
17
- * 'AllThe-small Things'.snakeCase(); // "all_the_small_things"
18
- * @example
19
- * 'IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'.snakeCase();
20
- * // 'i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html'
21
- */
22
- snakeCase(): string;
23
- }
24
- }
25
-
26
- addPrototype(String, "snakeCase", snakeCase);
@@ -1,9 +0,0 @@
1
- /**
2
- * Returns a copy of the string in which all the case-based characters have had their case swapped
3
- * @param str
4
- * @example
5
- * swapCase('Hello'); // 'hELLO'
6
- */
7
- export default function swapCase(str: string): string {
8
- return str.replace(/\S/g, c => (c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase()));
9
- }
@@ -1,16 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import swapCase from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Returns a copy of the string in which all the case-based characters have had their case swapped
9
- * @example
10
- * 'Hello'.swapCase(); // 'hELLO'
11
- */
12
- swapCase(): string;
13
- }
14
- }
15
-
16
- addPrototype(String, "swapCase", swapCase);
@@ -1,21 +0,0 @@
1
- /**
2
- * Truncates a string up to a specified length
3
- * @param str
4
- * @param num
5
- * @param [truncateString="..."]
6
- * @example
7
- * truncate('boomerang', 7); // 'boom...'
8
- * @example
9
- * truncate('boomerang', 7, '....'); // 'boo....'
10
- */
11
- export default function truncate(
12
- str: string,
13
- num: number,
14
- truncateString = "...",
15
- ): string {
16
- const length = truncateString.length;
17
-
18
- return str.length > num
19
- ? str.slice(0, num > length ? num - length : num) + truncateString
20
- : str;
21
- }
@@ -1,20 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import truncate from "./index.js";
3
-
4
- declare global {
5
- interface String {
6
-
7
- /**
8
- * Truncates a string up to a specified length
9
- * @param num
10
- * @param [truncateString="..."]
11
- * @example
12
- * 'boomerang'.truncate(7); // 'boom...'
13
- * @example
14
- * 'boomerang'.truncate(7, '....'); // 'boo....'
15
- */
16
- truncate(num: number, truncateString?: string): string;
17
- }
18
- }
19
-
20
- addPrototype(String, "truncate", truncate);
@@ -1,12 +0,0 @@
1
- /**
2
- * Converts a given string into an array of words
3
- * @param str
4
- * @param [pattern=/[^a-zA-Z-]+/]
5
- * @example
6
- * words('I love javaScript!!'); // ["I", "love", "javaScript"]
7
- * @example
8
- * words('python, javaScript & coffee'); // ["python", "javaScript", "coffee"]
9
- */
10
- export default function words(str: string, pattern = /[^a-zA-Z-]+/): string[] {
11
- return str.split(pattern).filter(Boolean);
12
- }