rubico 2.7.3 → 2.7.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 (496) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +27 -30
  3. package/Transducer.d.ts +10 -10
  4. package/Transducer.js +65 -69
  5. package/__.js +1 -1
  6. package/_internal/FlatMappingIterator.js +1 -1
  7. package/_internal/MappingIterator.d.ts +1 -1
  8. package/_internal/MappingIterator.js +1 -1
  9. package/_internal/arrayFilter.js +6 -6
  10. package/_internal/arrayFilterIndexes.js +7 -7
  11. package/_internal/arrayFilterWithIndex.js +6 -6
  12. package/_internal/arrayFind.js +7 -7
  13. package/_internal/arrayFlatten.js +25 -25
  14. package/_internal/arrayForEach.d.ts +1 -1
  15. package/_internal/arrayForEach.js +1 -1
  16. package/_internal/arrayForEachSeries.js +1 -1
  17. package/_internal/arrayMap.d.ts +2 -2
  18. package/_internal/arrayMap.js +5 -5
  19. package/_internal/arrayMapPool.d.ts +1 -1
  20. package/_internal/arrayMapPool.js +10 -10
  21. package/_internal/arrayMapRate.js +4 -4
  22. package/_internal/arrayMapSeries.d.ts +1 -1
  23. package/_internal/arrayMapSeries.js +8 -8
  24. package/_internal/arrayMapWithIndex.js +4 -4
  25. package/_internal/arrayReduce.js +1 -1
  26. package/_internal/asyncGeneratorFunctionForEach.js +3 -3
  27. package/_internal/asyncGeneratorFunctionMap.js +3 -3
  28. package/_internal/asyncIteratorFind.js +3 -3
  29. package/_internal/asyncIteratorForEach.d.ts +1 -1
  30. package/_internal/asyncIteratorForEach.js +3 -3
  31. package/_internal/asyncIteratorForEachSeries.js +3 -3
  32. package/_internal/asyncIteratorToArray.js +2 -2
  33. package/_internal/copyDeep.js +12 -12
  34. package/_internal/funcAll.js +3 -3
  35. package/_internal/funcAllSeries.js +6 -6
  36. package/_internal/funcObjectAll.js +4 -4
  37. package/_internal/functionArrayAll.js +3 -3
  38. package/_internal/functionArrayAllSeries.js +6 -6
  39. package/_internal/functionObjectAll.js +4 -4
  40. package/_internal/generatorFunctionForEach.js +3 -3
  41. package/_internal/generatorFunctionMap.js +3 -3
  42. package/_internal/generatorFunctionReduce.js +1 -1
  43. package/_internal/iteratorEvery.js +2 -2
  44. package/_internal/iteratorFind.js +7 -7
  45. package/_internal/iteratorForEach.d.ts +1 -1
  46. package/_internal/iteratorForEach.js +3 -3
  47. package/_internal/iteratorForEachSeries.js +1 -1
  48. package/_internal/iteratorReduce.d.ts +1 -1
  49. package/_internal/iteratorReduce.js +2 -2
  50. package/_internal/iteratorSome.js +2 -2
  51. package/_internal/mapFilter.js +4 -4
  52. package/_internal/mapMap.d.ts +1 -1
  53. package/_internal/mapMap.js +6 -6
  54. package/_internal/mapMapPool.js +10 -10
  55. package/_internal/mapMapSeries.js +10 -10
  56. package/_internal/objectFilter.js +6 -6
  57. package/_internal/objectFlatMap.d.ts +1 -1
  58. package/_internal/objectFlatMap.js +1 -1
  59. package/_internal/objectFlatten.js +14 -14
  60. package/_internal/objectMap.js +3 -3
  61. package/_internal/objectMapOwn.js +3 -3
  62. package/_internal/objectMapPool.js +10 -10
  63. package/_internal/objectMapSeries.js +9 -9
  64. package/_internal/objectReduce.d.ts +1 -1
  65. package/_internal/objectReduce.js +2 -2
  66. package/_internal/reducerAllSync.d.ts +2 -2
  67. package/_internal/reducerAllSync.js +2 -2
  68. package/_internal/reducerAnySync.d.ts +1 -1
  69. package/_internal/reducerAnySync.js +2 -2
  70. package/_internal/reducerConcat.d.ts +1 -1
  71. package/_internal/reducerConcat.js +4 -4
  72. package/_internal/reducerConcatSync.js +2 -2
  73. package/_internal/reducerEvery.d.ts +2 -2
  74. package/_internal/reducerEvery.js +4 -4
  75. package/_internal/reducerFilter.d.ts +2 -2
  76. package/_internal/reducerFilter.js +5 -5
  77. package/_internal/reducerFlatten.js +3 -3
  78. package/_internal/reducerForEach.d.ts +2 -2
  79. package/_internal/reducerForEach.js +5 -5
  80. package/_internal/reducerMap.d.ts +1 -1
  81. package/_internal/reducerMap.js +5 -5
  82. package/_internal/reducerSome.d.ts +2 -2
  83. package/_internal/reducerSome.js +4 -4
  84. package/_internal/reducerTryCatch.d.ts +2 -2
  85. package/_internal/reducerTryCatch.js +8 -8
  86. package/_internal/setFilter.d.ts +1 -1
  87. package/_internal/setFilter.js +5 -5
  88. package/_internal/setFlatten.js +24 -24
  89. package/_internal/setMap.d.ts +1 -1
  90. package/_internal/setMap.js +6 -6
  91. package/_internal/setMapPool.js +9 -9
  92. package/_internal/setMapSeries.js +10 -10
  93. package/_internal/streamFlatExtend.js +25 -25
  94. package/_internal/streamFlatMap.js +2 -2
  95. package/all.js +3 -3
  96. package/and.js +5 -2
  97. package/assign.js +2 -2
  98. package/compose.js +6 -2
  99. package/curry.js +5 -12
  100. package/dist/Transducer.es.js +24 -24
  101. package/dist/Transducer.es.min.js +1 -1
  102. package/dist/Transducer.js +24 -24
  103. package/dist/Transducer.min.js +1 -1
  104. package/dist/Transducer.mjs +24 -24
  105. package/dist/__.es.js +1 -1
  106. package/dist/__.es.min.js +1 -1
  107. package/dist/__.js +1 -1
  108. package/dist/__.min.js +1 -1
  109. package/dist/__.mjs +1 -1
  110. package/dist/all.es.js +14 -14
  111. package/dist/all.es.min.js +1 -1
  112. package/dist/all.js +14 -14
  113. package/dist/all.min.js +1 -1
  114. package/dist/all.mjs +14 -14
  115. package/dist/always.es.js +1 -1
  116. package/dist/always.es.min.js +1 -1
  117. package/dist/always.js +1 -1
  118. package/dist/always.min.js +1 -1
  119. package/dist/always.mjs +1 -1
  120. package/dist/and.es.js +1 -1
  121. package/dist/and.es.min.js +1 -1
  122. package/dist/and.js +1 -1
  123. package/dist/and.min.js +1 -1
  124. package/dist/and.mjs +1 -1
  125. package/dist/assign.es.js +5 -5
  126. package/dist/assign.es.min.js +1 -1
  127. package/dist/assign.js +5 -5
  128. package/dist/assign.min.js +1 -1
  129. package/dist/assign.mjs +5 -5
  130. package/dist/compose.es.js +1 -1
  131. package/dist/compose.es.min.js +1 -1
  132. package/dist/compose.js +1 -1
  133. package/dist/compose.min.js +1 -1
  134. package/dist/compose.mjs +1 -1
  135. package/dist/curry.es.js +1 -1
  136. package/dist/curry.es.min.js +1 -1
  137. package/dist/curry.js +1 -1
  138. package/dist/curry.min.js +1 -1
  139. package/dist/curry.mjs +1 -1
  140. package/dist/eq.es.js +1 -1
  141. package/dist/eq.es.min.js +1 -1
  142. package/dist/eq.js +1 -1
  143. package/dist/eq.min.js +1 -1
  144. package/dist/eq.mjs +1 -1
  145. package/dist/every.es.js +7 -7
  146. package/dist/every.es.min.js +1 -1
  147. package/dist/every.js +7 -7
  148. package/dist/every.min.js +1 -1
  149. package/dist/every.mjs +7 -7
  150. package/dist/filter.es.js +21 -21
  151. package/dist/filter.es.min.js +1 -1
  152. package/dist/filter.js +21 -21
  153. package/dist/filter.min.js +1 -1
  154. package/dist/filter.mjs +21 -21
  155. package/dist/flatMap.es.js +82 -82
  156. package/dist/flatMap.es.min.js +1 -1
  157. package/dist/flatMap.js +82 -82
  158. package/dist/flatMap.min.js +1 -1
  159. package/dist/flatMap.mjs +82 -82
  160. package/dist/forEach.es.js +7 -7
  161. package/dist/forEach.es.min.js +1 -1
  162. package/dist/forEach.js +7 -7
  163. package/dist/forEach.min.js +1 -1
  164. package/dist/forEach.mjs +7 -7
  165. package/dist/get.es.js +1 -1
  166. package/dist/get.es.min.js +1 -1
  167. package/dist/get.js +1 -1
  168. package/dist/get.min.js +1 -1
  169. package/dist/get.mjs +1 -1
  170. package/dist/gt.es.js +1 -1
  171. package/dist/gt.es.min.js +1 -1
  172. package/dist/gt.js +1 -1
  173. package/dist/gt.min.js +1 -1
  174. package/dist/gt.mjs +1 -1
  175. package/dist/gte.es.js +1 -1
  176. package/dist/gte.es.min.js +1 -1
  177. package/dist/gte.js +1 -1
  178. package/dist/gte.min.js +1 -1
  179. package/dist/gte.mjs +1 -1
  180. package/dist/lt.es.js +1 -1
  181. package/dist/lt.es.min.js +1 -1
  182. package/dist/lt.js +1 -1
  183. package/dist/lt.min.js +1 -1
  184. package/dist/lt.mjs +1 -1
  185. package/dist/lte.es.js +1 -1
  186. package/dist/lte.es.min.js +1 -1
  187. package/dist/lte.js +1 -1
  188. package/dist/lte.min.js +1 -1
  189. package/dist/lte.mjs +1 -1
  190. package/dist/map.es.js +83 -83
  191. package/dist/map.es.min.js +1 -1
  192. package/dist/map.js +83 -83
  193. package/dist/map.min.js +1 -1
  194. package/dist/map.mjs +83 -83
  195. package/dist/not.es.js +1 -1
  196. package/dist/not.es.min.js +1 -1
  197. package/dist/not.js +1 -1
  198. package/dist/not.min.js +1 -1
  199. package/dist/not.mjs +1 -1
  200. package/dist/omit.es.js +13 -13
  201. package/dist/omit.es.min.js +1 -1
  202. package/dist/omit.js +13 -13
  203. package/dist/omit.min.js +1 -1
  204. package/dist/omit.mjs +13 -13
  205. package/dist/or.es.js +1 -1
  206. package/dist/or.es.min.js +1 -1
  207. package/dist/or.js +1 -1
  208. package/dist/or.min.js +1 -1
  209. package/dist/or.mjs +1 -1
  210. package/dist/pick.es.js +1 -1
  211. package/dist/pick.es.min.js +1 -1
  212. package/dist/pick.js +1 -1
  213. package/dist/pick.min.js +1 -1
  214. package/dist/pick.mjs +1 -1
  215. package/dist/pipe.es.js +1 -1
  216. package/dist/pipe.es.min.js +1 -1
  217. package/dist/pipe.js +1 -1
  218. package/dist/pipe.min.js +1 -1
  219. package/dist/pipe.mjs +1 -1
  220. package/dist/reduce.es.js +5 -5
  221. package/dist/reduce.es.min.js +1 -1
  222. package/dist/reduce.js +5 -5
  223. package/dist/reduce.min.js +1 -1
  224. package/dist/reduce.mjs +5 -5
  225. package/dist/rubico.es.js +215 -215
  226. package/dist/rubico.es.min.js +1 -1
  227. package/dist/rubico.global.js +215 -215
  228. package/dist/rubico.global.min.js +1 -1
  229. package/dist/rubico.js +215 -215
  230. package/dist/rubico.min.js +1 -1
  231. package/dist/rubico.mjs +215 -215
  232. package/dist/set.es.js +1 -1
  233. package/dist/set.es.min.js +1 -1
  234. package/dist/set.js +1 -1
  235. package/dist/set.min.js +1 -1
  236. package/dist/set.mjs +1 -1
  237. package/dist/some.es.js +8 -8
  238. package/dist/some.es.min.js +1 -1
  239. package/dist/some.js +8 -8
  240. package/dist/some.min.js +1 -1
  241. package/dist/some.mjs +8 -8
  242. package/dist/switchCase.es.js +1 -1
  243. package/dist/switchCase.es.min.js +1 -1
  244. package/dist/switchCase.js +1 -1
  245. package/dist/switchCase.min.js +1 -1
  246. package/dist/switchCase.mjs +1 -1
  247. package/dist/tap.es.js +1 -1
  248. package/dist/tap.es.min.js +1 -1
  249. package/dist/tap.js +1 -1
  250. package/dist/tap.min.js +1 -1
  251. package/dist/tap.mjs +1 -1
  252. package/dist/thunkify.es.js +1 -1
  253. package/dist/thunkify.es.min.js +1 -1
  254. package/dist/thunkify.js +1 -1
  255. package/dist/thunkify.min.js +1 -1
  256. package/dist/thunkify.mjs +1 -1
  257. package/dist/transform.es.js +5 -5
  258. package/dist/transform.es.min.js +1 -1
  259. package/dist/transform.js +5 -5
  260. package/dist/transform.min.js +1 -1
  261. package/dist/transform.mjs +5 -5
  262. package/dist/tryCatch.es.js +1 -1
  263. package/dist/tryCatch.es.min.js +1 -1
  264. package/dist/tryCatch.js +1 -1
  265. package/dist/tryCatch.min.js +1 -1
  266. package/dist/tryCatch.mjs +1 -1
  267. package/dist/x/append.es.js +8 -8
  268. package/dist/x/append.es.min.js +1 -1
  269. package/dist/x/append.js +8 -8
  270. package/dist/x/append.min.js +1 -1
  271. package/dist/x/append.mjs +8 -8
  272. package/dist/x/callProp.es.js +1 -1
  273. package/dist/x/callProp.es.min.js +1 -1
  274. package/dist/x/callProp.js +1 -1
  275. package/dist/x/callProp.min.js +1 -1
  276. package/dist/x/callProp.mjs +1 -1
  277. package/dist/x/defaultsDeep.es.js +69 -37
  278. package/dist/x/defaultsDeep.es.min.js +2 -2
  279. package/dist/x/defaultsDeep.js +69 -37
  280. package/dist/x/defaultsDeep.min.js +2 -2
  281. package/dist/x/defaultsDeep.mjs +69 -37
  282. package/dist/x/differenceWith.es.js +14 -14
  283. package/dist/x/differenceWith.es.min.js +1 -1
  284. package/dist/x/differenceWith.js +14 -14
  285. package/dist/x/differenceWith.min.js +1 -1
  286. package/dist/x/differenceWith.mjs +14 -14
  287. package/dist/x/filterOut.es.js +21 -21
  288. package/dist/x/filterOut.es.min.js +1 -1
  289. package/dist/x/filterOut.js +21 -21
  290. package/dist/x/filterOut.min.js +1 -1
  291. package/dist/x/filterOut.mjs +21 -21
  292. package/dist/x/find.es.js +18 -18
  293. package/dist/x/find.es.min.js +1 -1
  294. package/dist/x/find.js +18 -18
  295. package/dist/x/find.min.js +1 -1
  296. package/dist/x/find.mjs +18 -18
  297. package/dist/x/findIndex.es.js +1 -1
  298. package/dist/x/findIndex.es.min.js +1 -1
  299. package/dist/x/findIndex.js +1 -1
  300. package/dist/x/findIndex.min.js +1 -1
  301. package/dist/x/findIndex.mjs +1 -1
  302. package/dist/x/first.es.js +1 -1
  303. package/dist/x/first.es.min.js +1 -1
  304. package/dist/x/first.js +1 -1
  305. package/dist/x/first.min.js +1 -1
  306. package/dist/x/first.mjs +1 -1
  307. package/dist/x/flatten.es.js +82 -82
  308. package/dist/x/flatten.es.min.js +1 -1
  309. package/dist/x/flatten.js +82 -82
  310. package/dist/x/flatten.min.js +1 -1
  311. package/dist/x/flatten.mjs +82 -82
  312. package/dist/x/groupBy.es.js +17 -17
  313. package/dist/x/groupBy.es.min.js +1 -1
  314. package/dist/x/groupBy.js +17 -17
  315. package/dist/x/groupBy.min.js +1 -1
  316. package/dist/x/groupBy.mjs +17 -17
  317. package/dist/x/has.es.js +1 -1
  318. package/dist/x/has.es.min.js +1 -1
  319. package/dist/x/has.js +1 -1
  320. package/dist/x/has.min.js +1 -1
  321. package/dist/x/has.mjs +1 -1
  322. package/dist/x/identity.es.js +1 -1
  323. package/dist/x/identity.es.min.js +1 -1
  324. package/dist/x/identity.js +1 -1
  325. package/dist/x/identity.min.js +1 -1
  326. package/dist/x/identity.mjs +1 -1
  327. package/dist/x/includes.es.js +1 -1
  328. package/dist/x/includes.es.min.js +1 -1
  329. package/dist/x/includes.js +1 -1
  330. package/dist/x/includes.min.js +1 -1
  331. package/dist/x/includes.mjs +1 -1
  332. package/dist/x/isDeepEqual.es.js +1 -1
  333. package/dist/x/isDeepEqual.es.min.js +1 -1
  334. package/dist/x/isDeepEqual.js +1 -1
  335. package/dist/x/isDeepEqual.min.js +1 -1
  336. package/dist/x/isDeepEqual.mjs +1 -1
  337. package/dist/x/isEmpty.es.js +1 -1
  338. package/dist/x/isEmpty.es.min.js +1 -1
  339. package/dist/x/isEmpty.js +1 -1
  340. package/dist/x/isEmpty.min.js +1 -1
  341. package/dist/x/isEmpty.mjs +1 -1
  342. package/dist/x/isEqual.es.js +1 -1
  343. package/dist/x/isEqual.es.min.js +1 -1
  344. package/dist/x/isEqual.js +1 -1
  345. package/dist/x/isEqual.min.js +1 -1
  346. package/dist/x/isEqual.mjs +1 -1
  347. package/dist/x/isFunction.es.js +1 -1
  348. package/dist/x/isFunction.es.min.js +1 -1
  349. package/dist/x/isFunction.js +1 -1
  350. package/dist/x/isFunction.min.js +1 -1
  351. package/dist/x/isFunction.mjs +1 -1
  352. package/dist/x/isIn.es.js +1 -1
  353. package/dist/x/isIn.es.min.js +1 -1
  354. package/dist/x/isIn.js +1 -1
  355. package/dist/x/isIn.min.js +1 -1
  356. package/dist/x/isIn.mjs +1 -1
  357. package/dist/x/isObject.es.js +1 -1
  358. package/dist/x/isObject.es.min.js +1 -1
  359. package/dist/x/isObject.js +1 -1
  360. package/dist/x/isObject.min.js +1 -1
  361. package/dist/x/isObject.mjs +1 -1
  362. package/dist/x/isString.es.js +1 -1
  363. package/dist/x/isString.es.min.js +1 -1
  364. package/dist/x/isString.js +1 -1
  365. package/dist/x/isString.min.js +1 -1
  366. package/dist/x/isString.mjs +1 -1
  367. package/dist/x/keys.es.js +1 -1
  368. package/dist/x/keys.es.min.js +1 -1
  369. package/dist/x/keys.js +1 -1
  370. package/dist/x/keys.min.js +1 -1
  371. package/dist/x/keys.mjs +1 -1
  372. package/dist/x/last.es.js +1 -1
  373. package/dist/x/last.es.min.js +1 -1
  374. package/dist/x/last.js +1 -1
  375. package/dist/x/last.min.js +1 -1
  376. package/dist/x/last.mjs +1 -1
  377. package/dist/x/maxBy.es.js +6 -6
  378. package/dist/x/maxBy.es.min.js +1 -1
  379. package/dist/x/maxBy.js +6 -6
  380. package/dist/x/maxBy.min.js +1 -1
  381. package/dist/x/maxBy.mjs +6 -6
  382. package/dist/x/noop.es.js +1 -1
  383. package/dist/x/noop.es.min.js +1 -1
  384. package/dist/x/noop.js +1 -1
  385. package/dist/x/noop.min.js +1 -1
  386. package/dist/x/noop.mjs +1 -1
  387. package/dist/x/pluck.es.js +83 -83
  388. package/dist/x/pluck.es.min.js +1 -1
  389. package/dist/x/pluck.js +83 -83
  390. package/dist/x/pluck.min.js +1 -1
  391. package/dist/x/pluck.mjs +83 -83
  392. package/dist/x/prepend.es.js +8 -8
  393. package/dist/x/prepend.es.min.js +1 -1
  394. package/dist/x/prepend.js +8 -8
  395. package/dist/x/prepend.min.js +1 -1
  396. package/dist/x/prepend.mjs +8 -8
  397. package/dist/x/size.es.js +1 -1
  398. package/dist/x/size.es.min.js +1 -1
  399. package/dist/x/size.js +1 -1
  400. package/dist/x/size.min.js +1 -1
  401. package/dist/x/size.mjs +1 -1
  402. package/dist/x/trace.es.js +1 -1
  403. package/dist/x/trace.es.min.js +1 -1
  404. package/dist/x/trace.js +1 -1
  405. package/dist/x/trace.min.js +1 -1
  406. package/dist/x/trace.mjs +1 -1
  407. package/dist/x/unionWith.es.js +39 -39
  408. package/dist/x/unionWith.es.min.js +1 -1
  409. package/dist/x/unionWith.js +39 -39
  410. package/dist/x/unionWith.min.js +1 -1
  411. package/dist/x/unionWith.mjs +39 -39
  412. package/dist/x/uniq.es.js +1 -1
  413. package/dist/x/uniq.es.min.js +1 -1
  414. package/dist/x/uniq.js +1 -1
  415. package/dist/x/uniq.min.js +1 -1
  416. package/dist/x/uniq.mjs +1 -1
  417. package/dist/x/unless.es.js +1 -1
  418. package/dist/x/unless.es.min.js +1 -1
  419. package/dist/x/unless.js +1 -1
  420. package/dist/x/unless.min.js +1 -1
  421. package/dist/x/unless.mjs +1 -1
  422. package/dist/x/values.es.js +1 -1
  423. package/dist/x/values.es.min.js +1 -1
  424. package/dist/x/values.js +1 -1
  425. package/dist/x/values.min.js +1 -1
  426. package/dist/x/values.mjs +1 -1
  427. package/dist/x/when.es.js +1 -1
  428. package/dist/x/when.es.min.js +1 -1
  429. package/dist/x/when.js +1 -1
  430. package/dist/x/when.min.js +1 -1
  431. package/dist/x/when.mjs +1 -1
  432. package/eq.js +32 -10
  433. package/es.js +215 -215
  434. package/every.d.ts +1 -1
  435. package/every.js +6 -3
  436. package/filter.d.ts +3 -3
  437. package/filter.js +14 -14
  438. package/flatMap.d.ts +9 -9
  439. package/flatMap.js +9 -9
  440. package/forEach.d.ts +1 -1
  441. package/forEach.js +19 -15
  442. package/global.js +1 -0
  443. package/gt.js +30 -13
  444. package/gte.js +31 -12
  445. package/index.js +215 -215
  446. package/lt.js +28 -9
  447. package/lte.js +34 -15
  448. package/map.d.ts +3 -3
  449. package/map.js +31 -31
  450. package/monad/Mux.benchmark.js +1 -1
  451. package/monad/Mux.js +6 -6
  452. package/monad/Struct.js +2 -2
  453. package/not.js +15 -7
  454. package/or.js +5 -2
  455. package/package.json +1 -1
  456. package/pipe.js +7 -13
  457. package/reduce.d.ts +7 -7
  458. package/reduce.js +16 -16
  459. package/some.d.ts +1 -1
  460. package/some.js +6 -3
  461. package/switchCase.d.ts +1 -1
  462. package/switchCase.js +7 -4
  463. package/tap.js +14 -4
  464. package/thunkify.js +2 -0
  465. package/transform.d.ts +1 -1
  466. package/transform.js +6 -15
  467. package/tryCatch.js +8 -2
  468. package/x/README.md +8 -8
  469. package/x/append.d.ts +2 -2
  470. package/x/append.js +8 -8
  471. package/x/defaultsDeep.js +94 -57
  472. package/x/defaultsDeep.test.js +24 -1
  473. package/x/differenceWith.js +13 -13
  474. package/x/find.d.ts +1 -1
  475. package/x/find.js +1 -1
  476. package/x/find.test.js +2 -2
  477. package/x/findIndex.test.js +1 -1
  478. package/x/first.d.ts +1 -1
  479. package/x/first.js +1 -1
  480. package/x/first.test.js +1 -1
  481. package/x/groupBy.d.ts +1 -1
  482. package/x/groupBy.js +13 -13
  483. package/x/last.d.ts +1 -1
  484. package/x/last.js +1 -1
  485. package/x/last.test.js +1 -1
  486. package/x/maxBy.d.ts +7 -7
  487. package/x/maxBy.js +13 -13
  488. package/x/maxBy.test.js +5 -5
  489. package/x/pluck.test.js +1 -1
  490. package/x/prepend.d.ts +2 -2
  491. package/x/prepend.js +8 -8
  492. package/x/size.d.ts +1 -1
  493. package/x/size.js +1 -1
  494. package/x/unionWith.js +11 -11
  495. package/x/unionWith.test.js +5 -5
  496. package/global.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -97,8 +97,8 @@ const identity = value => value
