prototyped.js 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1226) hide show
  1. package/build/{types → cjs}/array/all/index.d.ts +0 -0
  2. package/build/{types → cjs}/array/all/shim.d.ts +0 -0
  3. package/build/{types → cjs}/array/any/index.d.ts +0 -0
  4. package/build/{types → cjs}/array/any/shim.d.ts +0 -0
  5. package/build/{types → cjs}/array/append/index.d.ts +0 -0
  6. package/build/{types → cjs}/array/append/shim.d.ts +0 -0
  7. package/build/{types → cjs}/array/average/index.d.ts +0 -0
  8. package/build/{types → cjs}/array/average/shim.d.ts +0 -0
  9. package/build/{types → cjs}/array/chunk/index.d.ts +0 -0
  10. package/build/{types → cjs}/array/chunk/shim.d.ts +0 -0
  11. package/build/{types → cjs}/array/clone/index.d.ts +0 -0
  12. package/build/{types → cjs}/array/clone/shim.d.ts +0 -0
  13. package/build/{types → cjs}/array/compact/index.d.ts +0 -0
  14. package/build/{types → cjs}/array/compact/shim.d.ts +0 -0
  15. package/build/{types → cjs}/array/contains/index.d.ts +0 -0
  16. package/build/{types → cjs}/array/contains/shim.d.ts +0 -0
  17. package/build/{types → cjs}/array/count/index.d.ts +0 -0
  18. package/build/{types → cjs}/array/count/shim.d.ts +0 -0
  19. package/build/{types → cjs}/array/countBy/index.d.ts +0 -0
  20. package/build/{types → cjs}/array/countBy/shim.d.ts +0 -0
  21. package/build/{types → cjs}/array/crossJoin/index.d.ts +0 -0
  22. package/build/{types → cjs}/array/crossJoin/shim.d.ts +0 -0
  23. package/build/{types → cjs}/array/deepFlatten/index.d.ts +0 -0
  24. package/build/{types → cjs}/array/deepFlatten/shim.d.ts +0 -0
  25. package/build/{types → cjs}/array/diff/index.d.ts +0 -0
  26. package/build/{types → cjs}/array/diff/shim.d.ts +0 -0
  27. package/build/{types → cjs}/array/distinct/index.d.ts +0 -0
  28. package/build/{types → cjs}/array/distinct/shim.d.ts +0 -0
  29. package/build/{types → cjs}/array/distinctBy/index.d.ts +0 -0
  30. package/build/{types → cjs}/array/distinctBy/shim.d.ts +0 -0
  31. package/build/{types → cjs}/array/empty/index.d.ts +0 -0
  32. package/build/{types → cjs}/array/empty/shim.d.ts +0 -0
  33. package/build/{types → cjs}/array/equals/index.d.ts +0 -0
  34. package/build/{types → cjs}/array/equals/shim.d.ts +0 -0
  35. package/build/{types → cjs}/array/everyNth/index.d.ts +0 -0
  36. package/build/{types → cjs}/array/everyNth/shim.d.ts +0 -0
  37. package/build/{types → cjs}/array/first/index.d.ts +0 -0
  38. package/build/{types → cjs}/array/first/shim.d.ts +0 -0
  39. package/build/{types → cjs}/array/flatten/index.d.ts +0 -0
  40. package/build/{types → cjs}/array/flatten/shim.d.ts +0 -0
  41. package/build/{types → cjs}/array/get/index.d.ts +0 -0
  42. package/build/{types → cjs}/array/get/shim.d.ts +0 -0
  43. package/build/{types → cjs}/array/groupBy/index.d.ts +0 -0
  44. package/build/{types → cjs}/array/groupBy/shim.d.ts +0 -0
  45. package/build/{types → cjs}/array/implode/index.d.ts +0 -0
  46. package/build/{types → cjs}/array/implode/shim.d.ts +0 -0
  47. package/build/{types → cjs}/array/index.d.ts +0 -0
  48. package/build/{types → cjs}/array/indexOfAll/index.d.ts +0 -0
  49. package/build/{types → cjs}/array/indexOfAll/shim.d.ts +0 -0
  50. package/build/{types → cjs}/array/initial/index.d.ts +0 -0
  51. package/build/{types → cjs}/array/initial/shim.d.ts +0 -0
  52. package/build/{types → cjs}/array/intersect/index.d.ts +0 -0
  53. package/build/{types → cjs}/array/intersect/shim.d.ts +0 -0
  54. package/build/{types → cjs}/array/isEmpty/index.d.ts +0 -0
  55. package/build/{types → cjs}/array/isEmpty/shim.d.ts +0 -0
  56. package/build/{types → cjs}/array/last/index.d.ts +0 -0
  57. package/build/{types → cjs}/array/last/shim.d.ts +0 -0
  58. package/build/{types → cjs}/array/limit/index.d.ts +0 -0
  59. package/build/{types → cjs}/array/limit/shim.d.ts +0 -0
  60. package/build/{types → cjs}/array/max/index.d.ts +0 -0
  61. package/build/{types → cjs}/array/max/shim.d.ts +0 -0
  62. package/build/{types → cjs}/array/median/index.d.ts +0 -0
  63. package/build/{types → cjs}/array/median/shim.d.ts +0 -0
  64. package/build/{types → cjs}/array/merge/index.d.ts +0 -0
  65. package/build/{types → cjs}/array/merge/shim.d.ts +0 -0
  66. package/build/{types → cjs}/array/min/index.d.ts +0 -0
  67. package/build/{types → cjs}/array/min/shim.d.ts +0 -0
  68. package/build/{types → cjs}/array/nest/index.d.ts +0 -0
  69. package/build/{types → cjs}/array/nest/shim.d.ts +0 -0
  70. package/build/{types → cjs}/array/orderBy/index.d.ts +0 -0
  71. package/build/{types → cjs}/array/orderBy/shim.d.ts +0 -0
  72. package/build/{types → cjs}/array/pad/index.d.ts +0 -0
  73. package/build/{types → cjs}/array/pad/shim.d.ts +0 -0
  74. package/build/{types → cjs}/array/partition/index.d.ts +0 -0
  75. package/build/{types → cjs}/array/partition/shim.d.ts +0 -0
  76. package/build/{types → cjs}/array/pluck/index.d.ts +0 -0
  77. package/build/{types → cjs}/array/pluck/shim.d.ts +0 -0
  78. package/build/{types → cjs}/array/prepend/index.d.ts +0 -0
  79. package/build/{types → cjs}/array/prepend/shim.d.ts +0 -0
  80. package/build/{types → cjs}/array/pull/index.d.ts +0 -0
  81. package/build/{types → cjs}/array/pull/shim.d.ts +0 -0
  82. package/build/{types → cjs}/array/range/index.d.ts +0 -0
  83. package/build/{types → cjs}/array/range/shim.d.ts +0 -0
  84. package/build/{types → cjs}/array/repeat/index.d.ts +0 -0
  85. package/build/{types → cjs}/array/repeat/shim.d.ts +0 -0
  86. package/build/{types → cjs}/array/sample/index.d.ts +0 -0
  87. package/build/{types → cjs}/array/sample/shim.d.ts +0 -0
  88. package/build/{types → cjs}/array/shim.d.ts +0 -0
  89. package/build/{types → cjs}/array/shuffle/index.d.ts +0 -0
  90. package/build/{types → cjs}/array/shuffle/shim.d.ts +0 -0
  91. package/build/{types → cjs}/array/skip/index.d.ts +0 -0
  92. package/build/{types → cjs}/array/skip/shim.d.ts +0 -0
  93. package/build/{types → cjs}/array/sortBy/index.d.ts +0 -0
  94. package/build/{types → cjs}/array/sortBy/shim.d.ts +0 -0
  95. package/build/{types → cjs}/array/sum/index.d.ts +0 -0
  96. package/build/{types → cjs}/array/sum/shim.d.ts +0 -0
  97. package/build/{types → cjs}/array/tail/index.d.ts +0 -0
  98. package/build/{types → cjs}/array/tail/shim.d.ts +0 -0
  99. package/build/{types → cjs}/array/toCSV/index.d.ts +0 -0
  100. package/build/{types → cjs}/array/toCSV/shim.d.ts +0 -0
  101. package/build/{types → cjs}/array/union/index.d.ts +0 -0
  102. package/build/{types → cjs}/array/union/shim.d.ts +0 -0
  103. package/build/{types → cjs}/array/unwind/index.d.ts +0 -0
  104. package/build/{types → cjs}/array/unwind/shim.d.ts +0 -0
  105. package/build/{types → cjs}/array/where/index.d.ts +0 -0
  106. package/build/{types → cjs}/array/where/shim.d.ts +0 -0
  107. package/build/{types → cjs}/array/whereBetween/index.d.ts +0 -0
  108. package/build/{types → cjs}/array/whereBetween/shim.d.ts +0 -0
  109. package/build/{types → cjs}/array/whereIn/index.d.ts +0 -0
  110. package/build/{types → cjs}/array/whereIn/shim.d.ts +0 -0
  111. package/build/{types → cjs}/array/whereLike/index.d.ts +0 -0
  112. package/build/{types → cjs}/array/whereLike/shim.d.ts +0 -0
  113. package/build/{types → cjs}/array/whereNotBetween/index.d.ts +0 -0
  114. package/build/{types → cjs}/array/whereNotBetween/shim.d.ts +0 -0
  115. package/build/{types → cjs}/array/whereNotIn/index.d.ts +0 -0
  116. package/build/{types → cjs}/array/whereNotIn/shim.d.ts +0 -0
  117. package/build/{types → cjs}/array/whereNotLike/index.d.ts +0 -0
  118. package/build/{types → cjs}/array/whereNotLike/shim.d.ts +0 -0
  119. package/build/{types → cjs}/array/whereNotNull/index.d.ts +0 -0
  120. package/build/{types → cjs}/array/whereNotNull/shim.d.ts +0 -0
  121. package/build/{types → cjs}/array/whereNull/index.d.ts +0 -0
  122. package/build/{types → cjs}/array/whereNull/shim.d.ts +0 -0
  123. package/build/{types → cjs}/array/zip/index.d.ts +0 -0
  124. package/build/{types → cjs}/array/zip/shim.d.ts +0 -0
  125. package/build/{types → cjs}/array/zipObject/index.d.ts +0 -0
  126. package/build/{types → cjs}/array/zipObject/shim.d.ts +0 -0
  127. package/build/{types → cjs}/boolean/index.d.ts +0 -0
  128. package/build/{types → cjs}/boolean/isBoolean/index.d.ts +0 -0
  129. package/build/{types → cjs}/boolean/isBoolean/shim.d.ts +0 -0
  130. package/build/{types → cjs}/boolean/shim.d.ts +0 -0
  131. package/build/{types → cjs}/date/equals/index.d.ts +0 -0
  132. package/build/{types → cjs}/date/equals/shim.d.ts +0 -0
  133. package/build/{types → cjs}/date/index.d.ts +0 -0
  134. package/build/{types → cjs}/date/isDate/index.d.ts +0 -0
  135. package/build/{types → cjs}/date/isDate/shim.d.ts +0 -0
  136. package/build/{types → cjs}/date/shim.d.ts +0 -0
  137. package/build/{types → cjs}/date/today/index.d.ts +0 -0
  138. package/build/{types → cjs}/date/today/shim.d.ts +0 -0
  139. package/build/{types → cjs}/date/tomorrow/index.d.ts +0 -0
  140. package/build/{types → cjs}/date/tomorrow/shim.d.ts +0 -0
  141. package/build/{types → cjs}/date/yesterday/index.d.ts +0 -0
  142. package/build/{types → cjs}/date/yesterday/shim.d.ts +0 -0
  143. package/build/{types → cjs}/function/cache/index.d.ts +0 -0
  144. package/build/{types → cjs}/function/cache/shim.d.ts +0 -0
  145. package/build/{types → cjs}/function/defer/index.d.ts +0 -0
  146. package/build/{types → cjs}/function/defer/shim.d.ts +0 -0
  147. package/build/{types → cjs}/function/index.d.ts +0 -0
  148. package/build/{types → cjs}/function/isFunction/index.d.ts +0 -0
  149. package/build/{types → cjs}/function/isFunction/shim.d.ts +0 -0
  150. package/build/{types → cjs}/function/once/index.d.ts +0 -0
  151. package/build/{types → cjs}/function/once/shim.d.ts +0 -0
  152. package/build/{types → cjs}/function/shim.d.ts +0 -0
  153. package/build/{types → cjs}/globals/index.d.ts +0 -0
  154. package/build/{types → cjs}/globals/isBrowser/index.d.ts +0 -0
  155. package/build/{types → cjs}/globals/isBrowser/shim.d.ts +0 -0
  156. package/build/{types → cjs}/globals/shim.d.ts +0 -0
  157. package/build/{types → cjs}/index.d.ts +0 -0
  158. package/build/{types → cjs}/math/average/index.d.ts +0 -0
  159. package/build/{types → cjs}/math/average/shim.d.ts +0 -0
  160. package/build/{types → cjs}/math/degreesToRads/index.d.ts +0 -0
  161. package/build/{types → cjs}/math/degreesToRads/shim.d.ts +0 -0
  162. package/build/{types → cjs}/math/factorial/index.d.ts +0 -0
  163. package/build/{types → cjs}/math/factorial/shim.d.ts +0 -0
  164. package/build/{types → cjs}/math/fibonacci/index.d.ts +0 -0
  165. package/build/{types → cjs}/math/fibonacci/shim.d.ts +0 -0
  166. package/build/{types → cjs}/math/gcd/index.d.ts +0 -0
  167. package/build/{types → cjs}/math/gcd/shim.d.ts +0 -0
  168. package/build/{types → cjs}/math/index.d.ts +0 -0
  169. package/build/{types → cjs}/math/isDivisible/index.d.ts +0 -0
  170. package/build/{types → cjs}/math/isDivisible/shim.d.ts +0 -0
  171. package/build/{types → cjs}/math/isEven/index.d.ts +0 -0
  172. package/build/{types → cjs}/math/isEven/shim.d.ts +0 -0
  173. package/build/{types → cjs}/math/isPrime/index.d.ts +0 -0
  174. package/build/{types → cjs}/math/isPrime/shim.d.ts +0 -0
  175. package/build/{types → cjs}/math/lcm/index.d.ts +0 -0
  176. package/build/{types → cjs}/math/lcm/shim.d.ts +0 -0
  177. package/build/{types → cjs}/math/primes/index.d.ts +0 -0
  178. package/build/{types → cjs}/math/primes/shim.d.ts +0 -0
  179. package/build/{types → cjs}/math/radsToDegrees/index.d.ts +0 -0
  180. package/build/{types → cjs}/math/radsToDegrees/shim.d.ts +0 -0
  181. package/build/{types → cjs}/math/shim.d.ts +0 -0
  182. package/build/{types → cjs}/number/digitize/index.d.ts +0 -0
  183. package/build/{types → cjs}/number/digitize/shim.d.ts +0 -0
  184. package/build/{types → cjs}/number/equals/index.d.ts +0 -0
  185. package/build/{types → cjs}/number/equals/shim.d.ts +0 -0
  186. package/build/{types → cjs}/number/inRange/index.d.ts +0 -0
  187. package/build/{types → cjs}/number/inRange/shim.d.ts +0 -0
  188. package/build/{types → cjs}/number/index.d.ts +0 -0
  189. package/build/{types → cjs}/number/isNumber/index.d.ts +0 -0
  190. package/build/{types → cjs}/number/isNumber/shim.d.ts +0 -0
  191. package/build/{types → cjs}/number/shim.d.ts +0 -0
  192. package/build/{types → cjs}/object/assign/index.d.ts +0 -0
  193. package/build/{types → cjs}/object/assign/shim.d.ts +0 -0
  194. package/build/{types → cjs}/object/camelCaseKeys/index.d.ts +0 -0
  195. package/build/{types → cjs}/object/camelCaseKeys/shim.d.ts +0 -0
  196. package/build/{types → cjs}/object/clone/index.d.ts +0 -0
  197. package/build/{types → cjs}/object/clone/shim.d.ts +0 -0
  198. package/build/{types → cjs}/object/defaults/index.d.ts +0 -0
  199. package/build/{types → cjs}/object/defaults/shim.d.ts +0 -0
  200. package/build/{types → cjs}/object/dig/index.d.ts +0 -0
  201. package/build/{types → cjs}/object/dig/shim.d.ts +0 -0
  202. package/build/{types → cjs}/object/empty/index.d.ts +0 -0
  203. package/build/{types → cjs}/object/empty/shim.d.ts +0 -0
  204. package/build/{types → cjs}/object/equals/index.d.ts +0 -0
  205. package/build/{types → cjs}/object/equals/shim.d.ts +0 -0
  206. package/build/{types → cjs}/object/flatten/index.d.ts +0 -0
  207. package/build/{types → cjs}/object/flatten/shim.d.ts +0 -0
  208. package/build/{types → cjs}/object/forEach/index.d.ts +0 -0
  209. package/build/{types → cjs}/object/forEach/shim.d.ts +0 -0
  210. package/build/{types → cjs}/object/get/index.d.ts +0 -0
  211. package/build/{types → cjs}/object/get/shim.d.ts +0 -0
  212. package/build/{types → cjs}/object/index.d.ts +0 -0
  213. package/build/{types → cjs}/object/invert/index.d.ts +0 -0
  214. package/build/{types → cjs}/object/invert/shim.d.ts +0 -0
  215. package/build/{types → cjs}/object/isEmpty/index.d.ts +0 -0
  216. package/build/{types → cjs}/object/isEmpty/shim.d.ts +0 -0
  217. package/build/{types → cjs}/object/isObject/index.d.ts +0 -0
  218. package/build/{types → cjs}/object/isObject/shim.d.ts +0 -0
  219. package/build/{types → cjs}/object/isObjectLike/index.d.ts +0 -0
  220. package/build/{types → cjs}/object/isObjectLike/shim.d.ts +0 -0
  221. package/build/{types → cjs}/object/isPlainObject/index.d.ts +0 -0
  222. package/build/{types → cjs}/object/isPlainObject/shim.d.ts +0 -0
  223. package/build/{types → cjs}/object/kebabCaseKeys/index.d.ts +0 -0
  224. package/build/{types → cjs}/object/kebabCaseKeys/shim.d.ts +0 -0
  225. package/build/{types → cjs}/object/keys/index.d.ts +0 -0
  226. package/build/{types → cjs}/object/keys/shim.d.ts +0 -0
  227. package/build/{types → cjs}/object/lowerCaseKeys/index.d.ts +0 -0
  228. package/build/{types → cjs}/object/lowerCaseKeys/shim.d.ts +0 -0
  229. package/build/{types → cjs}/object/map/index.d.ts +0 -0
  230. package/build/{types → cjs}/object/map/shim.d.ts +0 -0
  231. package/build/{types → cjs}/object/mapKeys/index.d.ts +0 -0
  232. package/build/{types → cjs}/object/mapKeys/shim.d.ts +0 -0
  233. package/build/{types → cjs}/object/mapValues/index.d.ts +0 -0
  234. package/build/{types → cjs}/object/mapValues/shim.d.ts +0 -0
  235. package/build/{types → cjs}/object/merge/index.d.ts +0 -0
  236. package/build/{types → cjs}/object/merge/shim.d.ts +0 -0
  237. package/build/{types → cjs}/object/omit/index.d.ts +0 -0
  238. package/build/{types → cjs}/object/omit/shim.d.ts +0 -0
  239. package/build/{types → cjs}/object/reduce/index.d.ts +0 -0
  240. package/build/{types → cjs}/object/reduce/shim.d.ts +0 -0
  241. package/build/{types → cjs}/object/set/index.d.ts +0 -0
  242. package/build/{types → cjs}/object/set/shim.d.ts +0 -0
  243. package/build/{types → cjs}/object/shim.d.ts +0 -0
  244. package/build/{types → cjs}/object/size/index.d.ts +0 -0
  245. package/build/{types → cjs}/object/size/shim.d.ts +0 -0
  246. package/build/{types → cjs}/object/snakeCaseKeys/index.d.ts +0 -0
  247. package/build/{types → cjs}/object/snakeCaseKeys/shim.d.ts +0 -0
  248. package/build/{types → cjs}/object/values/index.d.ts +0 -0
  249. package/build/{types → cjs}/object/values/shim.d.ts +0 -0
  250. package/build/{types → cjs}/shim.d.ts +0 -0
  251. package/build/{types → cjs}/string/base64/index.d.ts +0 -0
  252. package/build/{types → cjs}/string/base64/shim.d.ts +0 -0
  253. package/build/{types → cjs}/string/base64Decode/index.d.ts +0 -0
  254. package/build/{types → cjs}/string/base64Decode/shim.d.ts +0 -0
  255. package/build/{types → cjs}/string/camelCase/index.d.ts +0 -0
  256. package/build/{types → cjs}/string/camelCase/shim.d.ts +0 -0
  257. package/build/{types → cjs}/string/capitalize/index.d.ts +0 -0
  258. package/build/{types → cjs}/string/capitalize/shim.d.ts +0 -0
  259. package/build/{types → cjs}/string/chars/index.d.ts +0 -0
  260. package/build/{types → cjs}/string/chars/shim.d.ts +0 -0
  261. package/build/{types → cjs}/string/contains/index.d.ts +0 -0
  262. package/build/{types → cjs}/string/contains/shim.d.ts +0 -0
  263. package/build/{types → cjs}/string/decapitalize/index.d.ts +0 -0
  264. package/build/{types → cjs}/string/decapitalize/shim.d.ts +0 -0
  265. package/build/{types → cjs}/string/equals/index.d.ts +0 -0
  266. package/build/{types → cjs}/string/equals/shim.d.ts +0 -0
  267. package/build/{types → cjs}/string/forEach/index.d.ts +0 -0
  268. package/build/{types → cjs}/string/forEach/shim.d.ts +0 -0
  269. package/build/{types → cjs}/string/humanize/index.d.ts +0 -0
  270. package/build/{types → cjs}/string/humanize/shim.d.ts +0 -0
  271. package/build/{types → cjs}/string/index.d.ts +0 -0
  272. package/build/{types → cjs}/string/isEmpty/index.d.ts +0 -0
  273. package/build/{types → cjs}/string/isEmpty/shim.d.ts +0 -0
  274. package/build/{types → cjs}/string/isString/index.d.ts +0 -0
  275. package/build/{types → cjs}/string/isString/shim.d.ts +0 -0
  276. package/build/{types → cjs}/string/kebabCase/index.d.ts +0 -0
  277. package/build/{types → cjs}/string/kebabCase/shim.d.ts +0 -0
  278. package/build/{types → cjs}/string/lines/index.d.ts +0 -0
  279. package/build/{types → cjs}/string/lines/shim.d.ts +0 -0
  280. package/build/{types → cjs}/string/map/index.d.ts +0 -0
  281. package/build/{types → cjs}/string/map/shim.d.ts +0 -0
  282. package/build/{types → cjs}/string/mask/index.d.ts +0 -0
  283. package/build/{types → cjs}/string/mask/shim.d.ts +0 -0
  284. package/build/{types → cjs}/string/pad/index.d.ts +0 -0
  285. package/build/{types → cjs}/string/pad/shim.d.ts +0 -0
  286. package/build/{types → cjs}/string/parseInt/index.d.ts +0 -0
  287. package/build/{types → cjs}/string/parseInt/shim.d.ts +0 -0
  288. package/build/{types → cjs}/string/pluralize/index.d.ts +0 -0
  289. package/build/{types → cjs}/string/pluralize/shim.d.ts +0 -0
  290. package/build/{types → cjs}/string/reduce/index.d.ts +0 -0
  291. package/build/{types → cjs}/string/reduce/shim.d.ts +0 -0
  292. package/build/{types → cjs}/string/repeat/index.d.ts +0 -0
  293. package/build/{types → cjs}/string/repeat/shim.d.ts +0 -0
  294. package/build/{types → cjs}/string/reverse/index.d.ts +0 -0
  295. package/build/{types → cjs}/string/reverse/shim.d.ts +0 -0
  296. package/build/{types → cjs}/string/shim.d.ts +0 -0
  297. package/build/{types → cjs}/string/snakeCase/index.d.ts +0 -0
  298. package/build/{types → cjs}/string/snakeCase/shim.d.ts +0 -0
  299. package/build/{types → cjs}/string/swapCase/index.d.ts +0 -0
  300. package/build/{types → cjs}/string/swapCase/shim.d.ts +0 -0
  301. package/build/{types → cjs}/string/truncate/index.d.ts +0 -0
  302. package/build/{types → cjs}/string/truncate/shim.d.ts +0 -0
  303. package/build/{types → cjs}/string/words/index.d.ts +0 -0
  304. package/build/{types → cjs}/string/words/shim.d.ts +0 -0
  305. package/build/{types → cjs}/utils.d.ts +0 -0
  306. package/build/esm/array/all/index.d.ts +11 -0
  307. package/build/esm/array/all/shim.d.ts +15 -0
  308. package/build/esm/array/any/index.d.ts +12 -0
  309. package/build/esm/array/any/shim.d.ts +16 -0
  310. package/build/esm/array/append/index.d.ts +9 -0
  311. package/build/esm/array/append/shim.d.ts +13 -0
  312. package/build/esm/array/average/index.d.ts +13 -0
  313. package/build/esm/array/average/shim.d.ts +27 -0
  314. package/build/esm/array/chunk/index.d.ts +8 -0
  315. package/build/esm/array/chunk/shim.d.ts +12 -0
  316. package/build/esm/array/clone/index.d.ts +8 -0
  317. package/build/esm/array/clone/shim.d.ts +12 -0
  318. package/build/esm/array/compact/index.d.ts +8 -0
  319. package/build/esm/array/compact/shim.d.ts +11 -0
  320. package/build/esm/array/contains/index.d.ts +11 -0
  321. package/build/esm/array/contains/shim.d.ts +15 -0
  322. package/build/esm/array/count/index.d.ts +10 -0
  323. package/build/esm/array/count/shim.d.ts +14 -0
  324. package/build/esm/array/countBy/index.d.ts +11 -0
  325. package/build/esm/array/countBy/shim.d.ts +15 -0
  326. package/build/esm/array/crossJoin/index.d.ts +9 -0
  327. package/build/esm/array/crossJoin/shim.d.ts +13 -0
  328. package/build/esm/array/deepFlatten/index.d.ts +8 -0
  329. package/build/esm/array/deepFlatten/shim.d.ts +11 -0
  330. package/build/esm/array/diff/index.d.ts +13 -0
  331. package/build/esm/array/diff/shim.d.ts +17 -0
  332. package/build/esm/array/distinct/index.d.ts +12 -0
  333. package/build/esm/array/distinct/shim.d.ts +16 -0
  334. package/build/esm/array/distinctBy/index.d.ts +8 -0
  335. package/build/esm/array/distinctBy/shim.d.ts +12 -0
  336. package/build/esm/array/empty/index.d.ts +9 -0
  337. package/build/esm/array/empty/shim.d.ts +13 -0
  338. package/build/esm/array/equals/index.d.ts +8 -0
  339. package/build/esm/array/equals/shim.d.ts +12 -0
  340. package/build/esm/array/everyNth/index.d.ts +8 -0
  341. package/build/esm/array/everyNth/shim.d.ts +12 -0
  342. package/build/esm/array/first/index.d.ts +7 -0
  343. package/build/esm/array/first/shim.d.ts +11 -0
  344. package/build/esm/array/flatten/index.d.ts +10 -0
  345. package/build/esm/array/flatten/shim.d.ts +14 -0
  346. package/build/esm/array/get/index.d.ts +11 -0
  347. package/build/esm/array/get/shim.d.ts +15 -0
  348. package/build/esm/array/groupBy/index.d.ts +10 -0
  349. package/build/esm/array/groupBy/shim.d.ts +14 -0
  350. package/build/esm/array/implode/index.d.ts +12 -0
  351. package/build/esm/array/implode/shim.d.ts +14 -0
  352. package/{src/array/index.ts → build/esm/array/index.d.ts} +0 -0
  353. package/build/esm/array/indexOfAll/index.d.ts +10 -0
  354. package/build/esm/array/indexOfAll/shim.d.ts +14 -0
  355. package/build/esm/array/initial/index.d.ts +6 -0
  356. package/build/esm/array/initial/shim.d.ts +11 -0
  357. package/build/esm/array/intersect/index.d.ts +8 -0
  358. package/build/esm/array/intersect/shim.d.ts +12 -0
  359. package/build/esm/array/isEmpty/index.d.ts +8 -0
  360. package/build/esm/array/isEmpty/shim.d.ts +13 -0
  361. package/build/esm/array/last/index.d.ts +6 -0
  362. package/build/esm/array/last/shim.d.ts +11 -0
  363. package/build/esm/array/limit/index.d.ts +8 -0
  364. package/build/esm/array/limit/shim.d.ts +21 -0
  365. package/build/esm/array/max/index.d.ts +19 -0
  366. package/build/esm/array/max/shim.d.ts +16 -0
  367. package/build/esm/array/median/index.d.ts +17 -0
  368. package/build/esm/array/median/shim.d.ts +14 -0
  369. package/build/esm/array/merge/index.d.ts +9 -0
  370. package/build/esm/array/merge/shim.d.ts +13 -0
  371. package/build/esm/array/min/index.d.ts +19 -0
  372. package/build/esm/array/min/shim.d.ts +16 -0
  373. package/build/esm/array/nest/index.d.ts +16 -0
  374. package/build/esm/array/nest/shim.d.ts +20 -0
  375. package/build/esm/array/orderBy/index.d.ts +27 -0
  376. package/build/esm/array/orderBy/shim.d.ts +23 -0
  377. package/build/esm/array/pad/index.d.ts +11 -0
  378. package/build/esm/array/pad/shim.d.ts +15 -0
  379. package/build/esm/array/partition/index.d.ts +15 -0
  380. package/build/esm/array/partition/shim.d.ts +19 -0
  381. package/build/esm/array/pluck/index.d.ts +11 -0
  382. package/build/esm/array/pluck/shim.d.ts +14 -0
  383. package/build/esm/array/prepend/index.d.ts +9 -0
  384. package/build/esm/array/prepend/shim.d.ts +13 -0
  385. package/build/esm/array/pull/index.d.ts +9 -0
  386. package/build/esm/array/pull/shim.d.ts +13 -0
  387. package/build/esm/array/range/index.d.ts +14 -0
  388. package/build/esm/array/range/shim.d.ts +19 -0
  389. package/build/esm/array/repeat/index.d.ts +8 -0
  390. package/build/esm/array/repeat/shim.d.ts +13 -0
  391. package/build/esm/array/sample/index.d.ts +6 -0
  392. package/build/esm/array/sample/shim.d.ts +11 -0
  393. package/{src/array/shim.ts → build/esm/array/shim.d.ts} +0 -0
  394. package/build/esm/array/shuffle/index.d.ts +7 -0
  395. package/build/esm/array/shuffle/shim.d.ts +12 -0
  396. package/build/esm/array/skip/index.d.ts +8 -0
  397. package/build/esm/array/skip/shim.d.ts +21 -0
  398. package/build/esm/array/sortBy/index.d.ts +11 -0
  399. package/build/esm/array/sortBy/shim.d.ts +15 -0
  400. package/build/esm/array/sum/index.d.ts +13 -0
  401. package/build/esm/array/sum/shim.d.ts +16 -0
  402. package/build/esm/array/tail/index.d.ts +6 -0
  403. package/build/esm/array/tail/shim.d.ts +11 -0
  404. package/build/esm/array/toCSV/index.d.ts +10 -0
  405. package/build/esm/array/toCSV/shim.d.ts +14 -0
  406. package/build/esm/array/union/index.d.ts +8 -0
  407. package/build/esm/array/union/shim.d.ts +12 -0
  408. package/build/esm/array/unwind/index.d.ts +9 -0
  409. package/build/esm/array/unwind/shim.d.ts +13 -0
  410. package/build/esm/array/where/index.d.ts +38 -0
  411. package/build/esm/array/where/shim.d.ts +37 -0
  412. package/build/esm/array/whereBetween/index.d.ts +20 -0
  413. package/build/esm/array/whereBetween/shim.d.ts +22 -0
  414. package/build/esm/array/whereIn/index.d.ts +18 -0
  415. package/build/esm/array/whereIn/shim.d.ts +20 -0
  416. package/build/esm/array/whereLike/index.d.ts +18 -0
  417. package/build/esm/array/whereLike/shim.d.ts +20 -0
  418. package/build/esm/array/whereNotBetween/index.d.ts +20 -0
  419. package/build/esm/array/whereNotBetween/shim.d.ts +22 -0
  420. package/build/esm/array/whereNotIn/index.d.ts +18 -0
  421. package/build/esm/array/whereNotIn/shim.d.ts +20 -0
  422. package/build/esm/array/whereNotLike/index.d.ts +18 -0
  423. package/build/esm/array/whereNotLike/shim.d.ts +20 -0
  424. package/build/esm/array/whereNotNull/index.d.ts +10 -0
  425. package/build/esm/array/whereNotNull/shim.d.ts +14 -0
  426. package/build/esm/array/whereNull/index.d.ts +10 -0
  427. package/build/esm/array/whereNull/shim.d.ts +18 -0
  428. package/build/esm/array/zip/index.d.ts +10 -0
  429. package/build/esm/array/zip/shim.d.ts +14 -0
  430. package/build/esm/array/zipObject/index.d.ts +11 -0
  431. package/build/esm/array/zipObject/shim.d.ts +15 -0
  432. package/{src/boolean/index.ts → build/esm/boolean/index.d.ts} +0 -0
  433. package/build/esm/boolean/isBoolean/index.d.ts +9 -0
  434. package/build/esm/boolean/isBoolean/shim.d.ts +14 -0
  435. package/{src/boolean/shim.ts → build/esm/boolean/shim.d.ts} +0 -0
  436. package/build/esm/date/equals/index.d.ts +8 -0
  437. package/build/esm/date/equals/shim.d.ts +12 -0
  438. package/{src/date/index.ts → build/esm/date/index.d.ts} +0 -0
  439. package/build/esm/date/isDate/index.d.ts +9 -0
  440. package/build/esm/date/isDate/shim.d.ts +14 -0
  441. package/{src/date/shim.ts → build/esm/date/shim.d.ts} +0 -0
  442. package/build/esm/date/today/index.d.ts +6 -0
  443. package/build/esm/date/today/shim.d.ts +11 -0
  444. package/build/esm/date/tomorrow/index.d.ts +6 -0
  445. package/build/esm/date/tomorrow/shim.d.ts +11 -0
  446. package/build/esm/date/yesterday/index.d.ts +6 -0
  447. package/build/esm/date/yesterday/shim.d.ts +11 -0
  448. package/build/esm/function/cache/index.d.ts +9 -0
  449. package/build/esm/function/cache/shim.d.ts +15 -0
  450. package/build/esm/function/defer/index.d.ts +10 -0
  451. package/build/esm/function/defer/shim.d.ts +14 -0
  452. package/{src/function/index.ts → build/esm/function/index.d.ts} +0 -0
  453. package/build/esm/function/isFunction/index.d.ts +9 -0
  454. package/build/esm/function/isFunction/shim.d.ts +14 -0
  455. package/build/esm/function/once/index.d.ts +10 -0
  456. package/build/esm/function/once/shim.d.ts +15 -0
  457. package/{src/function/shim.ts → build/esm/function/shim.d.ts} +0 -0
  458. package/{src/globals/index.ts → build/esm/globals/index.d.ts} +0 -0
  459. package/build/esm/globals/isBrowser/index.d.ts +7 -0
  460. package/build/esm/globals/isBrowser/shim.d.ts +12 -0
  461. package/{src/globals/shim.ts → build/esm/globals/shim.d.ts} +0 -0
  462. package/build/esm/index.d.ts +10 -0
  463. package/build/esm/math/average/index.d.ts +9 -0
  464. package/build/esm/math/average/shim.d.ts +25 -0
  465. package/build/esm/math/degreesToRads/index.d.ts +7 -0
  466. package/build/esm/math/degreesToRads/shim.d.ts +12 -0
  467. package/build/esm/math/factorial/index.d.ts +7 -0
  468. package/build/esm/math/factorial/shim.d.ts +12 -0
  469. package/build/esm/math/fibonacci/index.d.ts +7 -0
  470. package/build/esm/math/fibonacci/shim.d.ts +12 -0
  471. package/build/esm/math/gcd/index.d.ts +9 -0
  472. package/build/esm/math/gcd/shim.d.ts +14 -0
  473. package/{src/math/index.ts → build/esm/math/index.d.ts} +0 -0
  474. package/build/esm/math/isDivisible/index.d.ts +8 -0
  475. package/build/esm/math/isDivisible/shim.d.ts +13 -0
  476. package/build/esm/math/isEven/index.d.ts +7 -0
  477. package/build/esm/math/isEven/shim.d.ts +12 -0
  478. package/build/esm/math/isPrime/index.d.ts +7 -0
  479. package/build/esm/math/isPrime/shim.d.ts +12 -0
  480. package/build/esm/math/lcm/index.d.ts +9 -0
  481. package/build/esm/math/lcm/shim.d.ts +14 -0
  482. package/build/esm/math/primes/index.d.ts +7 -0
  483. package/build/esm/math/primes/shim.d.ts +12 -0
  484. package/build/esm/math/radsToDegrees/index.d.ts +7 -0
  485. package/build/esm/math/radsToDegrees/shim.d.ts +12 -0
  486. package/{src/math/shim.ts → build/esm/math/shim.d.ts} +0 -0
  487. package/build/esm/number/digitize/index.d.ts +6 -0
  488. package/build/esm/number/digitize/shim.d.ts +11 -0
  489. package/build/esm/number/equals/index.d.ts +8 -0
  490. package/build/esm/number/equals/shim.d.ts +12 -0
  491. package/build/esm/number/inRange/index.d.ts +9 -0
  492. package/build/esm/number/inRange/shim.d.ts +13 -0
  493. package/{src/number/index.ts → build/esm/number/index.d.ts} +0 -0
  494. package/build/esm/number/isNumber/index.d.ts +9 -0
  495. package/build/esm/number/isNumber/shim.d.ts +14 -0
  496. package/{src/number/shim.ts → build/esm/number/shim.d.ts} +0 -0
  497. package/build/esm/object/assign/index.d.ts +8 -0
  498. package/build/esm/object/assign/shim.d.ts +12 -0
  499. package/build/esm/object/camelCaseKeys/index.d.ts +8 -0
  500. package/build/esm/object/camelCaseKeys/shim.d.ts +12 -0
  501. package/build/esm/object/clone/index.d.ts +9 -0
  502. package/build/esm/object/clone/shim.d.ts +13 -0
  503. package/build/esm/object/defaults/index.d.ts +8 -0
  504. package/build/esm/object/defaults/shim.d.ts +12 -0
  505. package/build/esm/object/dig/index.d.ts +16 -0
  506. package/build/esm/object/dig/shim.d.ts +20 -0
  507. package/build/esm/object/empty/index.d.ts +9 -0
  508. package/build/esm/object/empty/shim.d.ts +13 -0
  509. package/build/esm/object/equals/index.d.ts +8 -0
  510. package/build/esm/object/equals/shim.d.ts +12 -0
  511. package/build/esm/object/flatten/index.d.ts +7 -0
  512. package/build/esm/object/flatten/shim.d.ts +11 -0
  513. package/build/esm/object/forEach/index.d.ts +12 -0
  514. package/build/esm/object/forEach/shim.d.ts +16 -0
  515. package/build/esm/object/get/index.d.ts +9 -0
  516. package/build/esm/object/get/shim.d.ts +12 -0
  517. package/{src/object/index.ts → build/esm/object/index.d.ts} +0 -0
  518. package/build/esm/object/invert/index.d.ts +7 -0
  519. package/build/esm/object/invert/shim.d.ts +11 -0
  520. package/build/esm/object/isEmpty/index.d.ts +9 -0
  521. package/build/esm/object/isEmpty/shim.d.ts +13 -0
  522. package/build/esm/object/isObject/index.d.ts +9 -0
  523. package/build/esm/object/isObject/shim.d.ts +14 -0
  524. package/build/esm/object/isObjectLike/index.d.ts +9 -0
  525. package/build/esm/object/isObjectLike/shim.d.ts +14 -0
  526. package/build/esm/object/isPlainObject/index.d.ts +9 -0
  527. package/build/esm/object/isPlainObject/shim.d.ts +14 -0
  528. package/build/esm/object/kebabCaseKeys/index.d.ts +8 -0
  529. package/build/esm/object/kebabCaseKeys/shim.d.ts +12 -0
  530. package/build/esm/object/keys/index.d.ts +7 -0
  531. package/build/esm/object/keys/shim.d.ts +11 -0
  532. package/build/esm/object/lowerCaseKeys/index.d.ts +7 -0
  533. package/build/esm/object/lowerCaseKeys/shim.d.ts +12 -0
  534. package/build/esm/object/map/index.d.ts +13 -0
  535. package/build/esm/object/map/shim.d.ts +17 -0
  536. package/build/esm/object/mapKeys/index.d.ts +9 -0
  537. package/build/esm/object/mapKeys/shim.d.ts +13 -0
  538. package/build/esm/object/mapValues/index.d.ts +13 -0
  539. package/build/esm/object/mapValues/shim.d.ts +17 -0
  540. package/build/esm/object/merge/index.d.ts +17 -0
  541. package/build/esm/object/merge/shim.d.ts +21 -0
  542. package/build/esm/object/omit/index.d.ts +12 -0
  543. package/build/esm/object/omit/shim.d.ts +16 -0
  544. package/build/esm/object/reduce/index.d.ts +9 -0
  545. package/build/esm/object/reduce/shim.d.ts +13 -0
  546. package/build/esm/object/set/index.d.ts +11 -0
  547. package/build/esm/object/set/shim.d.ts +15 -0
  548. package/{src/object/shim.ts → build/esm/object/shim.d.ts} +0 -0
  549. package/build/esm/object/size/index.d.ts +6 -0
  550. package/build/esm/object/size/shim.d.ts +11 -0
  551. package/build/esm/object/snakeCaseKeys/index.d.ts +8 -0
  552. package/build/esm/object/snakeCaseKeys/shim.d.ts +12 -0
  553. package/build/esm/object/values/index.d.ts +6 -0
  554. package/build/esm/object/values/shim.d.ts +11 -0
  555. package/{src/shim.ts → build/esm/shim.d.ts} +0 -0
  556. package/build/esm/string/base64/index.d.ts +6 -0
  557. package/build/esm/string/base64/shim.d.ts +11 -0
  558. package/build/esm/string/base64Decode/index.d.ts +6 -0
  559. package/build/esm/string/base64Decode/shim.d.ts +11 -0
  560. package/build/esm/string/camelCase/index.d.ts +13 -0
  561. package/build/esm/string/camelCase/shim.d.ts +18 -0
  562. package/build/esm/string/capitalize/index.d.ts +10 -0
  563. package/build/esm/string/capitalize/shim.d.ts +14 -0
  564. package/build/esm/string/chars/index.d.ts +6 -0
  565. package/build/esm/string/chars/shim.d.ts +11 -0
  566. package/build/esm/string/contains/index.d.ts +11 -0
  567. package/build/esm/string/contains/shim.d.ts +15 -0
  568. package/build/esm/string/decapitalize/index.d.ts +10 -0
  569. package/build/esm/string/decapitalize/shim.d.ts +14 -0
  570. package/build/esm/string/equals/index.d.ts +8 -0
  571. package/build/esm/string/equals/shim.d.ts +12 -0
  572. package/build/esm/string/forEach/index.d.ts +8 -0
  573. package/build/esm/string/forEach/shim.d.ts +12 -0
  574. package/build/esm/string/humanize/index.d.ts +9 -0
  575. package/build/esm/string/humanize/shim.d.ts +13 -0
  576. package/{src/string/index.ts → build/esm/string/index.d.ts} +0 -0
  577. package/build/esm/string/isEmpty/index.d.ts +9 -0
  578. package/build/esm/string/isEmpty/shim.d.ts +13 -0
  579. package/build/esm/string/isString/index.d.ts +9 -0
  580. package/build/esm/string/isString/shim.d.ts +14 -0
  581. package/build/esm/string/kebabCase/index.d.ts +17 -0
  582. package/build/esm/string/kebabCase/shim.d.ts +21 -0
  583. package/build/esm/string/lines/index.d.ts +7 -0
  584. package/build/esm/string/lines/shim.d.ts +11 -0
  585. package/build/esm/string/map/index.d.ts +8 -0
  586. package/build/esm/string/map/shim.d.ts +12 -0
  587. package/build/esm/string/mask/index.d.ts +13 -0
  588. package/build/esm/string/mask/shim.d.ts +17 -0
  589. package/build/esm/string/pad/index.d.ts +11 -0
  590. package/build/esm/string/pad/shim.d.ts +15 -0
  591. package/build/esm/string/parseInt/index.d.ts +8 -0
  592. package/build/esm/string/parseInt/shim.d.ts +12 -0
  593. package/build/esm/string/pluralize/index.d.ts +18 -0
  594. package/build/esm/string/pluralize/shim.d.ts +22 -0
  595. package/build/esm/string/reduce/index.d.ts +9 -0
  596. package/build/esm/string/reduce/shim.d.ts +13 -0
  597. package/build/esm/string/repeat/index.d.ts +8 -0
  598. package/build/esm/string/repeat/shim.d.ts +13 -0
  599. package/build/esm/string/reverse/index.d.ts +7 -0
  600. package/build/esm/string/reverse/shim.d.ts +11 -0
  601. package/{src/string/shim.ts → build/esm/string/shim.d.ts} +0 -0
  602. package/build/esm/string/snakeCase/index.d.ts +17 -0
  603. package/build/esm/string/snakeCase/shim.d.ts +21 -0
  604. package/build/esm/string/swapCase/index.d.ts +7 -0
  605. package/build/esm/string/swapCase/shim.d.ts +11 -0
  606. package/build/esm/string/truncate/index.d.ts +11 -0
  607. package/build/esm/string/truncate/shim.d.ts +15 -0
  608. package/build/esm/string/words/index.d.ts +10 -0
  609. package/build/esm/string/words/shim.d.ts +14 -0
  610. package/build/esm/utils.d.ts +54 -0
  611. package/package.json +2449 -699
  612. package/.eslintrc +0 -18
  613. package/.gitattributes +0 -2
  614. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  615. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -17
  616. package/.github/dependabot.yml +0 -26
  617. package/.github/workflows/release.yml +0 -111
  618. package/.github/workflows/test.yml +0 -83
  619. package/.prettierrc +0 -6
  620. package/CODE_OF_CONDUCT.md +0 -46
  621. package/__tests__/array/all.test.ts +0 -15
  622. package/__tests__/array/any.test.ts +0 -15
  623. package/__tests__/array/append.test.ts +0 -13
  624. package/__tests__/array/average.test.ts +0 -29
  625. package/__tests__/array/chunk.test.ts +0 -7
  626. package/__tests__/array/clone.test.ts +0 -34
  627. package/__tests__/array/compact.test.ts +0 -19
  628. package/__tests__/array/contains.test.ts +0 -7
  629. package/__tests__/array/count.test.ts +0 -11
  630. package/__tests__/array/countBy.test.ts +0 -17
  631. package/__tests__/array/crossJoin.test.ts +0 -12
  632. package/__tests__/array/deepFlatten.test.ts +0 -7
  633. package/__tests__/array/diff.test.ts +0 -14
  634. package/__tests__/array/distinct.test.ts +0 -16
  635. package/__tests__/array/distinctBy.test.ts +0 -7
  636. package/__tests__/array/empty.test.ts +0 -9
  637. package/__tests__/array/equals.test.ts +0 -35
  638. package/__tests__/array/everyNth.test.ts +0 -7
  639. package/__tests__/array/first.test.ts +0 -7
  640. package/__tests__/array/flatten.test.ts +0 -19
  641. package/__tests__/array/get.test.ts +0 -15
  642. package/__tests__/array/groupBy.test.ts +0 -17
  643. package/__tests__/array/implode.test.ts +0 -27
  644. package/__tests__/array/indexOfAll.test.ts +0 -11
  645. package/__tests__/array/initial.test.ts +0 -7
  646. package/__tests__/array/intersect.test.ts +0 -7
  647. package/__tests__/array/isEmpty.test.ts +0 -11
  648. package/__tests__/array/last.test.ts +0 -7
  649. package/__tests__/array/limit.test.ts +0 -7
  650. package/__tests__/array/max.test.ts +0 -19
  651. package/__tests__/array/median.test.ts +0 -23
  652. package/__tests__/array/merge.test.ts +0 -11
  653. package/__tests__/array/min.test.ts +0 -19
  654. package/__tests__/array/nest.test.ts +0 -115
  655. package/__tests__/array/orderBy.test.ts +0 -16
  656. package/__tests__/array/pad.test.ts +0 -15
  657. package/__tests__/array/partition.test.ts +0 -33
  658. package/__tests__/array/pluck.test.ts +0 -17
  659. package/__tests__/array/prepend.test.ts +0 -10
  660. package/__tests__/array/pull.test.ts +0 -15
  661. package/__tests__/array/range.test.ts +0 -15
  662. package/__tests__/array/repeat.test.ts +0 -11
  663. package/__tests__/array/sample.test.ts +0 -7
  664. package/__tests__/array/shuffle.test.ts +0 -7
  665. package/__tests__/array/skip.test.ts +0 -7
  666. package/__tests__/array/sortBy.test.ts +0 -19
  667. package/__tests__/array/sum.test.ts +0 -19
  668. package/__tests__/array/tail.test.ts +0 -11
  669. package/__tests__/array/toCSV.test.ts +0 -17
  670. package/__tests__/array/union.test.ts +0 -7
  671. package/__tests__/array/unwind.test.ts +0 -16
  672. package/__tests__/array/where.test.ts +0 -41
  673. package/__tests__/array/whereBetween.test.ts +0 -12
  674. package/__tests__/array/whereIn.test.ts +0 -12
  675. package/__tests__/array/whereLike.test.ts +0 -18
  676. package/__tests__/array/whereNotBetween.test.ts +0 -15
  677. package/__tests__/array/whereNotIn.test.ts +0 -11
  678. package/__tests__/array/whereNotLike.test.ts +0 -14
  679. package/__tests__/array/whereNotNull.test.ts +0 -12
  680. package/__tests__/array/whereNull.test.ts +0 -16
  681. package/__tests__/array/zip.test.ts +0 -18
  682. package/__tests__/array/zipObject.test.ts +0 -19
  683. package/__tests__/boolean/isBoolean.test.ts +0 -11
  684. package/__tests__/date/equals.test.ts +0 -17
  685. package/__tests__/date/isDate.test.ts +0 -11
  686. package/__tests__/date/today.test.ts +0 -14
  687. package/__tests__/date/tomorrow.test.ts +0 -20
  688. package/__tests__/date/yesterday.test.ts +0 -20
  689. package/__tests__/function/cache.test.ts +0 -11
  690. package/__tests__/function/isFunction.test.ts +0 -16
  691. package/__tests__/globals/isBrowser.test.ts +0 -15
  692. package/__tests__/math/average.test.ts +0 -7
  693. package/__tests__/math/degreesToRads.test.ts +0 -7
  694. package/__tests__/math/factorial.test.ts +0 -7
  695. package/__tests__/math/fibonacci.test.ts +0 -7
  696. package/__tests__/math/gcd.test.ts +0 -7
  697. package/__tests__/math/isDivisible.test.ts +0 -7
  698. package/__tests__/math/isEven.test.ts +0 -7
  699. package/__tests__/math/isPrime.test.ts +0 -11
  700. package/__tests__/math/lcm.test.ts +0 -7
  701. package/__tests__/math/primes.test.ts +0 -7
  702. package/__tests__/math/radsToDegrees.test.ts +0 -7
  703. package/__tests__/number/digitize.test.ts +0 -7
  704. package/__tests__/number/equals.test.ts +0 -11
  705. package/__tests__/number/inRange.test.ts +0 -7
  706. package/__tests__/number/isNumber.test.ts +0 -19
  707. package/__tests__/object/assign.test.ts +0 -10
  708. package/__tests__/object/camelCaseKeys.test.ts +0 -17
  709. package/__tests__/object/clone.test.ts +0 -62
  710. package/__tests__/object/defaults.test.ts +0 -13
  711. package/__tests__/object/dig.test.ts +0 -25
  712. package/__tests__/object/empty.test.ts +0 -9
  713. package/__tests__/object/equals.test.ts +0 -44
  714. package/__tests__/object/flatten.test.ts +0 -44
  715. package/__tests__/object/forEach.test.ts +0 -28
  716. package/__tests__/object/get.test.ts +0 -7
  717. package/__tests__/object/invert.test.ts +0 -13
  718. package/__tests__/object/isEmpty.test.ts +0 -11
  719. package/__tests__/object/isObject.test.ts +0 -23
  720. package/__tests__/object/isObjectLike.test.ts +0 -23
  721. package/__tests__/object/isPlainObject.test.ts +0 -29
  722. package/__tests__/object/kebabCaseKeys.test.ts +0 -17
  723. package/__tests__/object/keys.test.ts +0 -15
  724. package/__tests__/object/lowerCaseKeys.test.ts +0 -13
  725. package/__tests__/object/map.test.ts +0 -23
  726. package/__tests__/object/mapKeys.test.ts +0 -13
  727. package/__tests__/object/mapValues.test.ts +0 -23
  728. package/__tests__/object/merge.test.ts +0 -22
  729. package/__tests__/object/omit.test.ts +0 -24
  730. package/__tests__/object/reduce.test.ts +0 -24
  731. package/__tests__/object/set.test.ts +0 -21
  732. package/__tests__/object/size.test.ts +0 -11
  733. package/__tests__/object/snakeCaseKeys.test.ts +0 -17
  734. package/__tests__/object/values.test.ts +0 -11
  735. package/__tests__/string/base64.test.ts +0 -7
  736. package/__tests__/string/base64Decode.test.ts +0 -7
  737. package/__tests__/string/camelCase.test.ts +0 -32
  738. package/__tests__/string/capitalize.test.ts +0 -11
  739. package/__tests__/string/chars.test.ts +0 -7
  740. package/__tests__/string/contains.test.ts +0 -11
  741. package/__tests__/string/decapitalize.test.ts +0 -11
  742. package/__tests__/string/equals.test.ts +0 -11
  743. package/__tests__/string/forEach.test.ts +0 -11
  744. package/__tests__/string/humanize.test.ts +0 -16
  745. package/__tests__/string/isEmpty.test.ts +0 -11
  746. package/__tests__/string/isString.test.ts +0 -11
  747. package/__tests__/string/kebabCase.test.ts +0 -39
  748. package/__tests__/string/lines.test.ts +0 -13
  749. package/__tests__/string/map.test.ts +0 -7
  750. package/__tests__/string/mask.test.ts +0 -15
  751. package/__tests__/string/pad.test.ts +0 -15
  752. package/__tests__/string/parseInt.test.ts +0 -7
  753. package/__tests__/string/pluralize.test.ts +0 -684
  754. package/__tests__/string/reduce.test.ts +0 -12
  755. package/__tests__/string/repeat.test.ts +0 -11
  756. package/__tests__/string/reverse.test.ts +0 -7
  757. package/__tests__/string/snakeCase.test.ts +0 -39
  758. package/__tests__/string/swapCase.test.ts +0 -7
  759. package/__tests__/string/truncate.test.ts +0 -19
  760. package/__tests__/string/words.test.ts +0 -15
  761. package/__tests__/utils.test.ts +0 -61
  762. package/docs/.nojekyll +0 -1
  763. package/docs/CNAME +0 -1
  764. package/docs/assets/highlight.css +0 -106
  765. package/docs/assets/main.js +0 -54
  766. package/docs/assets/search.js +0 -1
  767. package/docs/assets/style.css +0 -1224
  768. package/docs/assets/widgets.png +0 -0
  769. package/docs/assets/widgets@2x.png +0 -0
  770. package/docs/enums/OPERATOR.html +0 -107
  771. package/docs/functions/array.all.html +0 -160
  772. package/docs/functions/array.any.html +0 -161
  773. package/docs/functions/array.append.html +0 -141
  774. package/docs/functions/array.average.html +0 -149
  775. package/docs/functions/array.chunk.html +0 -141
  776. package/docs/functions/array.clone.html +0 -141
  777. package/docs/functions/array.compact.html +0 -139
  778. package/docs/functions/array.contains.html +0 -146
  779. package/docs/functions/array.count.html +0 -144
  780. package/docs/functions/array.countBy.html +0 -148
  781. package/docs/functions/array.crossJoin.html +0 -144
  782. package/docs/functions/array.deepFlatten.html +0 -139
  783. package/docs/functions/array.diff.html +0 -163
  784. package/docs/functions/array.distinct.html +0 -147
  785. package/docs/functions/array.distinctBy.html +0 -154
  786. package/docs/functions/array.empty.html +0 -139
  787. package/docs/functions/array.equals.html +0 -141
  788. package/docs/functions/array.everyNth.html +0 -141
  789. package/docs/functions/array.first.html +0 -139
  790. package/docs/functions/array.flatten.html +0 -144
  791. package/docs/functions/array.get.html +0 -150
  792. package/docs/functions/array.groupBy.html +0 -147
  793. package/docs/functions/array.implode.html +0 -145
  794. package/docs/functions/array.indexOfAll.html +0 -144
  795. package/docs/functions/array.initial.html +0 -139
  796. package/docs/functions/array.intersect.html +0 -141
  797. package/docs/functions/array.isEmpty.html +0 -142
  798. package/docs/functions/array.last.html +0 -139
  799. package/docs/functions/array.limit.html +0 -141
  800. package/docs/functions/array.max.html +0 -164
  801. package/docs/functions/array.median.html +0 -161
  802. package/docs/functions/array.merge.html +0 -141
  803. package/docs/functions/array.min.html +0 -164
  804. package/docs/functions/array.nest.html +0 -143
  805. package/docs/functions/array.orderBy.html +0 -168
  806. package/docs/functions/array.pad.html +0 -146
  807. package/docs/functions/array.partition.html +0 -157
  808. package/docs/functions/array.pluck.html +0 -146
  809. package/docs/functions/array.prepend.html +0 -141
  810. package/docs/functions/array.pull.html +0 -141
  811. package/docs/functions/array.range.html +0 -145
  812. package/docs/functions/array.repeat.html +0 -141
  813. package/docs/functions/array.sample.html +0 -139
  814. package/docs/functions/array.shuffle.html +0 -139
  815. package/docs/functions/array.skip.html +0 -141
  816. package/docs/functions/array.sortBy.html +0 -145
  817. package/docs/functions/array.sum.html +0 -149
  818. package/docs/functions/array.tail.html +0 -139
  819. package/docs/functions/array.toCSV.html +0 -144
  820. package/docs/functions/array.union.html +0 -143
  821. package/docs/functions/array.unwind.html +0 -141
  822. package/docs/functions/array.where.html +0 -209
  823. package/docs/functions/array.whereBetween.html +0 -167
  824. package/docs/functions/array.whereIn.html +0 -163
  825. package/docs/functions/array.whereLike.html +0 -163
  826. package/docs/functions/array.whereNotBetween.html +0 -167
  827. package/docs/functions/array.whereNotIn.html +0 -163
  828. package/docs/functions/array.whereNotLike.html +0 -163
  829. package/docs/functions/array.whereNotNull.html +0 -144
  830. package/docs/functions/array.whereNull.html +0 -144
  831. package/docs/functions/array.zip.html +0 -144
  832. package/docs/functions/array.zipObject.html +0 -145
  833. package/docs/functions/boolean.isBoolean.html +0 -73
  834. package/docs/functions/date.equals.html +0 -76
  835. package/docs/functions/date.isDate.html +0 -77
  836. package/docs/functions/date.today.html +0 -69
  837. package/docs/functions/date.tomorrow.html +0 -69
  838. package/docs/functions/date.yesterday.html +0 -69
  839. package/docs/functions/func.cache.html +0 -79
  840. package/docs/functions/func.defer.html +0 -82
  841. package/docs/functions/func.isFunction.html +0 -76
  842. package/docs/functions/func.once.html +0 -84
  843. package/docs/functions/globals.isBrowser.html +0 -66
  844. package/docs/functions/math.average.html +0 -83
  845. package/docs/functions/math.degreesToRads.html +0 -80
  846. package/docs/functions/math.factorial.html +0 -80
  847. package/docs/functions/math.fibonacci.html +0 -80
  848. package/docs/functions/math.gcd.html +0 -83
  849. package/docs/functions/math.isDivisible.html +0 -82
  850. package/docs/functions/math.isEven.html +0 -80
  851. package/docs/functions/math.isPrime.html +0 -80
  852. package/docs/functions/math.lcm.html +0 -83
  853. package/docs/functions/math.primes.html +0 -80
  854. package/docs/functions/math.radsToDegrees.html +0 -80
  855. package/docs/functions/number.digitize.html +0 -73
  856. package/docs/functions/number.equals.html +0 -75
  857. package/docs/functions/number.inRange.html +0 -77
  858. package/docs/functions/number.isNumber.html +0 -76
  859. package/docs/functions/object.assign.html +0 -99
  860. package/docs/functions/object.camelCaseKeys.html +0 -97
  861. package/docs/functions/object.clone.html +0 -104
  862. package/docs/functions/object.defaults.html +0 -99
  863. package/docs/functions/object.dig.html +0 -99
  864. package/docs/functions/object.empty.html +0 -97
  865. package/docs/functions/object.equals.html +0 -99
  866. package/docs/functions/object.flatten.html +0 -97
  867. package/docs/functions/object.forEach.html +0 -121
  868. package/docs/functions/object.get.html +0 -106
  869. package/docs/functions/object.invert.html +0 -97
  870. package/docs/functions/object.isEmpty.html +0 -100
  871. package/docs/functions/object.isObject.html +0 -100
  872. package/docs/functions/object.isObjectLike.html +0 -100
  873. package/docs/functions/object.isPlainObject.html +0 -100
  874. package/docs/functions/object.kebabCaseKeys.html +0 -97
  875. package/docs/functions/object.keys.html +0 -102
  876. package/docs/functions/object.lowerCaseKeys.html +0 -97
  877. package/docs/functions/object.map.html +0 -122
  878. package/docs/functions/object.mapKeys.html +0 -122
  879. package/docs/functions/object.mapValues.html +0 -122
  880. package/docs/functions/object.merge.html +0 -99
  881. package/docs/functions/object.omit.html +0 -104
  882. package/docs/functions/object.reduce.html +0 -127
  883. package/docs/functions/object.set.html +0 -101
  884. package/docs/functions/object.size.html +0 -97
  885. package/docs/functions/object.snakeCaseKeys.html +0 -97
  886. package/docs/functions/object.values.html +0 -104
  887. package/docs/functions/string.base64.html +0 -95
  888. package/docs/functions/string.base64Decode.html +0 -95
  889. package/docs/functions/string.camelCase.html +0 -104
  890. package/docs/functions/string.capitalize.html +0 -100
  891. package/docs/functions/string.chars.html +0 -95
  892. package/docs/functions/string.contains.html +0 -102
  893. package/docs/functions/string.decapitalize.html +0 -100
  894. package/docs/functions/string.equals.html +0 -97
  895. package/docs/functions/string.forEach.html +0 -112
  896. package/docs/functions/string.humanize.html +0 -96
  897. package/docs/functions/string.isEmpty.html +0 -98
  898. package/docs/functions/string.isString.html +0 -98
  899. package/docs/functions/string.kebabCase.html +0 -107
  900. package/docs/functions/string.lines.html +0 -95
  901. package/docs/functions/string.map.html +0 -112
  902. package/docs/functions/string.mask.html +0 -105
  903. package/docs/functions/string.pad.html +0 -102
  904. package/docs/functions/string.parseInt.html +0 -97
  905. package/docs/functions/string.pluralize.html +0 -112
  906. package/docs/functions/string.reduce.html +0 -121
  907. package/docs/functions/string.repeat.html +0 -97
  908. package/docs/functions/string.reverse.html +0 -95
  909. package/docs/functions/string.snakeCase.html +0 -107
  910. package/docs/functions/string.swapCase.html +0 -95
  911. package/docs/functions/string.truncate.html +0 -102
  912. package/docs/functions/string.words.html +0 -100
  913. package/docs/index.html +0 -141
  914. package/docs/modules/array.html +0 -192
  915. package/docs/modules/boolean.html +0 -61
  916. package/docs/modules/date.html +0 -69
  917. package/docs/modules/func.html +0 -67
  918. package/docs/modules/globals.html +0 -61
  919. package/docs/modules/math.html +0 -81
  920. package/docs/modules/number.html +0 -67
  921. package/docs/modules/object.html +0 -115
  922. package/docs/modules/string.html +0 -111
  923. package/docs/modules.html +0 -83
  924. package/docs/types/JoinT.html +0 -66
  925. package/docs/types/OperatorT.html +0 -62
  926. package/docs/types/PathT.html +0 -66
  927. package/docs/types/PathsToStringPropsT.html +0 -66
  928. package/docs/types/RecordT.html +0 -62
  929. package/docs/types/array.CompactT.html +0 -126
  930. package/docs/types/array.NestedArrayT.html +0 -126
  931. package/docs/types/array.OrderT.html +0 -122
  932. package/jest.config.js +0 -194
  933. package/scripts/post-build.sh +0 -13
  934. package/scripts/pre-build.sh +0 -6
  935. package/scripts/regenerate-package-json.js +0 -90
  936. package/src/array/all/index.ts +0 -16
  937. package/src/array/all/shim.ts +0 -20
  938. package/src/array/any/index.ts +0 -17
  939. package/src/array/any/shim.ts +0 -21
  940. package/src/array/append/index.ts +0 -15
  941. package/src/array/append/shim.ts +0 -18
  942. package/src/array/average/index.ts +0 -17
  943. package/src/array/average/shim.ts +0 -35
  944. package/src/array/chunk/index.ts +0 -15
  945. package/src/array/chunk/shim.ts +0 -17
  946. package/src/array/clone/index.ts +0 -12
  947. package/src/array/clone/shim.ts +0 -17
  948. package/src/array/compact/index.ts +0 -21
  949. package/src/array/compact/shim.ts +0 -16
  950. package/src/array/contains/index.ts +0 -17
  951. package/src/array/contains/shim.ts +0 -20
  952. package/src/array/count/index.ts +0 -14
  953. package/src/array/count/shim.ts +0 -19
  954. package/src/array/countBy/index.ts +0 -22
  955. package/src/array/countBy/shim.ts +0 -22
  956. package/src/array/crossJoin/index.ts +0 -15
  957. package/src/array/crossJoin/shim.ts +0 -18
  958. package/src/array/deepFlatten/index.ts +0 -11
  959. package/src/array/deepFlatten/shim.ts +0 -16
  960. package/src/array/diff/index.ts +0 -23
  961. package/src/array/diff/shim.ts +0 -22
  962. package/src/array/distinct/index.ts +0 -44
  963. package/src/array/distinct/shim.ts +0 -21
  964. package/src/array/distinctBy/index.ts +0 -29
  965. package/src/array/distinctBy/shim.ts +0 -17
  966. package/src/array/empty/index.ts +0 -11
  967. package/src/array/empty/shim.ts +0 -19
  968. package/src/array/equals/index.ts +0 -17
  969. package/src/array/equals/shim.ts +0 -17
  970. package/src/array/everyNth/index.ts +0 -10
  971. package/src/array/everyNth/shim.ts +0 -17
  972. package/src/array/first/index.ts +0 -9
  973. package/src/array/first/shim.ts +0 -16
  974. package/src/array/flatten/index.ts +0 -18
  975. package/src/array/flatten/shim.ts +0 -20
  976. package/src/array/get/index.ts +0 -17
  977. package/src/array/get/shim.ts +0 -20
  978. package/src/array/groupBy/index.ts +0 -22
  979. package/src/array/groupBy/shim.ts +0 -21
  980. package/src/array/implode/index.ts +0 -29
  981. package/src/array/implode/shim.ts +0 -22
  982. package/src/array/indexOfAll/index.ts +0 -16
  983. package/src/array/indexOfAll/shim.ts +0 -19
  984. package/src/array/initial/index.ts +0 -8
  985. package/src/array/initial/shim.ts +0 -16
  986. package/src/array/intersect/index.ts +0 -12
  987. package/src/array/intersect/shim.ts +0 -17
  988. package/src/array/isEmpty/index.ts +0 -10
  989. package/src/array/isEmpty/shim.ts +0 -19
  990. package/src/array/last/index.ts +0 -10
  991. package/src/array/last/shim.ts +0 -16
  992. package/src/array/limit/index.ts +0 -10
  993. package/src/array/limit/shim.ts +0 -27
  994. package/src/array/max/index.ts +0 -39
  995. package/src/array/max/shim.ts +0 -21
  996. package/src/array/median/index.ts +0 -39
  997. package/src/array/median/shim.ts +0 -19
  998. package/src/array/merge/index.ts +0 -11
  999. package/src/array/merge/shim.ts +0 -19
  1000. package/src/array/min/index.ts +0 -39
  1001. package/src/array/min/shim.ts +0 -21
  1002. package/src/array/nest/index.ts +0 -37
  1003. package/src/array/nest/shim.ts +0 -26
  1004. package/src/array/orderBy/index.ts +0 -62
  1005. package/src/array/orderBy/shim.ts +0 -31
  1006. package/src/array/pad/index.ts +0 -27
  1007. package/src/array/pad/shim.ts +0 -20
  1008. package/src/array/partition/index.ts +0 -28
  1009. package/src/array/partition/shim.ts +0 -24
  1010. package/src/array/pluck/index.ts +0 -20
  1011. package/src/array/pluck/shim.ts +0 -21
  1012. package/src/array/prepend/index.ts +0 -15
  1013. package/src/array/prepend/shim.ts +0 -18
  1014. package/src/array/pull/index.ts +0 -15
  1015. package/src/array/pull/shim.ts +0 -18
  1016. package/src/array/range/index.ts +0 -18
  1017. package/src/array/range/shim.ts +0 -23
  1018. package/src/array/repeat/index.ts +0 -10
  1019. package/src/array/repeat/shim.ts +0 -17
  1020. package/src/array/sample/index.ts +0 -8
  1021. package/src/array/sample/shim.ts +0 -16
  1022. package/src/array/shuffle/index.ts +0 -17
  1023. package/src/array/shuffle/shim.ts +0 -17
  1024. package/src/array/skip/index.ts +0 -10
  1025. package/src/array/skip/shim.ts +0 -27
  1026. package/src/array/sortBy/index.ts +0 -27
  1027. package/src/array/sortBy/shim.ts +0 -20
  1028. package/src/array/sum/index.ts +0 -25
  1029. package/src/array/sum/shim.ts +0 -21
  1030. package/src/array/tail/index.ts +0 -8
  1031. package/src/array/tail/shim.ts +0 -16
  1032. package/src/array/toCSV/index.ts +0 -14
  1033. package/src/array/toCSV/shim.ts +0 -20
  1034. package/src/array/union/index.ts +0 -13
  1035. package/src/array/union/shim.ts +0 -17
  1036. package/src/array/unwind/index.ts +0 -20
  1037. package/src/array/unwind/shim.ts +0 -19
  1038. package/src/array/where/index.ts +0 -110
  1039. package/src/array/where/shim.ts +0 -45
  1040. package/src/array/whereBetween/index.ts +0 -47
  1041. package/src/array/whereBetween/shim.ts +0 -28
  1042. package/src/array/whereIn/index.ts +0 -31
  1043. package/src/array/whereIn/shim.ts +0 -26
  1044. package/src/array/whereLike/index.ts +0 -38
  1045. package/src/array/whereLike/shim.ts +0 -26
  1046. package/src/array/whereNotBetween/index.ts +0 -47
  1047. package/src/array/whereNotBetween/shim.ts +0 -28
  1048. package/src/array/whereNotIn/index.ts +0 -31
  1049. package/src/array/whereNotIn/shim.ts +0 -26
  1050. package/src/array/whereNotLike/index.ts +0 -38
  1051. package/src/array/whereNotLike/shim.ts +0 -26
  1052. package/src/array/whereNotNull/index.ts +0 -14
  1053. package/src/array/whereNotNull/shim.ts +0 -19
  1054. package/src/array/whereNull/index.ts +0 -14
  1055. package/src/array/whereNull/shim.ts +0 -24
  1056. package/src/array/zip/index.ts +0 -20
  1057. package/src/array/zip/shim.ts +0 -20
  1058. package/src/array/zipObject/index.ts +0 -23
  1059. package/src/array/zipObject/shim.ts +0 -21
  1060. package/src/boolean/isBoolean/index.ts +0 -11
  1061. package/src/boolean/isBoolean/shim.ts +0 -18
  1062. package/src/date/equals/index.ts +0 -12
  1063. package/src/date/equals/shim.ts +0 -17
  1064. package/src/date/isDate/index.ts +0 -14
  1065. package/src/date/isDate/shim.ts +0 -18
  1066. package/src/date/today/index.ts +0 -18
  1067. package/src/date/today/shim.ts +0 -15
  1068. package/src/date/tomorrow/index.ts +0 -20
  1069. package/src/date/tomorrow/shim.ts +0 -15
  1070. package/src/date/yesterday/index.ts +0 -20
  1071. package/src/date/yesterday/shim.ts +0 -15
  1072. package/src/function/cache/index.ts +0 -26
  1073. package/src/function/cache/shim.ts +0 -21
  1074. package/src/function/defer/index.ts +0 -14
  1075. package/src/function/defer/shim.ts +0 -18
  1076. package/src/function/isFunction/index.ts +0 -11
  1077. package/src/function/isFunction/shim.ts +0 -18
  1078. package/src/function/once/index.ts +0 -21
  1079. package/src/function/once/shim.ts +0 -20
  1080. package/src/globals/isBrowser/index.ts +0 -11
  1081. package/src/globals/isBrowser/shim.ts +0 -17
  1082. package/src/index.ts +0 -11
  1083. package/src/math/average/index.ts +0 -13
  1084. package/src/math/average/shim.ts +0 -30
  1085. package/src/math/degreesToRads/index.ts +0 -11
  1086. package/src/math/degreesToRads/shim.ts +0 -16
  1087. package/src/math/factorial/index.ts +0 -9
  1088. package/src/math/factorial/shim.ts +0 -16
  1089. package/src/math/fibonacci/index.ts +0 -12
  1090. package/src/math/fibonacci/shim.ts +0 -16
  1091. package/src/math/gcd/index.ts +0 -12
  1092. package/src/math/gcd/shim.ts +0 -18
  1093. package/src/math/isDivisible/index.ts +0 -13
  1094. package/src/math/isDivisible/shim.ts +0 -17
  1095. package/src/math/isEven/index.ts +0 -9
  1096. package/src/math/isEven/shim.ts +0 -16
  1097. package/src/math/isPrime/index.ts +0 -13
  1098. package/src/math/isPrime/shim.ts +0 -16
  1099. package/src/math/lcm/index.ts +0 -13
  1100. package/src/math/lcm/shim.ts +0 -18
  1101. package/src/math/primes/index.ts +0 -15
  1102. package/src/math/primes/shim.ts +0 -16
  1103. package/src/math/radsToDegrees/index.ts +0 -11
  1104. package/src/math/radsToDegrees/shim.ts +0 -16
  1105. package/src/number/digitize/index.ts +0 -8
  1106. package/src/number/digitize/shim.ts +0 -16
  1107. package/src/number/equals/index.ts +0 -10
  1108. package/src/number/equals/shim.ts +0 -17
  1109. package/src/number/inRange/index.ts +0 -11
  1110. package/src/number/inRange/shim.ts +0 -18
  1111. package/src/number/isNumber/index.ts +0 -11
  1112. package/src/number/isNumber/shim.ts +0 -18
  1113. package/src/object/assign/index.ts +0 -13
  1114. package/src/object/assign/shim.ts +0 -17
  1115. package/src/object/camelCaseKeys/index.ts +0 -17
  1116. package/src/object/camelCaseKeys/shim.ts +0 -17
  1117. package/src/object/clone/index.ts +0 -16
  1118. package/src/object/clone/shim.ts +0 -18
  1119. package/src/object/defaults/index.ts +0 -13
  1120. package/src/object/defaults/shim.ts +0 -17
  1121. package/src/object/dig/index.ts +0 -30
  1122. package/src/object/dig/shim.ts +0 -25
  1123. package/src/object/empty/index.ts +0 -15
  1124. package/src/object/empty/shim.ts +0 -18
  1125. package/src/object/equals/index.ts +0 -31
  1126. package/src/object/equals/shim.ts +0 -17
  1127. package/src/object/flatten/index.ts +0 -40
  1128. package/src/object/flatten/shim.ts +0 -16
  1129. package/src/object/forEach/index.ts +0 -19
  1130. package/src/object/forEach/shim.ts +0 -27
  1131. package/src/object/get/index.ts +0 -18
  1132. package/src/object/get/shim.ts +0 -17
  1133. package/src/object/invert/index.ts +0 -15
  1134. package/src/object/invert/shim.ts +0 -16
  1135. package/src/object/isEmpty/index.ts +0 -13
  1136. package/src/object/isEmpty/shim.ts +0 -18
  1137. package/src/object/isObject/index.ts +0 -11
  1138. package/src/object/isObject/shim.ts +0 -18
  1139. package/src/object/isObjectLike/index.ts +0 -15
  1140. package/src/object/isObjectLike/shim.ts +0 -18
  1141. package/src/object/isPlainObject/index.ts +0 -20
  1142. package/src/object/isPlainObject/shim.ts +0 -18
  1143. package/src/object/kebabCaseKeys/index.ts +0 -17
  1144. package/src/object/kebabCaseKeys/shim.ts +0 -17
  1145. package/src/object/keys/index.ts +0 -9
  1146. package/src/object/keys/shim.ts +0 -16
  1147. package/src/object/lowerCaseKeys/index.ts +0 -15
  1148. package/src/object/lowerCaseKeys/shim.ts +0 -17
  1149. package/src/object/map/index.ts +0 -31
  1150. package/src/object/map/shim.ts +0 -28
  1151. package/src/object/mapKeys/index.ts +0 -24
  1152. package/src/object/mapKeys/shim.ts +0 -24
  1153. package/src/object/mapValues/index.ts +0 -29
  1154. package/src/object/mapValues/shim.ts +0 -28
  1155. package/src/object/merge/index.ts +0 -34
  1156. package/src/object/merge/shim.ts +0 -26
  1157. package/src/object/omit/index.ts +0 -42
  1158. package/src/object/omit/shim.ts +0 -23
  1159. package/src/object/reduce/index.ts +0 -27
  1160. package/src/object/reduce/shim.ts +0 -26
  1161. package/src/object/set/index.ts +0 -32
  1162. package/src/object/set/shim.ts +0 -20
  1163. package/src/object/size/index.ts +0 -10
  1164. package/src/object/size/shim.ts +0 -16
  1165. package/src/object/snakeCaseKeys/index.ts +0 -17
  1166. package/src/object/snakeCaseKeys/shim.ts +0 -17
  1167. package/src/object/values/index.ts +0 -9
  1168. package/src/object/values/shim.ts +0 -16
  1169. package/src/string/base64/index.ts +0 -8
  1170. package/src/string/base64/shim.ts +0 -16
  1171. package/src/string/base64Decode/index.ts +0 -8
  1172. package/src/string/base64Decode/shim.ts +0 -16
  1173. package/src/string/camelCase/index.ts +0 -21
  1174. package/src/string/camelCase/shim.ts +0 -23
  1175. package/src/string/capitalize/index.ts +0 -14
  1176. package/src/string/capitalize/shim.ts +0 -19
  1177. package/src/string/chars/index.ts +0 -8
  1178. package/src/string/chars/shim.ts +0 -16
  1179. package/src/string/contains/index.ts +0 -19
  1180. package/src/string/contains/shim.ts +0 -20
  1181. package/src/string/decapitalize/index.ts +0 -14
  1182. package/src/string/decapitalize/shim.ts +0 -19
  1183. package/src/string/equals/index.ts +0 -10
  1184. package/src/string/equals/shim.ts +0 -17
  1185. package/src/string/forEach/index.ts +0 -13
  1186. package/src/string/forEach/shim.ts +0 -17
  1187. package/src/string/humanize/index.ts +0 -16
  1188. package/src/string/humanize/shim.ts +0 -18
  1189. package/src/string/isEmpty/index.ts +0 -11
  1190. package/src/string/isEmpty/shim.ts +0 -18
  1191. package/src/string/isString/index.ts +0 -11
  1192. package/src/string/isString/shim.ts +0 -18
  1193. package/src/string/kebabCase/index.ts +0 -23
  1194. package/src/string/kebabCase/shim.ts +0 -26
  1195. package/src/string/lines/index.ts +0 -9
  1196. package/src/string/lines/shim.ts +0 -16
  1197. package/src/string/map/index.ts +0 -14
  1198. package/src/string/map/shim.ts +0 -17
  1199. package/src/string/mask/index.ts +0 -15
  1200. package/src/string/mask/shim.ts +0 -22
  1201. package/src/string/pad/index.ts +0 -23
  1202. package/src/string/pad/shim.ts +0 -20
  1203. package/src/string/parseInt/index.ts +0 -10
  1204. package/src/string/parseInt/shim.ts +0 -17
  1205. package/src/string/pluralize/index.ts +0 -427
  1206. package/src/string/pluralize/shim.ts +0 -27
  1207. package/src/string/reduce/index.ts +0 -16
  1208. package/src/string/reduce/shim.ts +0 -21
  1209. package/src/string/repeat/index.ts +0 -12
  1210. package/src/string/repeat/shim.ts +0 -17
  1211. package/src/string/reverse/index.ts +0 -9
  1212. package/src/string/reverse/shim.ts +0 -16
  1213. package/src/string/snakeCase/index.ts +0 -23
  1214. package/src/string/snakeCase/shim.ts +0 -26
  1215. package/src/string/swapCase/index.ts +0 -9
  1216. package/src/string/swapCase/shim.ts +0 -16
  1217. package/src/string/truncate/index.ts +0 -21
  1218. package/src/string/truncate/shim.ts +0 -20
  1219. package/src/string/words/index.ts +0 -12
  1220. package/src/string/words/shim.ts +0 -19
  1221. package/src/utils.ts +0 -151
  1222. package/stale.yml +0 -17
  1223. package/tsconfig.eslint.json +0 -4
  1224. package/tsconfig.esm.json +0 -11
  1225. package/tsconfig.json +0 -103
  1226. package/typedoc.json +0 -12
