es-toolkit 0.0.1

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 (303) hide show
  1. package/.vscode/extensions.json +7 -0
  2. package/.vscode/settings.json +10 -0
  3. package/.yarn/sdks/eslint/bin/eslint.js +20 -0
  4. package/.yarn/sdks/eslint/lib/api.js +20 -0
  5. package/.yarn/sdks/eslint/lib/unsupported-api.js +20 -0
  6. package/.yarn/sdks/eslint/package.json +14 -0
  7. package/.yarn/sdks/integrations.yml +5 -0
  8. package/.yarn/sdks/prettier/bin/prettier.cjs +20 -0
  9. package/.yarn/sdks/prettier/index.cjs +20 -0
  10. package/.yarn/sdks/prettier/package.json +7 -0
  11. package/.yarn/sdks/typescript/bin/tsc +20 -0
  12. package/.yarn/sdks/typescript/bin/tsserver +20 -0
  13. package/.yarn/sdks/typescript/lib/tsc.js +20 -0
  14. package/.yarn/sdks/typescript/lib/tsserver.js +225 -0
  15. package/.yarn/sdks/typescript/lib/tsserverlibrary.js +225 -0
  16. package/.yarn/sdks/typescript/lib/typescript.js +20 -0
  17. package/.yarn/sdks/typescript/package.json +10 -0
  18. package/babel.config.js +6 -0
  19. package/coverage/.tmp/coverage-0.json +1 -0
  20. package/coverage/.tmp/coverage-1.json +1 -0
  21. package/coverage/.tmp/coverage-10.json +1 -0
  22. package/coverage/.tmp/coverage-11.json +1 -0
  23. package/coverage/.tmp/coverage-12.json +1 -0
  24. package/coverage/.tmp/coverage-13.json +1 -0
  25. package/coverage/.tmp/coverage-14.json +1 -0
  26. package/coverage/.tmp/coverage-15.json +1 -0
  27. package/coverage/.tmp/coverage-16.json +1 -0
  28. package/coverage/.tmp/coverage-17.json +1 -0
  29. package/coverage/.tmp/coverage-18.json +1 -0
  30. package/coverage/.tmp/coverage-19.json +1 -0
  31. package/coverage/.tmp/coverage-2.json +1 -0
  32. package/coverage/.tmp/coverage-20.json +1 -0
  33. package/coverage/.tmp/coverage-21.json +1 -0
  34. package/coverage/.tmp/coverage-22.json +1 -0
  35. package/coverage/.tmp/coverage-23.json +1 -0
  36. package/coverage/.tmp/coverage-24.json +1 -0
  37. package/coverage/.tmp/coverage-25.json +1 -0
  38. package/coverage/.tmp/coverage-26.json +1 -0
  39. package/coverage/.tmp/coverage-27.json +1 -0
  40. package/coverage/.tmp/coverage-28.json +1 -0
  41. package/coverage/.tmp/coverage-29.json +1 -0
  42. package/coverage/.tmp/coverage-3.json +1 -0
  43. package/coverage/.tmp/coverage-30.json +1 -0
  44. package/coverage/.tmp/coverage-4.json +1 -0
  45. package/coverage/.tmp/coverage-5.json +1 -0
  46. package/coverage/.tmp/coverage-6.json +1 -0
  47. package/coverage/.tmp/coverage-7.json +1 -0
  48. package/coverage/.tmp/coverage-8.json +1 -0
  49. package/coverage/.tmp/coverage-9.json +1 -0
  50. package/dist/array/chunk.d.ts +8 -0
  51. package/dist/array/chunk.spec.d.ts +1 -0
  52. package/dist/array/difference.d.ts +7 -0
  53. package/dist/array/difference.spec.d.ts +1 -0
  54. package/dist/array/differenceBy.d.ts +8 -0
  55. package/dist/array/differenceBy.spec.d.ts +1 -0
  56. package/dist/array/differenceWith.d.ts +8 -0
  57. package/dist/array/differenceWith.spec.d.ts +1 -0
  58. package/dist/array/drop.d.ts +7 -0
  59. package/dist/array/drop.spec.d.ts +1 -0
  60. package/dist/array/dropRight.d.ts +7 -0
  61. package/dist/array/dropRight.spec.d.ts +1 -0
  62. package/dist/array/dropRightWhile.d.ts +7 -0
  63. package/dist/array/dropRightWhile.spec.d.ts +1 -0
  64. package/dist/array/dropWhile.d.ts +7 -0
  65. package/dist/array/dropWhile.spec.d.ts +1 -0
  66. package/dist/array/groupBy.d.ts +1 -0
  67. package/dist/array/index.d.ts +30 -0
  68. package/dist/array/index.js +778 -0
  69. package/dist/array/intersection.d.ts +11 -0
  70. package/dist/array/intersection.spec.d.ts +1 -0
  71. package/dist/array/intersectionBy.d.ts +12 -0
  72. package/dist/array/intersectionBy.spec.d.ts +1 -0
  73. package/dist/array/intersectionWith.d.ts +12 -0
  74. package/dist/array/intersectionWith.spec.d.ts +1 -0
  75. package/dist/array/partition.d.ts +8 -0
  76. package/dist/array/partition.spec.d.ts +1 -0
  77. package/dist/array/sample.d.ts +7 -0
  78. package/dist/array/sample.spec.d.ts +1 -0
  79. package/dist/array/shuffle.d.ts +7 -0
  80. package/dist/array/shuffle.spec.d.ts +1 -0
  81. package/dist/array/take.d.ts +23 -0
  82. package/dist/array/take.spec.d.ts +1 -0
  83. package/dist/array/takeRight.d.ts +23 -0
  84. package/dist/array/takeRight.spec.d.ts +1 -0
  85. package/dist/array/takeRightWhile.d.ts +18 -0
  86. package/dist/array/takeRightWhile.spec.d.ts +1 -0
  87. package/dist/array/takeWhile.d.ts +19 -0
  88. package/dist/array/takeWhile.spec.d.ts +1 -0
  89. package/dist/array/union.d.ts +10 -0
  90. package/dist/array/union.spec.d.ts +1 -0
  91. package/dist/array/unionBy.d.ts +24 -0
  92. package/dist/array/unionBy.spec.d.ts +1 -0
  93. package/dist/array/unionWith.d.ts +14 -0
  94. package/dist/array/unionWith.spec.d.ts +1 -0
  95. package/dist/array/uniq.d.ts +14 -0
  96. package/dist/array/uniq.spec.d.ts +1 -0
  97. package/dist/array/uniqBy.d.ts +12 -0
  98. package/dist/array/uniqBy.spec.d.ts +1 -0
  99. package/dist/array/uniqWith.d.ts +12 -0
  100. package/dist/array/uniqWith.spec.d.ts +1 -0
  101. package/dist/array/xor.d.ts +19 -0
  102. package/dist/array/xor.spec.d.ts +1 -0
  103. package/dist/array/xorBy.d.ts +20 -0
  104. package/dist/array/xorBy.spec.d.ts +1 -0
  105. package/dist/array/xorWith.d.ts +19 -0
  106. package/dist/array/xorWith.spec.d.ts +1 -0
  107. package/dist/array/zip.d.ts +13 -0
  108. package/dist/array/zip.spec.d.ts +1 -0
  109. package/dist/array/zipWith.d.ts +9 -0
  110. package/dist/array/zipWith.spec.d.ts +1 -0
  111. package/dist/function/debounce.d.ts +24 -0
  112. package/dist/function/debounce.spec.d.ts +1 -0
  113. package/dist/function/index.d.ts +3 -0
  114. package/dist/function/index.js +113 -0
  115. package/dist/function/once.d.ts +18 -0
  116. package/dist/function/once.spec.d.ts +1 -0
  117. package/dist/function/throttle.d.ts +26 -0
  118. package/dist/function/throttle.spec.d.ts +1 -0
  119. package/dist/index.d.ts +6 -0
  120. package/dist/index.js +1111 -0
  121. package/dist/math/clamp.d.ts +11 -0
  122. package/dist/math/clamp.spec.d.ts +1 -0
  123. package/dist/math/index.d.ts +3 -0
  124. package/dist/math/index.js +63 -0
  125. package/dist/math/round.d.ts +13 -0
  126. package/dist/math/round.spec.d.ts +1 -0
  127. package/dist/math/sum.d.ts +13 -0
  128. package/dist/math/sum.spec.d.ts +1 -0
  129. package/dist/object/index.d.ts +4 -0
  130. package/dist/object/index.js +176 -0
  131. package/dist/object/omit.d.ts +7 -0
  132. package/dist/object/omit.spec.d.ts +1 -0
  133. package/dist/object/omitBy.d.ts +1 -0
  134. package/dist/object/pick.d.ts +7 -0
  135. package/dist/object/pick.spec.d.ts +1 -0
  136. package/dist/object/pickBy.d.ts +1 -0
  137. package/dist/predicate/index.d.ts +4 -0
  138. package/dist/predicate/index.js +50 -0
  139. package/dist/predicate/isNil.d.ts +6 -0
  140. package/dist/predicate/isNil.spec.d.ts +1 -0
  141. package/dist/predicate/isNotNil.d.ts +12 -0
  142. package/dist/predicate/isNotNil.spec.d.ts +1 -0
  143. package/dist/predicate/isNull.d.ts +6 -0
  144. package/dist/predicate/isNull.spec.d.ts +1 -0
  145. package/dist/predicate/isUndefined.d.ts +6 -0
  146. package/dist/predicate/isUndefined.spec.d.ts +1 -0
  147. package/dist/promise/delay.d.ts +6 -0
  148. package/dist/promise/delay.spec.d.ts +1 -0
  149. package/dist/promise/index.d.ts +1 -0
  150. package/dist/promise/index.js +16 -0
  151. package/esm/_virtual/_rollupPluginBabelHelpers.mjs +163 -0
  152. package/esm/array/_virtual/_rollupPluginBabelHelpers.mjs +114 -0
  153. package/esm/array/chunk.mjs +35 -0
  154. package/esm/array/difference.mjs +13 -0
  155. package/esm/array/differenceBy.mjs +17 -0
  156. package/esm/array/differenceWith.mjs +16 -0
  157. package/esm/array/drop.mjs +11 -0
  158. package/esm/array/dropRight.mjs +11 -0
  159. package/esm/array/dropRightWhile.mjs +15 -0
  160. package/esm/array/dropWhile.mjs +14 -0
  161. package/esm/array/groupBy.mjs +5 -0
  162. package/esm/array/index.mjs +30 -0
  163. package/esm/array/intersection.mjs +17 -0
  164. package/esm/array/intersectionBy.mjs +21 -0
  165. package/esm/array/intersectionWith.mjs +20 -0
  166. package/esm/array/partition.mjs +32 -0
  167. package/esm/array/sample.mjs +12 -0
  168. package/esm/array/shuffle.mjs +20 -0
  169. package/esm/array/take.mjs +27 -0
  170. package/esm/array/takeRight.mjs +30 -0
  171. package/esm/array/takeRightWhile.mjs +27 -0
  172. package/esm/array/takeWhile.mjs +41 -0
  173. package/esm/array/union.mjs +19 -0
  174. package/esm/array/unionBy.mjs +38 -0
  175. package/esm/array/unionWith.mjs +21 -0
  176. package/esm/array/uniq.mjs +18 -0
  177. package/esm/array/uniqBy.mjs +20 -0
  178. package/esm/array/uniqWith.mjs +39 -0
  179. package/esm/array/xor.mjs +27 -0
  180. package/esm/array/xorBy.mjs +30 -0
  181. package/esm/array/xorWith.mjs +29 -0
  182. package/esm/array/zip.mjs +40 -0
  183. package/esm/array/zipWith.mjs +31 -0
  184. package/esm/function/debounce.mjs +39 -0
  185. package/esm/function/index.mjs +3 -0
  186. package/esm/function/once.mjs +32 -0
  187. package/esm/function/throttle.mjs +38 -0
  188. package/esm/index.mjs +45 -0
  189. package/esm/math/clamp.mjs +18 -0
  190. package/esm/math/index.mjs +3 -0
  191. package/esm/math/round.mjs +19 -0
  192. package/esm/math/sum.mjs +22 -0
  193. package/esm/object/_virtual/_rollupPluginBabelHelpers.mjs +115 -0
  194. package/esm/object/index.mjs +4 -0
  195. package/esm/object/omit.mjs +26 -0
  196. package/esm/object/omitBy.mjs +5 -0
  197. package/esm/object/pick.mjs +26 -0
  198. package/esm/object/pickBy.mjs +5 -0
  199. package/esm/predicate/index.mjs +4 -0
  200. package/esm/predicate/isNil.mjs +10 -0
  201. package/esm/predicate/isNotNil.mjs +16 -0
  202. package/esm/predicate/isNull.mjs +10 -0
  203. package/esm/predicate/isUndefined.mjs +10 -0
  204. package/esm/promise/delay.mjs +12 -0
  205. package/esm/promise/index.mjs +1 -0
  206. package/package.json +94 -0
  207. package/rollup.config.js +5 -0
  208. package/src/array/chunk.spec.ts +27 -0
  209. package/src/array/chunk.ts +24 -0
  210. package/src/array/difference.spec.ts +10 -0
  211. package/src/array/difference.ts +11 -0
  212. package/src/array/differenceBy.spec.ts +9 -0
  213. package/src/array/differenceBy.ts +14 -0
  214. package/src/array/differenceWith.spec.ts +8 -0
  215. package/src/array/differenceWith.ts +14 -0
  216. package/src/array/drop.spec.ts +9 -0
  217. package/src/array/drop.ts +9 -0
  218. package/src/array/dropRight.spec.ts +9 -0
  219. package/src/array/dropRight.ts +9 -0
  220. package/src/array/dropRightWhile.spec.ts +16 -0
  221. package/src/array/dropRightWhile.ts +13 -0
  222. package/src/array/dropWhile.spec.ts +14 -0
  223. package/src/array/dropWhile.ts +10 -0
  224. package/src/array/groupBy.ts +3 -0
  225. package/src/array/index.ts +30 -0
  226. package/src/array/intersection.spec.ts +11 -0
  227. package/src/array/intersection.ts +15 -0
  228. package/src/array/intersectionBy.spec.ts +9 -0
  229. package/src/array/intersectionBy.ts +18 -0
  230. package/src/array/intersectionWith.spec.ts +9 -0
  231. package/src/array/intersectionWith.ts +18 -0
  232. package/src/array/partition.spec.ts +23 -0
  233. package/src/array/partition.ts +21 -0
  234. package/src/array/sample.spec.ts +11 -0
  235. package/src/array/sample.ts +10 -0
  236. package/src/array/shuffle.spec.ts +11 -0
  237. package/src/array/shuffle.ts +18 -0
  238. package/src/array/take.spec.ts +25 -0
  239. package/src/array/take.ts +25 -0
  240. package/src/array/takeRight.spec.ts +25 -0
  241. package/src/array/takeRight.ts +29 -0
  242. package/src/array/takeRightWhile.spec.ts +16 -0
  243. package/src/array/takeRightWhile.ts +26 -0
  244. package/src/array/takeWhile.spec.ts +34 -0
  245. package/src/array/takeWhile.ts +31 -0
  246. package/src/array/union.spec.ts +10 -0
  247. package/src/array/union.ts +14 -0
  248. package/src/array/unionBy.spec.ts +12 -0
  249. package/src/array/unionBy.ts +35 -0
  250. package/src/array/unionWith.spec.ts +23 -0
  251. package/src/array/unionWith.ts +18 -0
  252. package/src/array/uniq.spec.ts +8 -0
  253. package/src/array/uniq.ts +16 -0
  254. package/src/array/uniqBy.spec.ts +8 -0
  255. package/src/array/uniqBy.ts +17 -0
  256. package/src/array/uniqWith.spec.ts +16 -0
  257. package/src/array/uniqWith.ts +29 -0
  258. package/src/array/xor.spec.ts +13 -0
  259. package/src/array/xor.ts +25 -0
  260. package/src/array/xorBy.spec.ts +16 -0
  261. package/src/array/xorBy.ts +29 -0
  262. package/src/array/xorWith.spec.ts +16 -0
  263. package/src/array/xorWith.ts +28 -0
  264. package/src/array/zip.spec.ts +14 -0
  265. package/src/array/zip.ts +34 -0
  266. package/src/array/zipWith.spec.ts +13 -0
  267. package/src/array/zipWith.ts +23 -0
  268. package/src/function/debounce.spec.ts +76 -0
  269. package/src/function/debounce.ts +42 -0
  270. package/src/function/index.ts +3 -0
  271. package/src/function/once.spec.ts +31 -0
  272. package/src/function/once.ts +34 -0
  273. package/src/function/throttle.spec.ts +32 -0
  274. package/src/function/throttle.ts +39 -0
  275. package/src/index.ts +6 -0
  276. package/src/math/clamp.spec.ts +18 -0
  277. package/src/math/clamp.ts +17 -0
  278. package/src/math/index.ts +3 -0
  279. package/src/math/round.spec.ts +53 -0
  280. package/src/math/round.ts +16 -0
  281. package/src/math/sum.spec.ts +29 -0
  282. package/src/math/sum.ts +17 -0
  283. package/src/object/index.ts +4 -0
  284. package/src/object/omit.spec.ts +10 -0
  285. package/src/object/omit.ts +15 -0
  286. package/src/object/omitBy.ts +3 -0
  287. package/src/object/pick.spec.ts +10 -0
  288. package/src/object/pick.ts +15 -0
  289. package/src/object/pickBy.ts +3 -0
  290. package/src/predicate/index.ts +4 -0
  291. package/src/predicate/isNil.spec.ts +23 -0
  292. package/src/predicate/isNil.ts +8 -0
  293. package/src/predicate/isNotNil.spec.ts +29 -0
  294. package/src/predicate/isNotNil.ts +14 -0
  295. package/src/predicate/isNull.spec.ts +23 -0
  296. package/src/predicate/isNull.ts +8 -0
  297. package/src/predicate/isUndefined.spec.ts +23 -0
  298. package/src/predicate/isUndefined.ts +8 -0
  299. package/src/promise/delay.spec.ts +13 -0
  300. package/src/promise/delay.ts +10 -0
  301. package/src/promise/index.ts +1 -0
  302. package/tsconfig.json +12 -0
  303. package/vitest.config.mts +13 -0