97
97
 
98
98
  const asyncIteratorForEach = async function (asyncIterator, callback) {
99
99
  const promises = []
100
- for await (const item of asyncIterator) {
101
- const operation = callback(item)
100
+ for await (const element of asyncIterator) {
101
+ const operation = callback(element)
102
102
  if (isPromise(operation)) {
103
103
  promises.push(operation)
104
104
  }
@@ -118,44 +118,44 @@ const arrayFlatten = function (array) {
118
118
  let index = -1
119
119
 
120
120
  while (++index < length) {
121
- const item = array[index]
122
- if (isArray(item)) {
123
- const itemLength = item.length
124
- let itemIndex = -1
125
- while (++itemIndex < itemLength) {
126
- result.push(item[itemIndex])
121
+ const element = array[index]
122
+ if (isArray(element)) {
123
+ const elementLength = element.length
124
+ let elementIndex = -1
125
+ while (++elementIndex < elementLength) {
126
+ result.push(element[elementIndex])
127
127
  }
128
- } else if (item == null) {
129
- result.push(item)
130
- } else if (typeof item.then == 'function') {
131
- promises.push(item.then(curry2(arrayPush, result, __)))
132
- } else if (typeof item[symbolIterator] == 'function') {
133
- for (const subItem of item) {
134
- result.push(subItem)
128
+ } else if (element == null) {
129
+ result.push(element)
130
+ } else if (typeof element.then == 'function') {
131
+ promises.push(element.then(curry2(arrayPush, result, __)))
132
+ } else if (typeof element[symbolIterator] == 'function') {
133
+ for (const subElement of element) {
134
+ result.push(subElement)
135
135
  }
136
- } else if (typeof item[symbolAsyncIterator] == 'function') {
136
+ } else if (typeof element[symbolAsyncIterator] == 'function') {
137
137
  promises.push(asyncIteratorForEach(
138
- item[symbolAsyncIterator](), curry2(arrayPush, result, __)))
139
- } else if (typeof item.chain == 'function') {
140
- const monadValue = item.chain(identity)
138
+ element[symbolAsyncIterator](), curry2(arrayPush, result, __)))
139
+ } else if (typeof element.chain == 'function') {
140
+ const monadValue = element.chain(identity)
141
141
  isPromise(monadValue)
142
142
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
143
143
  : result.push(monadValue)
144
- } else if (typeof item.flatMap == 'function') {
145
- const monadValue = item.flatMap(identity)
144
+ } else if (typeof element.flatMap == 'function') {
145
+ const monadValue = element.flatMap(identity)
146
146
  isPromise(monadValue)
147
147
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
148
148
  : result.push(monadValue)
149
- } else if (typeof item.reduce == 'function') {
150
- const folded = item.reduce(funcConcatSync(
149
+ } else if (typeof element.reduce == 'function') {
150
+ const folded = element.reduce(funcConcatSync(
151
151
  getArg1, curry2(arrayPush, result, __)), null)
152
152
  isPromise(folded) && promises.push(folded)
153
- } else if (item.constructor == Object) {
154
- for (const key in item) {
155
- result.push(item[key])
153
+ } else if (element.constructor == Object) {
154
+ for (const key in element) {
155
+ result.push(element[key])
156
156
  }
157
157
  } else {
158
- result.push(item)
158
+ result.push(element)
159
159
  }
160
160
  }
161
161
  return promises.length == 0
@@ -184,12 +184,12 @@ const arrayIncludesWith = function (array, value, comparator) {
184
184
  const arrayUniqWithAsync = async function (array, comparator, result, index) {
185
185
  const length = array.length
186
186
  while (++index < length) {
187
- const item = array[index],
188
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
187
+ const element = array[index],
188
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
189
189
  if (!(
190
- isPromise(itemAlreadyExists) ? await itemAlreadyExists : itemAlreadyExists
190
+ isPromise(elementAlreadyExists) ? await elementAlreadyExists : elementAlreadyExists
191
191
  )) {
192
- result.push(item)
192
+ result.push(element)
193
193
  }
194
194
  }
195
195
  return result
@@ -200,14 +200,14 @@ const arrayUniqWith = function (array, comparator) {
200
200
  result = []
201
201
  let index = -1
202
202
  while (++index < length) {
203
- const item = array[index],
204
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
205
- if (isPromise(itemAlreadyExists)) {
206
- return itemAlreadyExists.then(funcConcatSync(
207
- curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, item)),
203
+ const element = array[index],
204
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
205
+ if (isPromise(elementAlreadyExists)) {
206
+ return elementAlreadyExists.then(funcConcatSync(
207
+ curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, element)),
208
208
  thunkify4(arrayUniqWithAsync, array, comparator, result, index)))
209
- } else if (!itemAlreadyExists) {
210
- result.push(item)
209
+ } else if (!elementAlreadyExists) {
210
+ result.push(element)
211
211
  }
212
212
  }
213
213
  return result
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -103,8 +103,8 @@ const identity = value => value
103
103
 
104
104
  const asyncIteratorForEach = async function (asyncIterator, callback) {
105
105
  const promises = []
106
- for await (const item of asyncIterator) {
107
- const operation = callback(item)
106
+ for await (const element of asyncIterator) {
107
+ const operation = callback(element)
108
108
  if (isPromise(operation)) {
109
109
  promises.push(operation)
110
110
  }
@@ -124,44 +124,44 @@ const arrayFlatten = function (array) {
124
124
  let index = -1
125
125
 
126
126
  while (++index < length) {
127
- const item = array[index]
128
- if (isArray(item)) {
129
- const itemLength = item.length
130
- let itemIndex = -1
131
- while (++itemIndex < itemLength) {
132
- result.push(item[itemIndex])
127
+ const element = array[index]
128
+ if (isArray(element)) {
129
+ const elementLength = element.length
130
+ let elementIndex = -1
131
+ while (++elementIndex < elementLength) {
132
+ result.push(element[elementIndex])
133
133
  }
134
- } else if (item == null) {
135
- result.push(item)
136
- } else if (typeof item.then == 'function') {
137
- promises.push(item.then(curry2(arrayPush, result, __)))
138
- } else if (typeof item[symbolIterator] == 'function') {
139
- for (const subItem of item) {
140
- result.push(subItem)
134
+ } else if (element == null) {
135
+ result.push(element)
136
+ } else if (typeof element.then == 'function') {
137
+ promises.push(element.then(curry2(arrayPush, result, __)))
138
+ } else if (typeof element[symbolIterator] == 'function') {
139
+ for (const subElement of element) {
140
+ result.push(subElement)
141
141
  }
142
- } else if (typeof item[symbolAsyncIterator] == 'function') {
142
+ } else if (typeof element[symbolAsyncIterator] == 'function') {
143
143
  promises.push(asyncIteratorForEach(
144
- item[symbolAsyncIterator](), curry2(arrayPush, result, __)))
145
- } else if (typeof item.chain == 'function') {
146
- const monadValue = item.chain(identity)
144
+ element[symbolAsyncIterator](), curry2(arrayPush, result, __)))
145
+ } else if (typeof element.chain == 'function') {
146
+ const monadValue = element.chain(identity)
147
147
  isPromise(monadValue)
148
148
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
149
149
  : result.push(monadValue)
150
- } else if (typeof item.flatMap == 'function') {
151
- const monadValue = item.flatMap(identity)
150
+ } else if (typeof element.flatMap == 'function') {
151
+ const monadValue = element.flatMap(identity)
152
152
  isPromise(monadValue)
153
153
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
154
154
  : result.push(monadValue)
155
- } else if (typeof item.reduce == 'function') {
156
- const folded = item.reduce(funcConcatSync(
155
+ } else if (typeof element.reduce == 'function') {
156
+ const folded = element.reduce(funcConcatSync(
157
157
  getArg1, curry2(arrayPush, result, __)), null)
158
158
  isPromise(folded) && promises.push(folded)
159
- } else if (item.constructor == Object) {
160
- for (const key in item) {
161
- result.push(item[key])
159
+ } else if (element.constructor == Object) {
160
+ for (const key in element) {
161
+ result.push(element[key])
162
162
  }
163
163
  } else {
164
- result.push(item)
164
+ result.push(element)
165
165
  }
166
166
  }
167
167
  return promises.length == 0
@@ -190,12 +190,12 @@ const arrayIncludesWith = function (array, value, comparator) {
190
190
  const arrayUniqWithAsync = async function (array, comparator, result, index) {
191
191
  const length = array.length
192
192
  while (++index < length) {
193
- const item = array[index],
194
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
193
+ const element = array[index],
194
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
195
195
  if (!(
196
- isPromise(itemAlreadyExists) ? await itemAlreadyExists : itemAlreadyExists
196
+ isPromise(elementAlreadyExists) ? await elementAlreadyExists : elementAlreadyExists
197
197
  )) {
198
- result.push(item)
198
+ result.push(element)
199
199
  }
200
200
  }
201
201
  return result
@@ -206,14 +206,14 @@ const arrayUniqWith = function (array, comparator) {
206
206
  result = []
207
207
  let index = -1
208
208
  while (++index < length) {
209
- const item = array[index],
210
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
211
- if (isPromise(itemAlreadyExists)) {
212
- return itemAlreadyExists.then(funcConcatSync(
213
- curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, item)),
209
+ const element = array[index],
210
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
211
+ if (isPromise(elementAlreadyExists)) {
212
+ return elementAlreadyExists.then(funcConcatSync(
213
+ curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, element)),
214
214
  thunkify4(arrayUniqWithAsync, array, comparator, result, index)))
215
- } else if (!itemAlreadyExists) {
216
- result.push(item)
215
+ } else if (!elementAlreadyExists) {
216
+ result.push(element)
217
217
  }
218
218
  }
219
219
  return result
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -97,8 +97,8 @@ const identity = value => value
97
97
 
98
98
  const asyncIteratorForEach = async function (asyncIterator, callback) {
99
99
  const promises = []
100
- for await (const item of asyncIterator) {
101
- const operation = callback(item)
100
+ for await (const element of asyncIterator) {
101
+ const operation = callback(element)
102
102
  if (isPromise(operation)) {
103
103
  promises.push(operation)
104
104
  }
@@ -118,44 +118,44 @@ const arrayFlatten = function (array) {
118
118
  let index = -1
119
119
 
120
120
  while (++index < length) {
121
- const item = array[index]
122
- if (isArray(item)) {
123
- const itemLength = item.length
124
- let itemIndex = -1
125
- while (++itemIndex < itemLength) {
126
- result.push(item[itemIndex])
121
+ const element = array[index]
122
+ if (isArray(element)) {
123
+ const elementLength = element.length
124
+ let elementIndex = -1
125
+ while (++elementIndex < elementLength) {
126
+ result.push(element[elementIndex])
127
127
  }
128
- } else if (item == null) {
129
- result.push(item)
130
- } else if (typeof item.then == 'function') {
131
- promises.push(item.then(curry2(arrayPush, result, __)))
132
- } else if (typeof item[symbolIterator] == 'function') {
133
- for (const subItem of item) {
134
- result.push(subItem)
128
+ } else if (element == null) {
129
+ result.push(element)
130
+ } else if (typeof element.then == 'function') {
131
+ promises.push(element.then(curry2(arrayPush, result, __)))
132
+ } else if (typeof element[symbolIterator] == 'function') {
133
+ for (const subElement of element) {
134
+ result.push(subElement)
135
135
  }
136
- } else if (typeof item[symbolAsyncIterator] == 'function') {
136
+ } else if (typeof element[symbolAsyncIterator] == 'function') {
137
137
  promises.push(asyncIteratorForEach(
138
- item[symbolAsyncIterator](), curry2(arrayPush, result, __)))
139
- } else if (typeof item.chain == 'function') {
140
- const monadValue = item.chain(identity)
138
+ element[symbolAsyncIterator](), curry2(arrayPush, result, __)))
139
+ } else if (typeof element.chain == 'function') {
140
+ const monadValue = element.chain(identity)
141
141
  isPromise(monadValue)
142
142
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
143
143
  : result.push(monadValue)
144
- } else if (typeof item.flatMap == 'function') {
145
- const monadValue = item.flatMap(identity)
144
+ } else if (typeof element.flatMap == 'function') {
145
+ const monadValue = element.flatMap(identity)
146
146
  isPromise(monadValue)
147
147
  ? promises.push(monadValue.then(curry2(arrayPush, result, __)))
148
148
  : result.push(monadValue)
149
- } else if (typeof item.reduce == 'function') {
150
- const folded = item.reduce(funcConcatSync(
149
+ } else if (typeof element.reduce == 'function') {
150
+ const folded = element.reduce(funcConcatSync(
151
151
  getArg1, curry2(arrayPush, result, __)), null)
152
152
  isPromise(folded) && promises.push(folded)
153
- } else if (item.constructor == Object) {
154
- for (const key in item) {
155
- result.push(item[key])
153
+ } else if (element.constructor == Object) {
154
+ for (const key in element) {
155
+ result.push(element[key])
156
156
  }
157
157
  } else {
158
- result.push(item)
158
+ result.push(element)
159
159
  }
160
160
  }
161
161
  return promises.length == 0
@@ -184,12 +184,12 @@ const arrayIncludesWith = function (array, value, comparator) {
184
184
  const arrayUniqWithAsync = async function (array, comparator, result, index) {
185
185
  const length = array.length
186
186
  while (++index < length) {
187
- const item = array[index],
188
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
187
+ const element = array[index],
188
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
189
189
  if (!(
190
- isPromise(itemAlreadyExists) ? await itemAlreadyExists : itemAlreadyExists
190
+ isPromise(elementAlreadyExists) ? await elementAlreadyExists : elementAlreadyExists
191
191
  )) {
192
- result.push(item)
192
+ result.push(element)
193
193
  }
194
194
  }
195
195
  return result
@@ -200,14 +200,14 @@ const arrayUniqWith = function (array, comparator) {
200
200
  result = []
201
201
  let index = -1
202
202
  while (++index < length) {
203
- const item = array[index],
204
- itemAlreadyExists = arrayIncludesWith(result, item, comparator)
205
- if (isPromise(itemAlreadyExists)) {
206
- return itemAlreadyExists.then(funcConcatSync(
207
- curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, item)),
203
+ const element = array[index],
204
+ elementAlreadyExists = arrayIncludesWith(result, element, comparator)
205
+ if (isPromise(elementAlreadyExists)) {
206
+ return elementAlreadyExists.then(funcConcatSync(
207
+ curry3(thunkConditional, __, noop, thunkify2(arrayPush, result, element)),
208
208
  thunkify4(arrayUniqWithAsync, array, comparator, result, index)))
209
- } else if (!itemAlreadyExists) {
210
- result.push(item)
209
+ } else if (!elementAlreadyExists) {
210
+ result.push(element)
211
211
  }
212
212
  }
213
213
  return result
package/dist/x/uniq.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/uniq.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/uniq.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/unless.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/unless.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/values.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/values.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.7.3
2
+ * rubico v2.7.5
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/eq.js CHANGED
@@ -6,20 +6,28 @@ const equals = require('./_internal/equals')
6
6
  *
7
7
  * @synopsis
8
8
  * ```coffeescript [specscript]
9
- * eq(leftValue Promise|any, rightValue Promise|any) -> boolean
9
+ * args Array<any>
10
+ * argsOrPromises Array<Promise|any>
10
11
  *
11
- * eq(leftValue Promise|any, right function)(...args) -> Promise|boolean
12
- * eq(...args, leftValue Promise|any, right function) -> Promise|boolean
12
+ * type SyncOrAsyncResolver = (...args)=>Promise|any
13
13
  *
14
- * eq(left function, rightValue Promise|any)(...args) -> Promise|boolean
15
- * eq(...args, left function, rightValue Promise|any) -> Promise|boolean
14
+ * leftValue Promise|any
15
+ * rightValue Promise|any
16
+ * leftResolver SyncOrAsyncResolver
17
+ * rightResolver SyncOrAsyncResolver
18
+ *
19
+ * eq(leftValue, rightValue) -> Promise|boolean
20
+ * eq(...argsOrPromises, leftResolver, rightValue) -> Promise|boolean
21
+ * eq(...argsOrPromises, leftValue, rightResolver) -> Promise|boolean
22
+ * eq(...argsOrPromises, leftResolver, rightResolver) -> Promise|boolean
23
+ * eq(leftResolver, rightValue)(...args) -> Promise|boolean
24
+ * eq(leftValue, rightResolver)(...args) -> Promise|boolean
25
+ * eq(leftResolver, rightResolver)(...args) -> Promise|boolean
16
26
  *
17
- * eq(left function, right function)(...args) -> Promise|boolean
18
- * eq(...args, left function, right function) -> Promise|boolean
19
27
  * ```
20
28
  *
21
29
  * @description
22
- * Test for [equality (`==`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality) between two values.
30
+ * Function equivalent to the [Equality (==)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality) operator. Tests for equality (`==`) between two values.
23
31
  *
24
32
  * ```javascript [playground]
25
33
  * const areNamesEqual = eq('Ted', 'John')
@@ -27,7 +35,7 @@ const equals = require('./_internal/equals')
27
35
  * console.log(areNamesEqual) // false
28
36
  * ```
29
37
  *
30
- * If either of the two values are resolver functions, `eq` returns a function that resolves the values to compare from its arguments.
38
+ * If either of the two values are resolver functions, `eq` returns a function that resolves the value(s) to compare.
31
39
  *
32
40
  * ```javascript [playground]
33
41
  * const personIsJohn = eq(get('name'), 'John')
@@ -35,10 +43,24 @@ const equals = require('./_internal/equals')
35
43
  * const person = { name: 'John', likes: 'bananas' }
36
44
  *
37
45
  * if (personIsJohn(person)) {
38
- * console.log('The person is george')
46
+ * console.log('The person is John')
39
47
  * }
40
48
  * ```
41
49
  *
50
+ * If either of the two resolver functions is asynchronous, `eq` returns an asynchronous function.
51
+ *
52
+ * ```javascript [playground]
53
+ * const asyncPersonIsJohn = eq(async person => person.name, 'John')
54
+ *
55
+ * const person = { name: 'John', likes: 'bananas' }
56
+ *
57
+ * asyncPersonIsJohn(person).then(condition => {
58
+ * if (condition) {
59
+ * console.log('The person is John')
60
+ * }
61
+ * })
62
+ * ```
63
+ *
42
64
  * `eq` supports a lazy API for composability.
43
65
  *
44
66
  * ```javascript [playground]