@@ -1,19 +0,0 @@
1
- import { PathT, addPrototype } from "../../utils.js";
2
- import median from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Returns the median value of a given path
9
- * @param [path]
10
- * @example
11
- * [1, 1, 2, 4].median(); // 1.5
12
- * @example
13
- * [{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}].median('foo'); // 15
14
- */
15
- median(path?: T extends Record<string, unknown> ? PathT<T> : never): number;
16
- }
17
- }
18
-
19
- addPrototype(Array, "median", median);
@@ -1,11 +0,0 @@
1
- /**
2
- * Merges array with the given array
3
- * @param arr
4
- * @param arr2
5
- * @example
6
- * let myArray = [1, 2, 3]
7
- * merge(myArray, [0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]
8
- */
9
- export default function merge<T>(arr: T[], arr2: unknown[]): void {
10
- arr.push(...(arr2 as never[]));
11
- }
@@ -1,19 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import merge from "./index.js";
3
-
4
- declare global {
5
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
- interface Array<T> {
7
-
8
- /**
9
- * Merges array with the given array
10
- * @param arr
11
- * @example
12
- * let myArray = [1, 2, 3]
13
- * myArray.merge([0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]
14
- */
15
- merge(arr: unknown[]): void;
16
- }
17
- }
18
-
19
- addPrototype(Array, "merge", merge);
@@ -1,39 +0,0 @@
1
- import { PathT, pathToKeys } from "../../utils.js";
2
-
3
- /**
4
- * Returns the minimum value of a given path
5
- * @param array
6
- * @param [path]
7
- * @example
8
- * min([{a: 1}, {a: 2}, {a: 3}], 'a'); // 1
9
- * @example
10
- * min([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // 1
11
- */
12
- function min<
13
- Value extends Record<string, unknown>,
14
- Path extends PathT<Value> = never,
15
- >(array: Value[], path?: Path): number;
16
-
17
- /**
18
- * Returns the minimum value of a given path
19
- * @param array
20
- * @example
21
- * min([1, 2, 3]); // 1
22
- */
23
- function min<Value>(array: Value[]): number;
24
- function min<Value>(arr: Value[], path?: string): number {
25
- let reducer = (item: Value): any => item;
26
-
27
- if (path) {
28
- const keys = pathToKeys(path);
29
-
30
- reducer = (item: Value): any => keys.reduce(
31
- (prev, curr) => (prev && (prev as any)[curr]) || +Infinity,
32
- item,
33
- );
34
- }
35
-
36
- return arr.reduce((prev, cur) => Math.min(prev, reducer(cur)), +Infinity);
37
- }
38
-
39
- export default min;
@@ -1,21 +0,0 @@
1
- import { PathT, addPrototype } from "../../utils.js";
2
- import min from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Returns the minimum value of a given path
9
- * @param [path]
10
- * @example
11
- * [1, 2, 3].min(); // 1
12
- * @example
13
- * [{a: 1}, {a: 2}, {a: 3}].min('a'); // 1
14
- * @example
15
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].min('a.b'); // 1
16
- */
17
- min(path?: T extends Record<string, unknown> ? PathT<T> : never): number;
18
- }
19
- }
20
-
21
- addPrototype(Array, "min", min);
@@ -1,37 +0,0 @@
1
- // eslint-disable-next-line max-params
2
- function filter(
3
- arr: Array<Record<string, unknown>>,
4
- link: string,
5
- key: string,
6
- id: unknown = null,
7
- ): Array<Record<string, unknown>> {
8
- return arr
9
- .filter(item => item[link] === id)
10
- .map(item => ({
11
- ...item,
12
- children: filter(arr, link, key, item[key]),
13
- }));
14
- }
15
-
16
- /**
17
- * Given a flat array of objects linked to one another, it will nest them recursively
18
- * @param arr
19
- * @param [link="parent_id"]
20
- * @param [key="id"]
21
- * @example
22
- * const comments = [
23
- * { id: 1, comment_id: null },
24
- * { id: 2, comment_id: 1 },
25
- * { id: 3, comment_id: 1 },
26
- * { id: 4, comment_id: 2 },
27
- * { id: 5, comment_id: 4 }
28
- * ];
29
- * nest(comments, "comment_id"); // [{ id: 1, comment_id: null, children: [...] }]
30
- */
31
- export default function nest<T extends Record<string, unknown>>(
32
- arr: T[],
33
- link = "parent_id",
34
- key = "id",
35
- ): Array<Record<string, unknown>> {
36
- return filter(arr, link, key);
37
- }
@@ -1,26 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import nest from "./index.js";
3
-
4
- declare global {
5
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
- interface Array<T> {
7
-
8
- /**
9
- * Given a flat array of objects linked to one another, it will nest them recursively
10
- * @param [link="parent_id"]
11
- * @param [key="id"]
12
- * @example
13
- * const comments = [
14
- * { id: 1, comment_id: null },
15
- * { id: 2, comment_id: 1 },
16
- * { id: 3, comment_id: 1 },
17
- * { id: 4, comment_id: 2 },
18
- * { id: 5, comment_id: 4 }
19
- * ];
20
- * comments.nest("comment_id"); // [{ id: 1, comment_id: null, children: [...] }]
21
- */
22
- nest(link?: string, key?: string): Array<Record<string, unknown>>;
23
- }
24
- }
25
-
26
- addPrototype(Array, "nest", nest);
@@ -1,62 +0,0 @@
1
- import { PathT, pathToKeys } from "../../utils.js";
2
- import contains from "../contains/index.js";
3
-
4
- const enum ORDER {
5
- ASC = "asc",
6
- DESC = "desc",
7
- }
8
-
9
- /**
10
- * Sorts the array
11
- * @param arr
12
- * @param [order="asc"]
13
- * @example
14
- * orderBy([2, 1, 2, 5]); // [1,2,2,5]
15
- * @example
16
- * orderBy([2, 1, 2, 5], "desc"); // [5,2,2,1]
17
- */
18
- function orderBy<Value>(arr: Value[], order?: OrderT): Value[];
19
-
20
- /**
21
- * Sorts the array
22
- * @param array
23
- * @param field
24
- * @param [order="asc"]
25
- * @example
26
- * orderBy([{count:1}, {count:20}, {count:15}], "count", "asc"); // [{count:1},{count:15},{count:20}]
27
- */
28
- function orderBy<
29
- Value extends Record<string, unknown>,
30
- Path extends PathT<Value> = never,
31
- >(array: Value[], field: Path, order?: OrderT): Value[];
32
- function orderBy<Value>(
33
- arr: Value[],
34
- field?: string,
35
- order: OrderT = ORDER.ASC,
36
- ): Value[] {
37
- if (field && contains([ORDER.ASC, ORDER.DESC], field)) {
38
- order = field as OrderT;
39
- // eslint-disable-next-line no-undefined
40
- field = undefined;
41
- }
42
-
43
- const iterator: (a: any, b: any) => number
44
- = order === ORDER.ASC
45
- ? (a, b): number => (a > b ? 1 : a < b ? -1 : 0)
46
- : (a, b): number => (a < b ? 1 : a > b ? -1 : 0);
47
-
48
- if (field) {
49
- const keys = pathToKeys(field);
50
- const reducer = (item: any): number | string => keys.reduce((prev, cur) => prev[cur], item);
51
-
52
- return arr.sort((a, b) => iterator(reducer(a), reducer(b)));
53
- }
54
-
55
- return arr.sort(iterator);
56
- }
57
-
58
- export default orderBy;
59
-
60
- export { ORDER };
61
-
62
- export type OrderT = "asc" | "desc";
@@ -1,31 +0,0 @@
1
- import { PathT, addPrototype } from "../../utils.js";
2
- import orderBy, { OrderT } from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Sorts the array
9
- * @param [order="asc"]
10
- * @example
11
- * [2, 1, 2, 5].orderBy(); // [1,2,2,5]
12
- * @example
13
- * [2, 1, 2, 5].orderBy("desc"); // [5,2,2,1]
14
- */
15
- orderBy(order?: OrderT): T[];
16
-
17
- /**
18
- * Sorts the array
19
- * @param field
20
- * @param [order="asc"]
21
- * @example
22
- * [{count:1}, {count:20}, {count:15}].orderBy("count", "asc"); // [{count:1},{count:15},{count:20}]
23
- */
24
- orderBy(
25
- field: T extends Record<string, unknown> ? PathT<T> : never,
26
- order?: OrderT,
27
- ): T[];
28
- }
29
- }
30
-
31
- addPrototype(Array, "orderBy", orderBy);
@@ -1,27 +0,0 @@
1
- import repeat from "../repeat/index.js";
2
-
3
- /**
4
- * FillS the array with the given value until the array reaches the specified size
5
- * @param arr
6
- * @param size
7
- * @param [value=0]
8
- * @example
9
- * pad([1, 2, 3], 5, 0); // [1, 2, 3, 0, 0]
10
- * @example
11
- * pad([1, 2, 3], -5, 0); // [0, 0, 1, 2, 3]
12
- */
13
- export default function pad<T>(
14
- arr: T[],
15
- size: number,
16
- value: T = 0 as never,
17
- ): T[] {
18
- const length = Math.abs(size) - arr.length;
19
-
20
- if (length <= 0) return arr;
21
-
22
- const array = repeat(length, value);
23
-
24
- if (size < 0) return array.concat(arr);
25
-
26
- return arr.concat(array);
27
- }
@@ -1,20 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import pad from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * FillS the array with the given value until the array reaches the specified size
9
- * @param size
10
- * @param [value=0]
11
- * @example
12
- * [1, 2, 3].pad(5, 0); // [1, 2, 3, 0, 0]
13
- * @example
14
- * [1, 2, 3].pad(-5, 0); // [0, 0, 1, 2, 3]
15
- */
16
- pad(size: number, value?: T): T[];
17
- }
18
- }
19
-
20
- addPrototype(Array, "pad", pad);
@@ -1,28 +0,0 @@
1
- /**
2
- * Groups the elements into two arrays,
3
- * depending on the provided function's truthiness for each element
4
- * @param arr
5
- * @param fn
6
- * @example
7
- * const users = [
8
- * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }
9
- * ];
10
- * partition(users, o => o.active); // [
11
- * [{ 'user': 'fred', 'age': 40, 'active': true }],
12
- * [{ 'user': 'barney', 'age': 36, 'active': false }]
13
- * ]
14
- */
15
- export default function partition<T>(
16
- arr: T[],
17
- fn: (value: T, index: number, array: T[]) => boolean,
18
- ): [T[], T[]] {
19
- return arr.reduce<[T[], T[]]>(
20
- // eslint-disable-next-line max-params
21
- (prev, value, index, array) => {
22
- prev[fn(value, index, array) ? 0 : 1].push(value);
23
-
24
- return prev;
25
- },
26
- [[], []],
27
- );
28
- }
@@ -1,24 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import partition from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Groups the elements into two arrays,
9
- * depending on the provided function's truthiness for each element
10
- * @param fn
11
- * @example
12
- * const users = [
13
- * { user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }
14
- * ];
15
- * users.partition(o => o.active); // [
16
- * [{ 'user': 'fred', 'age': 40, 'active': true }],
17
- * [{ 'user': 'barney', 'age': 36, 'active': false }]
18
- * ]
19
- */
20
- partition(fn: (value: T, index: number, array: T[]) => boolean): [T[], T[]];
21
- }
22
- }
23
-
24
- addPrototype(Array, "partition", partition);
@@ -1,20 +0,0 @@
1
- import { PathT, pathToKeys } from "../../utils.js";
2
-
3
- /**
4
- * Returns all of the values for the given path
5
- * @param array
6
- * @param path
7
- * @example
8
- * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a'); // [{b: 1}, {b: 2}, {b: 3}]
9
- * @example
10
- * pluck([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // [1, 2, 3]
11
- */
12
- export default function pluck<
13
- Value extends Record<string, unknown>,
14
- Path extends PathT<Value>,
15
- >(array: Value[], path: Path): unknown[] {
16
- const keys = pathToKeys(path);
17
-
18
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition,no-undefined
19
- return array.map(item => keys.reduce((prev, cur) => (prev && (prev as any)[cur]) || undefined, item));
20
- }
@@ -1,21 +0,0 @@
1
- import { PathT, addPrototype } from "../../utils.js";
2
- import pluck from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Returns all of the values for the given path
9
- * @param path
10
- * @example
11
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a'); // [{b: 1}, {b: 2}, {b: 3}]
12
- * @example
13
- * [{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a.b'); // [1, 2, 3]
14
- */
15
- pluck(
16
- path: T extends Record<string, unknown> ? PathT<T> : never,
17
- ): unknown[];
18
- }
19
- }
20
-
21
- addPrototype(Array, "pluck", pluck);
@@ -1,15 +0,0 @@
1
- /**
2
- * Adds an item to the beginning of the array
3
- * @param arr
4
- * @param value
5
- * @example
6
- * let myArray = [1, 2, 3]
7
- * prepend(myArray, 0); // myArray => [0, 1, 2, 3]
8
- */
9
- export default function prepend<T>(arr: T[], value: T): number {
10
- const array = [...arr];
11
-
12
- arr.length = 0;
13
-
14
- return arr.push(...[value].concat(array));
15
- }
@@ -1,18 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import prepend from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Adds an item to the beginning of the array
9
- * @param value
10
- * @example
11
- * let myArray = [1, 2, 3]
12
- * myArray.prepend(0); // myArray => [0, 1, 2, 3]
13
- */
14
- prepend(value: T): number;
15
- }
16
- }
17
-
18
- addPrototype(Array, "prepend", prepend);
@@ -1,15 +0,0 @@
1
- /**
2
- * Mutates the original array to filter out the values specified
3
- * @param arr
4
- * @param args
5
- * @example
6
- * let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
7
- * pull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ];
8
- */
9
- export default function pull<T>(arr: T[], ...args: T[]): void {
10
- const pulled = arr.filter(value => !args.includes(value));
11
-
12
- arr.length = 0;
13
-
14
- pulled.forEach(value => arr.push(value));
15
- }
@@ -1,18 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import pull from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Mutates the original array to filter out the values specified
9
- * @param args
10
- * @example
11
- * let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
12
- * myArray.pull('a', 'c'); // myArray = [ 'b', 'b' ];
13
- */
14
- pull(...args: T[]): void;
15
- }
16
- }
17
-
18
- addPrototype(Array, "pull", pull);
@@ -1,18 +0,0 @@
1
- /**
2
- * Initializes an array containing the numbers in the specified range where start
3
- * and end are inclusive with there common difference step
4
- * @param end
5
- * @param [start=0]
6
- * @param [step=1]
7
- * @example
8
- * range(5); // [0,1,2,3,4,5]
9
- * @example
10
- * range(7, 3); // [3,4,5,6,7]
11
- * @example
12
- * range(9, 0, 2); // [0,2,4,6,8]
13
- */
14
- export default function range(end: number, start = 0, step = 1): number[] {
15
- return Array.from({
16
- length: Math.ceil((end + 1 - start) / step),
17
- }).map((value, index) => (index * step) + start);
18
- }
@@ -1,23 +0,0 @@
1
- import range from "./index.js";
2
-
3
- declare global {
4
- interface ArrayConstructor {
5
-
6
- /**
7
- * Initializes an array containing the numbers in the specified range where start
8
- * and end are inclusive with there common difference step
9
- * @param end
10
- * @param [start=0]
11
- * @param [step=1]
12
- * @example
13
- * Array.range(5); // [0,1,2,3,4,5]
14
- * @example
15
- * Array.range(7, 3); // [3,4,5,6,7]
16
- * @example
17
- * Array.range(9, 0, 2); // [0,2,4,6,8]
18
- */
19
- range(end: number, start?: number, step?: number): number[];
20
- }
21
- }
22
-
23
- Array.range = range;
@@ -1,10 +0,0 @@
1
- /**
2
- * Initializes and fills an array with the specified value
3
- * @param n
4
- * @param [value=0]
5
- * @example
6
- * repeat(5, 2); // [2,2,2,2,2]
7
- */
8
- export default function repeat<T = 0>(n: number, value: T = 0 as never): T[] {
9
- return Array(n).fill(value);
10
- }
@@ -1,17 +0,0 @@
1
- import repeat from "./index.js";
2
-
3
- declare global {
4
- interface ArrayConstructor {
5
-
6
- /**
7
- * Initializes and fills an array with the specified value
8
- * @param n
9
- * @param [value=0]
10
- * @example
11
- * Array.repeat(5, 2); // [2,2,2,2,2]
12
- */
13
- repeat<T = 0>(n: number, value?: T): T[];
14
- }
15
- }
16
-
17
- Array.repeat = repeat;
@@ -1,8 +0,0 @@
1
- /**
2
- * Returns a random element from an array
3
- * @example
4
- * sample([3, 7, 9, 11]); // 9
5
- */
6
- export default function sample<T>(arr: T[]): T {
7
- return arr[Math.floor(Math.random() * arr.length)];
8
- }
@@ -1,16 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import sample from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Returns a random element from an array
9
- * @example
10
- * [3, 7, 9, 11].sample(); // 9
11
- */
12
- sample(): T;
13
- }
14
- }
15
-
16
- addPrototype(Array, "sample", sample);
@@ -1,17 +0,0 @@
1
- /**
2
- * Randomizes the order of the values of an array, returning a new array
3
- * @example
4
- * const foo = [1, 2, 3];
5
- * shuffle(foo); // [2,3,1], foo = [1,2,3]
6
- */
7
- export default function shuffle<T>(arr: T[]): T[] {
8
- let m = arr.length;
9
-
10
- while (m) {
11
- const i = Math.floor(Math.random() * m--);
12
-
13
- [arr[m], arr[i]] = [arr[i], arr[m]];
14
- }
15
-
16
- return arr;
17
- }
@@ -1,17 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import shuffle from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Randomizes the order of the values of an array, returning a new array
9
- * @example
10
- * const foo = [1, 2, 3];
11
- * foo.shuffle(); // [2,3,1], foo = [1,2,3]
12
- */
13
- shuffle(): T[];
14
- }
15
- }
16
-
17
- addPrototype(Array, "shuffle", shuffle);
@@ -1,10 +0,0 @@
1
- /**
2
- * Skips the array
3
- * @param arr
4
- * @param [offset]
5
- * @example
6
- * skip([2, 1, 2, 5], 1); // [1,2,5]
7
- */
8
- export default function skip<T>(arr: T[], offset: number): T[] {
9
- return arr.slice(offset);
10
- }
@@ -1,27 +0,0 @@
1
- import { addPrototype } from "../../utils.js";
2
- import skip from "./index.js";
3
-
4
- declare global {
5
- interface Array<T> {
6
-
7
- /**
8
- * Skips the array
9
- * @alias skip
10
- * @param [offset]
11
- * @example
12
- * [2, 1, 2, 5].offset(1); // [1,2,5]
13
- */
14
- offset(offset: number): T[];
15
-
16
- /**
17
- * Skips the array
18
- * @alias offset
19
- * @param [offset]
20
- * @example
21
- * [2, 1, 2, 5].skip(1); // [1,2,5]
22
- */
23
- skip(offset: number): T[];
24
- }
25
- }
26
-
27
- addPrototype(Array, ["skip", "offset"], skip);