@@ -0,0 +1,778 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function _iterableToArrayLimit(r, l) {
6
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (null != t) {
8
+ var e,
9
+ n,
10
+ i,
11
+ u,
12
+ a = [],
13
+ f = !0,
14
+ o = !1;
15
+ try {
16
+ if (i = (t = t.call(r)).next, 0 === l) {
17
+ if (Object(t) !== t) return;
18
+ f = !1;
19
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
20
+ } catch (r) {
21
+ o = !0, n = r;
22
+ } finally {
23
+ try {
24
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
25
+ } finally {
26
+ if (o) throw n;
27
+ }
28
+ }
29
+ return a;
30
+ }
31
+ }
32
+ function _slicedToArray(arr, i) {
33
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
34
+ }
35
+ function _toConsumableArray(arr) {
36
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
37
+ }
38
+ function _arrayWithoutHoles(arr) {
39
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
40
+ }
41
+ function _arrayWithHoles(arr) {
42
+ if (Array.isArray(arr)) return arr;
43
+ }
44
+ function _iterableToArray(iter) {
45
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
46
+ }
47
+ function _unsupportedIterableToArray(o, minLen) {
48
+ if (!o) return;
49
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
50
+ var n = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (n === "Object" && o.constructor) n = o.constructor.name;
52
+ if (n === "Map" || n === "Set") return Array.from(o);
53
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
54
+ }
55
+ function _arrayLikeToArray(arr, len) {
56
+ if (len == null || len > arr.length) len = arr.length;
57
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
58
+ return arr2;
59
+ }
60
+ function _nonIterableSpread() {
61
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
62
+ }
63
+ function _nonIterableRest() {
64
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
65
+ }
66
+ function _createForOfIteratorHelper(o, allowArrayLike) {
67
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
68
+ if (!it) {
69
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
70
+ if (it) o = it;
71
+ var i = 0;
72
+ var F = function () {};
73
+ return {
74
+ s: F,
75
+ n: function () {
76
+ if (i >= o.length) return {
77
+ done: true
78
+ };
79
+ return {
80
+ done: false,
81
+ value: o[i++]
82
+ };
83
+ },
84
+ e: function (e) {
85
+ throw e;
86
+ },
87
+ f: F
88
+ };
89
+ }
90
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
91
+ }
92
+ var normalCompletion = true,
93
+ didErr = false,
94
+ err;
95
+ return {
96
+ s: function () {
97
+ it = it.call(o);
98
+ },
99
+ n: function () {
100
+ var step = it.next();
101
+ normalCompletion = step.done;
102
+ return step;
103
+ },
104
+ e: function (e) {
105
+ didErr = true;
106
+ err = e;
107
+ },
108
+ f: function () {
109
+ try {
110
+ if (!normalCompletion && it.return != null) it.return();
111
+ } finally {
112
+ if (didErr) throw err;
113
+ }
114
+ }
115
+ };
116
+ }
117
+
118
+ /**
119
+ * @name chunk
120
+ * Separate an array into smaller arrays of length `size`.
121
+ * If the array cannot be separated in equal size, the final sub-array will have the remaining elements.
122
+ * @param arr The array to chunk
123
+ * @param size The size of smaller arrays
124
+ */
125
+ function chunk(arr, size) {
126
+ if (!Number.isInteger(size) || size <= 0) {
127
+ throw new Error("Size must be an integer greater than zero.");
128
+ }
129
+ var result = [];
130
+ var _iterator = _createForOfIteratorHelper(arr.entries()),
131
+ _step;
132
+ try {
133
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
134
+ var _step$value = _slicedToArray(_step.value, 2),
135
+ index = _step$value[0],
136
+ item = _step$value[1];
137
+ if (index % size === 0) {
138
+ result.push([]);
139
+ }
140
+ result[result.length - 1].push(item);
141
+ }
142
+ } catch (err) {
143
+ _iterator.e(err);
144
+ } finally {
145
+ _iterator.f();
146
+ }
147
+ return result;
148
+ }
149
+
150
+ /**
151
+ * @name difference
152
+ * Returns the difference of two arrays.
153
+ * @param firstArr The array to get the difference from
154
+ * @param secondArr The elements to exclude from `firstArr`
155
+ */
156
+ function difference(firstArr, secondArr) {
157
+ return firstArr.filter(function (item) {
158
+ return !secondArr.includes(item);
159
+ });
160
+ }
161
+
162
+ /**
163
+ * @name differenceBy
164
+ * Returns the difference of two arrays. The identity of two elements is calculated after the elements are mapped with `mapper`.
165
+ * @param firstArr The array to get the difference from
166
+ * @param secondArr The elements to exclude from `firstArr`
167
+ * @param mapper The function to map the elements when calculating the difference
168
+ */
169
+ function differenceBy(firstArr, secondArr, mapper) {
170
+ var mappedSecondArr = secondArr.map(function (item) {
171
+ return mapper(item);
172
+ });
173
+ return firstArr.filter(function (item) {
174
+ return !mappedSecondArr.includes(mapper(item));
175
+ });
176
+ }
177
+
178
+ /**
179
+ * @name differenceWith
180
+ * Returns the difference of two arrays. The identity of two elements is calculated with the function `areItemsEqual`.
181
+ * @param firstArr The array to get the difference from
182
+ * @param secondArr The elements to exclude from `firstArr`
183
+ * @param areItemsEqual The function to determine whether two items are equal
184
+ */
185
+ function differenceWith(firstArr, secondArr, areItemsEqual) {
186
+ return firstArr.filter(function (firstItem) {
187
+ return secondArr.every(function (secondItem) {
188
+ return !areItemsEqual(firstItem, secondItem);
189
+ });
190
+ });
191
+ }
192
+
193
+ /**
194
+ * @name drop
195
+ * Drop some elements from an array from the beginning. This function returns a new array.
196
+ * @param arr The element to drop items from the beginning
197
+ * @param itemsCount The amount of elements to drop
198
+ */
199
+ function drop(arr, itemsCount) {
200
+ return arr.slice(itemsCount);
201
+ }
202
+
203
+ /**
204
+ * @name dropRight
205
+ * Drop some elements from an array from the end. This function returns a new array.
206
+ * @param arr The element to drop items from the end
207
+ * @param itemsCount The amount of elements to drop
208
+ */
209
+ function dropRight(arr, itemsCount) {
210
+ return arr.slice(0, -itemsCount);
211
+ }
212
+
213
+ /**
214
+ * @name dropWhile
215
+ * Drop some elements from an array from the beginning, until `predicate` returns false.
216
+ * @param arr The element to drop items from the beginning
217
+ * @param canContinueDropping The predicate to check if the function can continue dropping elements.
218
+ */
219
+ function dropWhile(arr, canContinueDropping) {
220
+ var dropEndIndex = arr.findIndex(function (item) {
221
+ return !canContinueDropping(item);
222
+ });
223
+ return arr.slice(dropEndIndex);
224
+ }
225
+
226
+ /**
227
+ * @name dropRightWhile
228
+ * Drop some elements from an array from the end, until `predicate` returns false.
229
+ * @param arr The element to drop items from the end
230
+ * @param canContinueDropping The predicate to check if the function can continue dropping elements.
231
+ */
232
+ function dropRightWhile(arr, canContinueDropping) {
233
+ var reversed = arr.slice().reverse();
234
+ var dropped = dropWhile(reversed, canContinueDropping);
235
+ return dropped.slice().reverse();
236
+ }
237
+
238
+ function groupBy() {
239
+ throw new Error('Not implemented');
240
+ }
241
+
242
+ /**
243
+ * @name intersection
244
+ * @description
245
+ * Returns the intersection of two arrays.
246
+ * @param firstArr The first array to get the intersection
247
+ * @param secondArr The second array to get the intersection
248
+ * @example
249
+ * intersection([1, 2], [1, 3]) === [1]
250
+ * intersection([1, 2, 3], [2, 3, 4]) === [2, 3]
251
+ */
252
+ function intersection(firstArr, secondArr) {
253
+ return firstArr.filter(function (item) {
254
+ return secondArr.includes(item);
255
+ });
256
+ }
257
+
258
+ /**
259
+ * @name intersectionBy
260
+ * @description
261
+ * Returns the intersection of two arrays. The identity of two elements is calculated after the elements are mapped with `mapper`.
262
+ * @param firstArr The first array to get the intersection
263
+ * @param secondArr The second array to get the intersection
264
+ * @param mapper The function to map the elements when calculating the intersection
265
+ * @example
266
+ * intersectionBy([1.2, 2.1], [1.4, 3.1], Math.floor) === [1.2]
267
+ * intersectionBy([{ foo: 1 }, { foo: 2 }], [{ foo: 1 }, { foo: 3 }], x => x.foo) === [{ foo: 1 }]
268
+ */
269
+ function intersectionBy(firstArr, secondArr, mapper) {
270
+ var mappedSecondArr = secondArr.map(function (x) {
271
+ return mapper(x);
272
+ });
273
+ return firstArr.filter(function (item) {
274
+ return mappedSecondArr.includes(mapper(item));
275
+ });
276
+ }
277
+
278
+ /**
279
+ * @name intersectionWith
280
+ * @description
281
+ * Returns the intersection of two arrays. The identity of two elements is compared with `areItemsEqual`.
282
+ * @param firstArr The first array to get the intersection
283
+ * @param secondArr The second array to get the intersection
284
+ * @param areItemsEqual The function to compare the identity of two elements
285
+ * @example
286
+ * intersectionWith([1.2, 2.1], [1.4, 3.1], (x, y) => Math.floor(x) === Math.floor(y)) === [1.2]
287
+ * intersectionWith([{ foo: 1 }, { foo: 2 }], [{ foo: 1 }, { foo: 3 }], (x, y) => x.foo === y.foo) === [{ foo: 1 }]
288
+ */
289
+ function intersectionWith(firstArr, secondArr, areItemsEqual) {
290
+ return firstArr.filter(function (firstItem) {
291
+ return secondArr.some(function (secondItem) {
292
+ return areItemsEqual(firstItem, secondItem);
293
+ });
294
+ });
295
+ }
296
+
297
+ /**
298
+ * @name partition
299
+ * @description
300
+ * Creates two arrays: the first array includes items for which isInTruthy returns true, and the second array includes items for which isInTruthy returns false.
301
+ * @param arr The array to split into two arrays
302
+ * @param isInTruthy The predicate to tell whether an item is included in the first array
303
+ */
304
+ function partition(arr, isInTruthy) {
305
+ var truthy = [];
306
+ var falsy = [];
307
+ var _iterator = _createForOfIteratorHelper(arr),
308
+ _step;
309
+ try {
310
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
311
+ var item = _step.value;
312
+ if (isInTruthy(item)) {
313
+ truthy.push(item);
314
+ } else {
315
+ falsy.push(item);
316
+ }
317
+ }
318
+ } catch (err) {
319
+ _iterator.e(err);
320
+ } finally {
321
+ _iterator.f();
322
+ }
323
+ return [truthy, falsy];
324
+ }
325
+
326
+ /**
327
+ * @name sample
328
+ * @description
329
+ * Returns a random element from an array.
330
+ * @param arr The element to get a random element
331
+ */
332
+ function sample(arr) {
333
+ var randomIndex = Math.floor(Math.random() * arr.length);
334
+ return arr[randomIndex];
335
+ }
336
+
337
+ /**
338
+ * @name shuffle
339
+ * @description
340
+ * Randomize the order of an array.
341
+ * @param arr The array to shuffle
342
+ */
343
+ function shuffle(arr) {
344
+ /**
345
+ * https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm
346
+ */
347
+ for (var i = arr.length - 1; i >= 1; i--) {
348
+ var j = Math.floor(Math.random() * i);
349
+ var _ref = [arr[j], arr[i]];
350
+ arr[i] = _ref[0];
351
+ arr[j] = _ref[1];
352
+ }
353
+ return arr;
354
+ }
355
+
356
+ /**
357
+ * Returns a new array containing the first `count` elements from the input array `arr`.
358
+ * If `count` is greater than the length of `arr`, the entire array is returned.
359
+ *
360
+ * @template T - Type of elements in the input array.
361
+ *
362
+ * @param {T[]} arr - The array to take elements from.
363
+ * @param {number} count - The number of elements to take.
364
+ * @returns {T[]} A new array containing the first `count` elements from `arr`.
365
+ *
366
+ * @example
367
+ * // Returns [1, 2, 3]
368
+ * take([1, 2, 3, 4, 5], 3);
369
+ *
370
+ * @example
371
+ * // Returns ['a', 'b']
372
+ * take(['a', 'b', 'c'], 2);
373
+ *
374
+ * @example
375
+ * // Returns [1, 2, 3]
376
+ * take([1, 2, 3], 5);
377
+ */
378
+ function take(arr, count) {
379
+ return arr.slice(0, count);
380
+ }
381
+
382
+ /**
383
+ * Returns a new array containing the last `count` elements from the input array `arr`.
384
+ * If `count` is greater than the length of `arr`, the entire array is returned.
385
+ *
386
+ * @template T - Type of elements in the input array.
387
+ *
388
+ * @param {T[]} arr - The array to take elements from.
389
+ * @param {number} count - The number of elements to take.
390
+ * @returns {T[]} A new array containing the last `count` elements from `arr`.
391
+ *
392
+ * @example
393
+ * // Returns [4, 5]
394
+ * takeRight([1, 2, 3, 4, 5], 2);
395
+ *
396
+ * @example
397
+ * // Returns ['b', 'c']
398
+ * takeRight(['a', 'b', 'c'], 2);
399
+ *
400
+ * @example
401
+ * // Returns [1, 2, 3]
402
+ * takeRight([1, 2, 3], 5);
403
+ */
404
+ function takeRight(arr, count) {
405
+ if (count === 0) {
406
+ return [];
407
+ }
408
+ return arr.slice(-count);
409
+ }
410
+
411
+ /**
412
+ * Takes elements from the end of the array while the predicate function returns `true`.
413
+ *
414
+ * @template T - Type of elements in the input array.
415
+ *
416
+ * @param {T[]} arr - The array to take elements from.
417
+ * @param {function(T): boolean} shouldContinueTaking - The function invoked per element.
418
+ * @returns {T[]} A new array containing the elements taken from the end while the predicate returns `true`.
419
+ *
420
+ * @example
421
+ * // Returns [3, 2, 1]
422
+ * takeRightWhile([5, 4, 3, 2, 1], n => n < 4);
423
+ *
424
+ * @example
425
+ * // Returns []
426
+ * takeRightWhile([1, 2, 3], n => n > 3);
427
+ */
428
+ function takeRightWhile(arr, shouldContinueTaking) {
429
+ for (var i = arr.length - 1; i >= 0; i--) {
430
+ if (!shouldContinueTaking(arr[i])) {
431
+ return arr.slice(i + 1);
432
+ }
433
+ }
434
+ return arr.slice();
435
+ }
436
+
437
+ /**
438
+ * Returns a new array containing the leading elements of the provided array
439
+ * that satisfy the provided predicate function. It stops taking elements as soon
440
+ * as an element does not satisfy the predicate.
441
+ *
442
+ * @template T - The type of elements in the array.
443
+ * @param {T[]} arr - The array to process.
444
+ * @param {(element: T) => boolean} shouldContinueTaking - The predicate function that is called with each element. Elements are included in the result as long as this function returns true.
445
+ * @returns {T[]} A new array containing the leading elements that satisfy the predicate.
446
+ *
447
+ * @example
448
+ * // Returns [1, 2]
449
+ * takeWhile([1, 2, 3, 4], x => x < 3);
450
+ *
451
+ * @example
452
+ * // Returns []
453
+ * takeWhile([1, 2, 3, 4], x => x > 3);
454
+ */
455
+ function takeWhile(arr, shouldContinueTaking) {
456
+ var result = [];
457
+ var _iterator = _createForOfIteratorHelper(arr),
458
+ _step;
459
+ try {
460
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
461
+ var item = _step.value;
462
+ if (!shouldContinueTaking(item)) {
463
+ break;
464
+ }
465
+ result.push(item);
466
+ }
467
+ } catch (err) {
468
+ _iterator.e(err);
469
+ } finally {
470
+ _iterator.f();
471
+ }
472
+ return result;
473
+ }
474
+
475
+ /**
476
+ * @name uniq
477
+ * @description
478
+ * `uniq` removes duplicated elements from the array given as an argument.
479
+ *
480
+ * It filters out elements with the same value, so duplicates of data types like Objects are not checked.
481
+ *
482
+ * @example
483
+ * ```ts
484
+ * uniq([1, 1, 2, 3, 5, 5, 7, 'foo', 'bar', 'bar']);
485
+ * // [1, 2, 3, 5, 7, 'foo', 'bar']
486
+ * ```
487
+ */
488
+ function uniq(arr) {
489
+ return Array.from(new Set(arr));
490
+ }
491
+
492
+ /**
493
+ * `union` function returns the union of the arrays passed as arguments.
494
+ *
495
+ * @example
496
+ * ```ts
497
+ * union([2], [1, 2]);
498
+ * // [2, 1]
499
+ * ```
500
+ */
501
+ function union() {
502
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
503
+ args[_key] = arguments[_key];
504
+ }
505
+ return uniq(args.flat());
506
+ }
507
+
508
+ /**
509
+ * Creates an array of unique values, in order, from all given arrays using a provided mapping function to determine equality.
510
+ *
511
+ * @template T - Type of elements in the input arrays.
512
+ * @template U - Type of the values returned by the mapping function.
513
+ *
514
+ * @param {T[]} arr1 - The first array.
515
+ * @param {T[]} arr2 - The second array.
516
+ * @param {function(item: T): U} mapper - The function to map array elements to comparison values.
517
+ * @returns {T[]} A new array containing the union of unique elements from `arr1` and `arr2`, based on the values returned by the mapping function.
518
+ *
519
+ * @example
520
+ * // Custom mapping function for numbers (modulo comparison)
521
+ * const moduloMapper = (x) => x % 3;
522
+ * unionBy([1, 2, 3], [4, 5, 6], moduloMapper);
523
+ * // Returns [1, 2, 3]
524
+ *
525
+ * @example
526
+ * // Custom mapping function for objects with an 'id' property
527
+ * const idMapper = (obj) => obj.id;
528
+ * unionBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);
529
+ * // Returns [{ id: 1 }, { id: 2 }, { id: 3 }]
530
+ */
531
+ function unionBy(arr1, arr2, mapper) {
532
+ var map = new Map();
533
+ for (var _i = 0, _arr = [].concat(_toConsumableArray(arr1), _toConsumableArray(arr2)); _i < _arr.length; _i++) {
534
+ var item = _arr[_i];
535
+ var key = mapper(item);
536
+ if (!map.has(key)) {
537
+ map.set(key, item);
538
+ }
539
+ }
540
+ return _toConsumableArray(map.values());
541
+ }
542
+
543
+ /**
544
+ * The `uniqWith` function takes an array as its first argument and a 'comparator' function as the second.
545
+ *
546
+ * It evaluates the elements of the array using the comparator function, and if true is returned, it considers those elements as duplicates and removes them.
547
+ *
548
+ * @example
549
+ * ```ts
550
+ * uniqWith([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], (a, b) => );
551
+ * // [1, 2, 3, 5, 7]
552
+ * ```
553
+ */
554
+ function uniqWith(arr, areItemsEqual) {
555
+ var result = [];
556
+ var _iterator = _createForOfIteratorHelper(arr),
557
+ _step;
558
+ try {
559
+ var _loop = function _loop() {
560
+ var item = _step.value;
561
+ var isUniq = result.every(function (v) {
562
+ return !areItemsEqual(v, item);
563
+ });
564
+ if (isUniq) {
565
+ result.push(item);
566
+ }
567
+ };
568
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
569
+ _loop();
570
+ }
571
+ } catch (err) {
572
+ _iterator.e(err);
573
+ } finally {
574
+ _iterator.f();
575
+ }
576
+ return result;
577
+ }
578
+
579
+ /**
580
+ * `unionWith` function returns the union of multiple arrays passed as arguments. During this process, it removes any duplicated elements.
581
+ *
582
+ * @example
583
+ * ```ts
584
+ * unionWith(
585
+ * [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
586
+ * [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }],
587
+ * (x, y) => x === y
588
+ * );
589
+ * // [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
590
+ * ```
591
+ */
592
+ function unionWith(arr1, arr2, areItemsEqual) {
593
+ return uniqWith([].concat(_toConsumableArray(arr1), _toConsumableArray(arr2)), areItemsEqual);
594
+ }
595
+
596
+ /**
597
+ * The `uniqBy` function takes an array as its first argument and a 'converter' function as the second. It maps the array elements using the converter function, then removes any duplicates.
598
+ *
599
+ * It filters out elements with the same value, meaning it does not check for duplicates in data types like Objects.
600
+ *
601
+ * @example
602
+ * ```ts
603
+ * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);
604
+ * // [1.2, 2.1, 3.3, 5.7, 7.19]
605
+ * ```
606
+ */
607
+ function uniqBy(arr, converter) {
608
+ return uniqWith(arr, function (item1, item2) {
609
+ return converter(item1) === converter(item2);
610
+ });
611
+ }
612
+
613
+ /**
614
+ * Computes the symmetric difference between two arrays. The symmetric difference is the set of elements
615
+ * which are in either of the arrays, but not in their intersection.
616
+ *
617
+ * @template T - Type of elements in the input arrays.
618
+ *
619
+ * @param {T[]} arr1 - The first array.
620
+ * @param {T[]} arr2 - The second array.
621
+ * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both.
622
+ *
623
+ * @example
624
+ * // Returns [1, 2, 5, 6]
625
+ * xor([1, 2, 3, 4], [3, 4, 5, 6]);
626
+ *
627
+ * @example
628
+ * // Returns ['a', 'c']
629
+ * xor(['a', 'b'], ['b', 'c']);
630
+ */
631
+ function xor(arr1, arr2) {
632
+ return difference(union(arr1, arr2), intersection(arr1, arr2));
633
+ }
634
+
635
+ /**
636
+ * Computes the symmetric difference between two arrays using a custom mapping function.
637
+ * The symmetric difference is the set of elements which are in either of the arrays,
638
+ * but not in their intersection, determined by the result of the mapping function.
639
+ *
640
+ * @template T - Type of elements in the input arrays.
641
+ * @template U - Type of the values returned by the mapping function.
642
+ *
643
+ * @param {T[]} arr1 - The first array.
644
+ * @param {T[]} arr2 - The second array.
645
+ * @param {function(item: T): U} mapper - The function to map array elements to comparison values.
646
+ * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both, based on the values returned by the mapping function.
647
+ *
648
+ * @example
649
+ * // Custom mapping function for objects with an 'id' property
650
+ * const idMapper = obj => obj.id;
651
+ * xorBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);
652
+ * // Returns [{ id: 1 }, { id: 3 }]
653
+ */
654
+ function xorBy(arr1, arr2, mapper) {
655
+ var union = unionBy(arr1, arr2, mapper);
656
+ var intersection = intersectionBy(arr1, arr2, mapper);
657
+ return differenceBy(union, intersection, mapper);
658
+ }
659
+
660
+ /**
661
+ * Computes the symmetric difference between two arrays using a custom equality function.
662
+ * The symmetric difference is the set of elements which are in either of the arrays,
663
+ * but not in their intersection.
664
+ *
665
+ * @template T - Type of elements in the input arrays.
666
+ *
667
+ * @param {T[]} arr1 - The first array.
668
+ * @param {T[]} arr2 - The second array.
669
+ * @param {(item1: T, item2: T) => boolean} areElementsEqual - The custom equality function to compare elements.
670
+ * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both, based on the custom equality function.
671
+ *
672
+ * @example
673
+ * // Custom equality function for objects with an 'id' property
674
+ * const areObjectsEqual = (a, b) => a.id === b.id;
675
+ * xorWith([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], areObjectsEqual);
676
+ * // Returns [{ id: 1 }, { id: 3 }]
677
+ */
678
+ function xorWith(arr1, arr2, areElementsEqual) {
679
+ var union = unionWith(arr1, arr2, areElementsEqual);
680
+ var intersection = intersectionWith(arr1, arr2, areElementsEqual);
681
+ return differenceWith(union, intersection, areElementsEqual);
682
+ }
683
+
684
+ /**
685
+ * Merges multiple arrays element-wise. Returns an array where each element is an array containing
686
+ * elements from the input arrays at the corresponding index.
687
+ *
688
+ * @param {T[]} arr1 - The first array to be zipped.
689
+ * @param {T[]} arr2 - The second array to be zipped.
690
+ * @param {T[]} arr3 - The third array to be zipped.
691
+ * @param {T[]} arr4 - The fourth array to be zipped.
692
+ */
693
+
694
+ function zip() {
695
+ var result = [];
696
+ for (var _len = arguments.length, arrs = new Array(_len), _key = 0; _key < _len; _key++) {
697
+ arrs[_key] = arguments[_key];
698
+ }
699
+ var maxIndex = Math.max.apply(Math, _toConsumableArray(arrs.map(function (x) {
700
+ return x.length;
701
+ })));
702
+ for (var i = 0; i < maxIndex; i++) {
703
+ var element = [];
704
+ var _iterator = _createForOfIteratorHelper(arrs),
705
+ _step;
706
+ try {
707
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
708
+ var arr = _step.value;
709
+ element.push(arr[i]);
710
+ }
711
+ } catch (err) {
712
+ _iterator.e(err);
713
+ } finally {
714
+ _iterator.f();
715
+ }
716
+ result.push(element);
717
+ }
718
+ return result;
719
+ }
720
+
721
+ /**
722
+ * Combines multiple arrays element-wise using a provided combining function.
723
+ * Returns an array where each element is the result of applying the combining function
724
+ * to the corresponding elements from the input arrays.
725
+ */
726
+
727
+ function zipWith(arr1) {
728
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
729
+ rest[_key - 1] = arguments[_key];
730
+ }
731
+ var arrs = [arr1].concat(_toConsumableArray(rest.slice(0, -1)));
732
+ var combine = rest[rest.length - 1];
733
+ var result = [];
734
+ var maxIndex = Math.max.apply(Math, _toConsumableArray(arrs.map(function (arr) {
735
+ return arr.length;
736
+ })));
737
+ var _loop = function _loop(i) {
738
+ var elements = arrs.map(function (arr) {
739
+ return arr[i];
740
+ });
741
+ result.push(combine.apply(void 0, _toConsumableArray(elements)));
742
+ };
743
+ for (var i = 0; i < maxIndex; i++) {
744
+ _loop(i);
745
+ }
746
+ return result;
747
+ }
748
+
749
+ exports.chunk = chunk;
750
+ exports.difference = difference;
751
+ exports.differenceBy = differenceBy;
752
+ exports.differenceWith = differenceWith;
753
+ exports.drop = drop;
754
+ exports.dropRight = dropRight;
755
+ exports.dropRightWhile = dropRightWhile;
756
+ exports.dropWhile = dropWhile;
757
+ exports.groupBy = groupBy;
758
+ exports.intersection = intersection;
759
+ exports.intersectionBy = intersectionBy;
760
+ exports.intersectionWith = intersectionWith;
761
+ exports.partition = partition;
762
+ exports.sample = sample;
763
+ exports.shuffle = shuffle;
764
+ exports.take = take;
765
+ exports.takeRight = takeRight;
766
+ exports.takeRightWhile = takeRightWhile;
767
+ exports.takeWhile = takeWhile;
768
+ exports.union = union;
769
+ exports.unionBy = unionBy;
770
+ exports.unionWith = unionWith;
771
+ exports.uniq = uniq;
772
+ exports.uniqBy = uniqBy;
773
+ exports.uniqWith = uniqWith;
774
+ exports.xor = xor;
775
+ exports.xorBy = xorBy;
776
+ exports.xorWith = xorWith;
777
+ exports.zip = zip;
778
+ exports.zipWith = zipWith;