ramda-adjunct 3.3.0 → 4.0.0

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 (493) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +2 -2
  3. package/dist/RA.node.js +235 -1605
  4. package/dist/RA.node.min.js +1 -1
  5. package/dist/RA.web.js +235 -1605
  6. package/dist/RA.web.min.js +1 -1
  7. package/dist/RA.web.standalone.js +1356 -2116
  8. package/dist/RA.web.standalone.min.js +1 -1
  9. package/es/Y.js +1 -0
  10. package/es/allEqual.js +3 -2
  11. package/es/allEqualTo.js +1 -1
  12. package/es/allIdentical.js +1 -1
  13. package/es/allIdenticalTo.js +1 -1
  14. package/es/allP.js +1 -1
  15. package/es/allSettledP.js +1 -1
  16. package/es/allUnique.js +1 -1
  17. package/es/anyP.js +1 -1
  18. package/es/appendFlipped.js +1 -1
  19. package/es/argsPass.js +1 -1
  20. package/es/async.js +1 -5
  21. package/es/cata.js +1 -4
  22. package/es/catchP.js +1 -1
  23. package/es/ceil.js +1 -0
  24. package/es/compact.js +1 -1
  25. package/es/concatAll.js +3 -2
  26. package/es/concatRight.js +1 -1
  27. package/es/copyKeys.js +5 -5
  28. package/es/curryRight.js +1 -1
  29. package/es/curryRightN.js +1 -2
  30. package/es/defaultWhen.js +1 -1
  31. package/es/delayP.js +1 -3
  32. package/es/dispatch.js +2 -11
  33. package/es/divideNum.js +1 -1
  34. package/es/dropArgs.js +1 -1
  35. package/es/ensureArray.js +2 -2
  36. package/es/escapeRegExp.js +1 -1
  37. package/es/fantasy-land/Identity.js +15 -20
  38. package/es/fantasy-land/traits.js +4 -5
  39. package/es/fantasy-land/util.js +8 -4
  40. package/es/filterIndexed.js +1 -1
  41. package/es/findOr.js +1 -0
  42. package/es/flattenDepth.js +2 -13
  43. package/es/flattenPath.js +1 -1
  44. package/es/flattenProp.js +2 -2
  45. package/es/floor.js +1 -0
  46. package/es/fnull.js +1 -1
  47. package/es/inRange.js +1 -1
  48. package/es/included.js +1 -1
  49. package/es/index.js +18 -29
  50. package/es/internal/ap.js +0 -1
  51. package/es/internal/isOfTypeObject.js +0 -2
  52. package/es/internal/makeFlat.js +1 -6
  53. package/es/internal/ponyfills/Array.from.js +1 -13
  54. package/es/internal/ponyfills/Math.sign.js +0 -1
  55. package/es/internal/ponyfills/Math.trunc.js +2 -5
  56. package/es/internal/ponyfills/Number.isFinite.js +2 -1
  57. package/es/internal/ponyfills/Number.isNaN.js +2 -1
  58. package/es/internal/ponyfills/Promise.allSettled.js +1 -11
  59. package/es/internal/ponyfills/Promise.any.js +4 -32
  60. package/es/internal/ponyfills/String.padEnd.js +0 -6
  61. package/es/internal/ponyfills/String.padStart.js +4 -9
  62. package/es/internal/ponyfills/String.repeat.js +3 -13
  63. package/es/internal/ponyfills/String.replaceAll.js +0 -5
  64. package/es/invoke.js +1 -1
  65. package/es/invokeArgs.js +1 -0
  66. package/es/isArray.js +1 -1
  67. package/es/isArrayLike.js +2 -11
  68. package/es/isAsyncFunction.js +1 -1
  69. package/es/isBigInt.js +1 -1
  70. package/es/isBlank.js +0 -1
  71. package/es/isBoolean.js +1 -1
  72. package/es/isDate.js +1 -1
  73. package/es/isEmptyArray.js +1 -1
  74. package/es/isEmptyString.js +1 -1
  75. package/es/isError.js +1 -1
  76. package/es/isEven.js +1 -1
  77. package/es/isFalse.js +3 -2
  78. package/es/isFalsy.js +1 -1
  79. package/es/isFinite.js +1 -2
  80. package/es/isFloat.js +1 -1
  81. package/es/isFunction.js +1 -1
  82. package/es/isGeneratorFunction.js +2 -13
  83. package/es/isIndexed.js +1 -0
  84. package/es/isInteger.js +1 -1
  85. package/es/isInteger32.js +1 -1
  86. package/es/isIterable.js +1 -2
  87. package/es/isMap.js +1 -0
  88. package/es/isNaN.js +1 -2
  89. package/es/isNaturalNumber.js +1 -0
  90. package/es/isNegative.js +1 -1
  91. package/es/isNegativeZero.js +3 -3
  92. package/es/isNilOrEmpty.js +1 -1
  93. package/es/isNonEmptyArray.js +1 -1
  94. package/es/isNonEmptyString.js +1 -1
  95. package/es/isNonNegative.js +1 -1
  96. package/es/isNonPositive.js +1 -1
  97. package/es/isNotArray.js +1 -1
  98. package/es/isNotArrayLike.js +1 -1
  99. package/es/isNotAsyncFunction.js +1 -3
  100. package/es/isNotBoolean.js +1 -1
  101. package/es/isNotDate.js +1 -1
  102. package/es/isNotEmpty.js +1 -1
  103. package/es/isNotFinite.js +1 -1
  104. package/es/isNotFloat.js +1 -1
  105. package/es/isNotFunction.js +1 -3
  106. package/es/isNotGeneratorFunction.js +1 -3
  107. package/es/isNotInteger.js +1 -1
  108. package/es/isNotMap.js +1 -0
  109. package/es/isNotNaN.js +1 -1
  110. package/es/isNotNil.js +1 -1
  111. package/es/isNotNilOrEmpty.js +1 -1
  112. package/es/isNotNull.js +1 -1
  113. package/es/isNotNumber.js +1 -1
  114. package/es/isNotObj.js +1 -3
  115. package/es/isNotObjLike.js +1 -3
  116. package/es/isNotPair.js +1 -1
  117. package/es/isNotPlainObj.js +1 -3
  118. package/es/isNotPrimitive.js +1 -0
  119. package/es/isNotRegExp.js +1 -1
  120. package/es/isNotSet.js +1 -0
  121. package/es/isNotString.js +1 -1
  122. package/es/isNotUndefined.js +1 -1
  123. package/es/isNotValidDate.js +1 -1
  124. package/es/isNotValidNumber.js +1 -1
  125. package/es/isNull.js +1 -1
  126. package/es/isNumber.js +1 -1
  127. package/es/isObj.js +1 -3
  128. package/es/isObjLike.js +1 -3
  129. package/es/isOdd.js +1 -1
  130. package/es/isPair.js +1 -1
  131. package/es/isPlainObj.js +1 -6
  132. package/es/isPositive.js +1 -1
  133. package/es/isPositiveZero.js +3 -3
  134. package/es/isPrimitive.js +1 -0
  135. package/es/isPromise.js +1 -1
  136. package/es/isPrototypeOf.js +1 -1
  137. package/es/isRegExp.js +1 -1
  138. package/es/isSafeInteger.js +1 -0
  139. package/es/isSentinelValue.js +1 -1
  140. package/es/isSet.js +1 -0
  141. package/es/isSparseArray.js +1 -1
  142. package/es/isString.js +1 -1
  143. package/es/isSymbol.js +1 -2
  144. package/es/isThenable.js +1 -1
  145. package/es/isTrue.js +3 -2
  146. package/es/isTruthy.js +1 -1
  147. package/es/isUinteger32.js +1 -1
  148. package/es/isUndefined.js +1 -1
  149. package/es/isValidDate.js +1 -3
  150. package/es/isValidNumber.js +1 -1
  151. package/es/lastP.js +2 -10
  152. package/es/lengthEq.js +1 -1
  153. package/es/lengthGt.js +1 -1
  154. package/es/lengthGte.js +1 -1
  155. package/es/lengthLt.js +1 -1
  156. package/es/lengthLte.js +1 -1
  157. package/es/lengthNotEq.js +1 -1
  158. package/es/lensEq.js +1 -1
  159. package/es/lensIso.js +9 -8
  160. package/es/lensNotEq.js +1 -1
  161. package/es/lensNotSatisfy.js +1 -1
  162. package/es/lensSatisfies.js +1 -1
  163. package/es/lensTraverse.js +13 -4
  164. package/es/liftF.js +1 -1
  165. package/es/liftFN.js +1 -2
  166. package/es/list.js +1 -1
  167. package/es/mapIndexed.js +1 -1
  168. package/es/mergePath.js +1 -1
  169. package/es/mergePaths.js +1 -1
  170. package/es/mergeProp.js +2 -2
  171. package/es/mergeProps.js +1 -1
  172. package/es/move.js +1 -1
  173. package/es/nand.js +1 -1
  174. package/es/neither.js +1 -3
  175. package/es/noneP.js +1 -1
  176. package/es/nonePass.js +1 -1
  177. package/es/noop.js +1 -1
  178. package/es/nor.js +1 -1
  179. package/es/notAllPass.js +1 -1
  180. package/es/notAllUnique.js +1 -1
  181. package/es/notBoth.js +1 -3
  182. package/es/notEqual.js +1 -1
  183. package/es/omitBy.js +1 -3
  184. package/es/omitIndexes.js +3 -2
  185. package/es/overlaps.js +1 -1
  186. package/es/padCharsEnd.js +1 -1
  187. package/es/padCharsStart.js +1 -1
  188. package/es/padEnd.js +1 -1
  189. package/es/padStart.js +1 -1
  190. package/es/pathNotEq.js +5 -7
  191. package/es/pathOrLazy.js +1 -1
  192. package/es/paths.js +1 -1
  193. package/es/pickIndexes.js +3 -2
  194. package/es/propNotEq.js +4 -4
  195. package/es/rangeStep.js +1 -1
  196. package/es/reduceIndexed.js +1 -1
  197. package/es/reduceP.js +5 -17
  198. package/es/reduceRightP.js +7 -20
  199. package/es/rejectP.js +1 -1
  200. package/es/renameKeyWith.js +1 -1
  201. package/es/renameKeys.js +1 -4
  202. package/es/renameKeysWith.js +1 -1
  203. package/es/repeatStr.js +1 -1
  204. package/es/replaceAll.js +1 -1
  205. package/es/resolveP.js +1 -3
  206. package/es/round.js +1 -0
  207. package/es/seq.js +1 -2
  208. package/es/sign.js +1 -0
  209. package/es/skipTake.js +1 -0
  210. package/es/sliceFrom.js +1 -1
  211. package/es/sliceTo.js +1 -1
  212. package/es/sortByPaths.js +1 -0
  213. package/es/sortByProp.js +42 -0
  214. package/es/sortByProps.js +4 -12
  215. package/es/spreadPath.js +1 -1
  216. package/es/spreadProp.js +2 -2
  217. package/es/stubArray.js +1 -1
  218. package/es/stubNull.js +1 -1
  219. package/es/stubObj.js +1 -1
  220. package/es/stubString.js +1 -1
  221. package/es/stubUndefined.js +1 -1
  222. package/es/subtractNum.js +1 -1
  223. package/es/thenCatchP.js +1 -1
  224. package/es/toArray.js +1 -0
  225. package/es/toInteger32.js +0 -1
  226. package/es/toNumber.js +1 -1
  227. package/es/toUinteger32.js +2 -1
  228. package/es/trimCharsEnd.js +1 -0
  229. package/es/trimCharsStart.js +1 -0
  230. package/es/trimEnd.js +1 -0
  231. package/es/trimStart.js +1 -0
  232. package/es/trunc.js +1 -0
  233. package/es/unzipObjWith.js +1 -1
  234. package/es/viewOr.js +1 -0
  235. package/es/weave.js +1 -1
  236. package/es/weaveLazy.js +1 -1
  237. package/es/zipObjWith.js +1 -1
  238. package/lib/Y.js +1 -2
  239. package/lib/allEqual.js +0 -5
  240. package/lib/allEqualTo.js +0 -2
  241. package/lib/allIdentical.js +0 -4
  242. package/lib/allIdenticalTo.js +0 -2
  243. package/lib/allP.js +0 -2
  244. package/lib/allSettledP.js +1 -6
  245. package/lib/allUnique.js +0 -4
  246. package/lib/anyP.js +0 -10
  247. package/lib/appendFlipped.js +0 -2
  248. package/lib/argsPass.js +0 -5
  249. package/lib/async.js +0 -9
  250. package/lib/cata.js +0 -7
  251. package/lib/catchP.js +0 -2
  252. package/lib/ceil.js +1 -2
  253. package/lib/compact.js +0 -4
  254. package/lib/concatAll.js +3 -6
  255. package/lib/concatRight.js +0 -2
  256. package/lib/copyKeys.js +4 -8
  257. package/lib/curryRight.js +0 -4
  258. package/lib/curryRightN.js +0 -3
  259. package/lib/defaultWhen.js +0 -2
  260. package/lib/delayP.js +1 -8
  261. package/lib/dispatch.js +36 -16
  262. package/lib/divideNum.js +0 -2
  263. package/lib/dropArgs.js +0 -2
  264. package/lib/ensureArray.js +1 -5
  265. package/lib/escapeRegExp.js +0 -4
  266. package/lib/fantasy-land/Identity.js +14 -27
  267. package/lib/fantasy-land/traits.js +4 -28
  268. package/lib/fantasy-land/util.js +6 -5
  269. package/lib/filterIndexed.js +0 -2
  270. package/lib/findOr.js +1 -2
  271. package/lib/flattenDepth.js +2 -15
  272. package/lib/flattenPath.js +0 -2
  273. package/lib/flattenProp.js +1 -5
  274. package/lib/floor.js +1 -2
  275. package/lib/fnull.js +1 -6
  276. package/lib/inRange.js +1 -4
  277. package/lib/included.js +0 -2
  278. package/lib/index.js +4 -425
  279. package/lib/internal/ap.js +0 -9
  280. package/lib/internal/compareLength.js +0 -2
  281. package/lib/internal/isCoercible.js +0 -6
  282. package/lib/internal/isOfTypeObject.js +0 -3
  283. package/lib/internal/makeFlat.js +0 -8
  284. package/lib/internal/ponyfills/Array.from.js +1 -19
  285. package/lib/internal/ponyfills/Math.sign.js +0 -2
  286. package/lib/internal/ponyfills/Math.trunc.js +2 -7
  287. package/lib/internal/ponyfills/Number.isFinite.js +0 -4
  288. package/lib/internal/ponyfills/Number.isInteger.js +0 -4
  289. package/lib/internal/ponyfills/Number.isNaN.js +0 -4
  290. package/lib/internal/ponyfills/Number.isSafeInteger.js +0 -5
  291. package/lib/internal/ponyfills/Promise.allSettled.js +1 -15
  292. package/lib/internal/ponyfills/Promise.any.js +4 -37
  293. package/lib/internal/ponyfills/String.padEnd.js +0 -10
  294. package/lib/internal/ponyfills/String.padStart.js +4 -13
  295. package/lib/internal/ponyfills/String.repeat.js +3 -16
  296. package/lib/internal/ponyfills/String.replaceAll.js +0 -9
  297. package/lib/internal/ponyfills/String.trimEnd.js +0 -2
  298. package/lib/internal/ponyfills/String.trimStart.js +0 -2
  299. package/lib/invoke.js +0 -4
  300. package/lib/invokeArgs.js +1 -5
  301. package/lib/isArray.js +0 -4
  302. package/lib/isArrayLike.js +0 -16
  303. package/lib/isAsyncFunction.js +0 -2
  304. package/lib/isBigInt.js +0 -2
  305. package/lib/isBlank.js +0 -4
  306. package/lib/isBoolean.js +0 -2
  307. package/lib/isDate.js +0 -2
  308. package/lib/isEmptyArray.js +0 -4
  309. package/lib/isEmptyString.js +0 -2
  310. package/lib/isError.js +0 -2
  311. package/lib/isEven.js +0 -5
  312. package/lib/isFalse.js +2 -3
  313. package/lib/isFalsy.js +0 -4
  314. package/lib/isFinite.js +1 -8
  315. package/lib/isFloat.js +0 -5
  316. package/lib/isFunction.js +0 -5
  317. package/lib/isGeneratorFunction.js +1 -15
  318. package/lib/isIndexed.js +1 -5
  319. package/lib/isInteger.js +1 -6
  320. package/lib/isInteger32.js +0 -4
  321. package/lib/isIterable.js +0 -5
  322. package/lib/isMap.js +1 -2
  323. package/lib/isNaN.js +1 -8
  324. package/lib/isNaturalNumber.js +1 -5
  325. package/lib/isNegative.js +0 -4
  326. package/lib/isNegativeZero.js +1 -3
  327. package/lib/isNilOrEmpty.js +0 -2
  328. package/lib/isNonEmptyArray.js +0 -5
  329. package/lib/isNonEmptyString.js +0 -6
  330. package/lib/isNonNegative.js +0 -4
  331. package/lib/isNonPositive.js +0 -4
  332. package/lib/isNotArray.js +0 -4
  333. package/lib/isNotArrayLike.js +0 -4
  334. package/lib/isNotAsyncFunction.js +0 -6
  335. package/lib/isNotBoolean.js +0 -4
  336. package/lib/isNotDate.js +0 -4
  337. package/lib/isNotEmpty.js +0 -2
  338. package/lib/isNotFinite.js +0 -4
  339. package/lib/isNotFloat.js +0 -4
  340. package/lib/isNotFunction.js +0 -6
  341. package/lib/isNotGeneratorFunction.js +0 -6
  342. package/lib/isNotInteger.js +0 -4
  343. package/lib/isNotMap.js +1 -4
  344. package/lib/isNotNaN.js +0 -4
  345. package/lib/isNotNil.js +0 -2
  346. package/lib/isNotNilOrEmpty.js +0 -4
  347. package/lib/isNotNull.js +0 -4
  348. package/lib/isNotNumber.js +0 -4
  349. package/lib/isNotObj.js +0 -6
  350. package/lib/isNotObjLike.js +0 -6
  351. package/lib/isNotPair.js +0 -4
  352. package/lib/isNotPlainObj.js +0 -6
  353. package/lib/isNotPrimitive.js +1 -4
  354. package/lib/isNotRegExp.js +0 -4
  355. package/lib/isNotSet.js +1 -4
  356. package/lib/isNotString.js +0 -4
  357. package/lib/isNotUndefined.js +0 -4
  358. package/lib/isNotValidDate.js +0 -4
  359. package/lib/isNotValidNumber.js +0 -4
  360. package/lib/isNull.js +0 -2
  361. package/lib/isNumber.js +0 -2
  362. package/lib/isObj.js +0 -8
  363. package/lib/isObjLike.js +0 -7
  364. package/lib/isOdd.js +0 -4
  365. package/lib/isPair.js +0 -4
  366. package/lib/isPlainObj.js +1 -12
  367. package/lib/isPositive.js +0 -4
  368. package/lib/isPositiveZero.js +1 -3
  369. package/lib/isPrimitive.js +1 -11
  370. package/lib/isPromise.js +0 -4
  371. package/lib/isPrototypeOf.js +0 -4
  372. package/lib/isRegExp.js +0 -2
  373. package/lib/isSafeInteger.js +1 -6
  374. package/lib/isSentinelValue.js +1 -6
  375. package/lib/isSet.js +1 -2
  376. package/lib/isSparseArray.js +0 -4
  377. package/lib/isString.js +0 -2
  378. package/lib/isSymbol.js +0 -3
  379. package/lib/isThenable.js +0 -4
  380. package/lib/isTrue.js +2 -3
  381. package/lib/isTruthy.js +0 -2
  382. package/lib/isUinteger32.js +0 -4
  383. package/lib/isUndefined.js +0 -4
  384. package/lib/isValidDate.js +0 -7
  385. package/lib/isValidNumber.js +0 -5
  386. package/lib/lastP.js +1 -17
  387. package/lib/lengthEq.js +0 -4
  388. package/lib/lengthGt.js +0 -4
  389. package/lib/lengthGte.js +0 -4
  390. package/lib/lengthLt.js +0 -4
  391. package/lib/lengthLte.js +0 -4
  392. package/lib/lengthNotEq.js +0 -4
  393. package/lib/lensEq.js +0 -2
  394. package/lib/lensIso.js +6 -8
  395. package/lib/lensNotEq.js +0 -4
  396. package/lib/lensNotSatisfy.js +0 -4
  397. package/lib/lensSatisfies.js +0 -4
  398. package/lib/lensTraverse.js +11 -7
  399. package/lib/liftF.js +0 -4
  400. package/lib/liftFN.js +0 -5
  401. package/lib/list.js +0 -2
  402. package/lib/mapIndexed.js +0 -2
  403. package/lib/mergePath.js +0 -2
  404. package/lib/mergePaths.js +0 -4
  405. package/lib/mergeProp.js +1 -5
  406. package/lib/mergeProps.js +0 -2
  407. package/lib/move.js +0 -2
  408. package/lib/nand.js +0 -3
  409. package/lib/neither.js +0 -4
  410. package/lib/noneP.js +0 -6
  411. package/lib/nonePass.js +0 -2
  412. package/lib/noop.js +0 -4
  413. package/lib/nor.js +0 -3
  414. package/lib/notAllPass.js +0 -2
  415. package/lib/notAllUnique.js +0 -4
  416. package/lib/notBoth.js +0 -4
  417. package/lib/notEqual.js +0 -2
  418. package/lib/omitBy.js +0 -4
  419. package/lib/omitIndexes.js +1 -3
  420. package/lib/overlaps.js +1 -5
  421. package/lib/padCharsEnd.js +1 -6
  422. package/lib/padCharsStart.js +1 -6
  423. package/lib/padEnd.js +0 -3
  424. package/lib/padStart.js +0 -3
  425. package/lib/pathNotEq.js +4 -8
  426. package/lib/pathOrLazy.js +0 -2
  427. package/lib/paths.js +0 -2
  428. package/lib/pickIndexes.js +1 -3
  429. package/lib/propNotEq.js +3 -5
  430. package/lib/rangeStep.js +0 -4
  431. package/lib/reduceIndexed.js +0 -2
  432. package/lib/reduceP.js +4 -22
  433. package/lib/reduceRightP.js +5 -25
  434. package/lib/rejectP.js +0 -2
  435. package/lib/renameKeyWith.js +0 -4
  436. package/lib/renameKeys.js +1 -7
  437. package/lib/renameKeysWith.js +0 -2
  438. package/lib/repeatStr.js +1 -6
  439. package/lib/replaceAll.js +1 -6
  440. package/lib/resolveP.js +0 -4
  441. package/lib/round.js +1 -2
  442. package/lib/seq.js +0 -4
  443. package/lib/sign.js +1 -6
  444. package/lib/skipTake.js +1 -2
  445. package/lib/sliceFrom.js +0 -2
  446. package/lib/sliceTo.js +0 -2
  447. package/lib/sortByPaths.js +1 -2
  448. package/lib/sortByProp.js +47 -0
  449. package/lib/sortByProps.js +4 -14
  450. package/lib/spreadPath.js +0 -2
  451. package/lib/spreadProp.js +1 -5
  452. package/lib/stubArray.js +1 -2
  453. package/lib/stubNull.js +0 -2
  454. package/lib/stubObj.js +1 -2
  455. package/lib/stubString.js +0 -2
  456. package/lib/stubUndefined.js +0 -3
  457. package/lib/subtractNum.js +0 -2
  458. package/lib/thenCatchP.js +0 -2
  459. package/lib/toArray.js +1 -6
  460. package/lib/toInteger32.js +1 -4
  461. package/lib/toNumber.js +0 -4
  462. package/lib/toUinteger32.js +1 -4
  463. package/lib/trimCharsEnd.js +1 -4
  464. package/lib/trimCharsStart.js +1 -4
  465. package/lib/trimEnd.js +1 -6
  466. package/lib/trimStart.js +1 -6
  467. package/lib/trunc.js +1 -6
  468. package/lib/unzipObjWith.js +0 -4
  469. package/lib/viewOr.js +1 -2
  470. package/lib/weave.js +0 -2
  471. package/lib/weaveLazy.js +0 -2
  472. package/lib/zipObjWith.js +0 -2
  473. package/package.json +41 -39
  474. package/src/concatAll.js +2 -1
  475. package/src/ensureArray.js +1 -1
  476. package/src/flattenProp.js +1 -1
  477. package/src/index.js +1 -0
  478. package/src/isFalse.js +2 -2
  479. package/src/isGeneratorFunction.js +2 -19
  480. package/src/isNegativeZero.js +2 -2
  481. package/src/isPositiveZero.js +2 -2
  482. package/src/isTrue.js +2 -2
  483. package/src/lensTraverse.js +18 -6
  484. package/src/mergeProp.js +1 -1
  485. package/src/pathNotEq.js +4 -4
  486. package/src/propNotEq.js +3 -3
  487. package/src/sortByProp.js +45 -0
  488. package/src/sortByProps.js +1 -1
  489. package/src/spreadProp.js +1 -1
  490. package/tmp-test-bundle.js.LICENSE.txt +618 -0
  491. package/types/.eslintrc.js +23 -0
  492. package/types/dtslint.eslint.js +13 -0
  493. package/types/index.d.ts +24 -5
@@ -1,26 +1,18 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  exports.__esModule = true;
6
4
  exports["default"] = void 0;
7
-
8
5
  var _ramda = require("ramda");
9
-
10
6
  var fl = _interopRequireWildcard(require("./mapping"));
11
-
12
7
  var _traits = require("./traits");
13
-
14
8
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
9
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
18
11
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
-
12
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
22
13
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
16
  /**
25
17
  * The simplest {@link https://github.com/fantasyland/fantasy-land|fantasy-land}
26
18
  * compatible monad which attaches no information to values.
@@ -53,9 +45,9 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
53
45
  */
54
46
  function Identity(value) {
55
47
  _classCallCheck(this, Identity);
56
-
57
48
  this.value = value;
58
49
  }
50
+
59
51
  /**
60
52
  * Catamorphism for a value.
61
53
  * @returns {*}
@@ -64,13 +56,12 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
64
56
  * const a = Identity.of(1);
65
57
  * a.get(); //=> 1
66
58
  */
67
-
68
-
69
59
  _createClass(Identity, [{
70
60
  key: "get",
71
61
  value: function get() {
72
62
  return this.value;
73
63
  }
64
+
74
65
  /**
75
66
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#apply|Apply} specification.
76
67
  *
@@ -84,7 +75,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
84
75
  *
85
76
  * a.ap(b); //=> Identity(2)
86
77
  */
87
-
88
78
  }, {
89
79
  key: _fl$ap,
90
80
  value: function value(applyWithFn) {
@@ -95,6 +85,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
95
85
  value: function ap(applyWithFn) {
96
86
  return this[fl.ap](applyWithFn);
97
87
  }
88
+
98
89
  /**
99
90
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#functor|Functor} specification.
100
91
  *
@@ -106,7 +97,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
106
97
  * const a = Identity.of(1);
107
98
  * a.map(a => a + 1); //=> Identity(2)
108
99
  */
109
-
110
100
  }, {
111
101
  key: _fl$map,
112
102
  value: function value(fn) {
@@ -117,6 +107,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
117
107
  value: function map(fn) {
118
108
  return this[fl.map](fn);
119
109
  }
110
+
120
111
  /**
121
112
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#setoid|Setoid} specification.
122
113
  *
@@ -132,7 +123,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
132
123
  * a.equals(b); //=> true
133
124
  * a.equals(c); //=> false
134
125
  */
135
-
136
126
  }, {
137
127
  key: _fl$equals,
138
128
  value: function value(setoid) {
@@ -143,6 +133,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
143
133
  value: function equals(setoid) {
144
134
  return this[fl.equals](setoid);
145
135
  }
136
+
146
137
  /**
147
138
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#semigroup|Semigroup} specification.
148
139
  *
@@ -163,7 +154,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
163
154
  * const f = Identity.of(['f']);
164
155
  * e.concat(f); //=> ['e', 'f']
165
156
  */
166
-
167
157
  }, {
168
158
  key: _fl$concat,
169
159
  value: function value(semigroup) {
@@ -174,6 +164,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
174
164
  value: function concat(semigroup) {
175
165
  return this[fl.concat](semigroup);
176
166
  }
167
+
177
168
  /**
178
169
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#chain|Chain} specification.
179
170
  *
@@ -187,7 +178,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
187
178
  *
188
179
  * a.chain(fn).chain(fn); //=> Identity(3)
189
180
  */
190
-
191
181
  }, {
192
182
  key: _fl$chain,
193
183
  value: function value(fn) {
@@ -198,6 +188,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
198
188
  value: function chain(fn) {
199
189
  return this[fl.chain](fn);
200
190
  }
191
+
201
192
  /**
202
193
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#ord|Ord} specification.
203
194
  *
@@ -214,7 +205,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
214
205
  * a.lte(c); //=> true
215
206
  * c.lte(a); //=> false
216
207
  */
217
-
218
208
  }, {
219
209
  key: _fl$lte,
220
210
  value: function value(ord) {
@@ -225,6 +215,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
225
215
  value: function lte(ord) {
226
216
  return this[fl.lte](ord);
227
217
  }
218
+
228
219
  /**
229
220
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#monoid|Monoid*} specification.
230
221
  * Partial implementation of Monoid specification. `empty` method on instance only, returning
@@ -241,7 +232,6 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
241
232
  * a.concat(i); //=> Identity('string');
242
233
  * i.concat(a); //=> Identity('string');
243
234
  */
244
-
245
235
  }, {
246
236
  key: _fl$empty,
247
237
  value: function value() {
@@ -252,6 +242,7 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
252
242
  value: function empty() {
253
243
  return this[fl.empty]();
254
244
  }
245
+
255
246
  /**
256
247
  * Fantasy land {@link https://github.com/fantasyland/fantasy-land#contravariant|Contravariant} specification.
257
248
  *
@@ -268,12 +259,10 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
268
259
  * Identity.of(identity).contramap(divide2).contramap(add1).get()(3); //=> 2
269
260
  * Identity.of(identity).contramap(a => divide2(add1(a))).get()(3); //=> 2
270
261
  */
271
-
272
262
  }, {
273
263
  key: _fl$contramap,
274
264
  value: function value(fn) {
275
265
  var _this = this;
276
-
277
266
  return this.constructor.of(function (value) {
278
267
  return _this.value(fn(value));
279
268
  });
@@ -305,19 +294,17 @@ var Identity = /*#__PURE__*/function (_fl$of, _fl$ap, _fl$map, _fl$equals, _fl$c
305
294
  value: function of(value) {
306
295
  return new Identity(value);
307
296
  }
297
+
308
298
  /**
309
299
  * @static
310
300
  */
311
-
312
301
  }, {
313
302
  key: '@@type',
314
303
  get: function get() {
315
304
  return 'RA/Identity';
316
305
  }
317
306
  }]);
318
-
319
307
  return Identity;
320
308
  }(fl.of, fl.ap, fl.map, fl.equals, fl.concat, fl.chain, fl.lte, fl.empty, fl.contramap);
321
-
322
309
  var _default = Identity;
323
310
  exports["default"] = _default;
@@ -1,55 +1,37 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  exports.__esModule = true;
6
4
  exports.setoidTrait = exports.semigroupTrait = exports.ordTrait = exports.functorTrait = exports.chainTrait = exports.applyTrait = void 0;
7
-
8
5
  var _ramda = require("ramda");
9
-
10
6
  var _isString = _interopRequireDefault(require("../isString"));
11
-
12
7
  var _isNumber = _interopRequireDefault(require("../isNumber"));
13
-
14
8
  var _isFunction = _interopRequireDefault(require("../isFunction"));
15
-
16
9
  var _util = require("./util");
17
-
18
10
  var fl = _interopRequireWildcard(require("./mapping"));
19
-
20
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
-
14
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
18
  var functorTrait = _defineProperty({}, fl.map, function (fn) {
29
19
  return this.constructor[fl.of](fn(this.value));
30
20
  });
31
-
32
21
  exports.functorTrait = functorTrait;
33
-
34
22
  var applyTrait = _defineProperty({}, fl.ap, function (applyWithFn) {
35
23
  var _this = this;
36
-
37
24
  return applyWithFn.map(function (fn) {
38
25
  return fn(_this.value);
39
26
  });
40
27
  });
41
-
42
28
  exports.applyTrait = applyTrait;
43
-
44
29
  var setoidTrait = _defineProperty({}, fl.equals, function (setoid) {
45
30
  return (0, _util.isSameType)(this, setoid) && (0, _ramda.equals)(this.value, setoid.value);
46
31
  });
47
-
48
32
  exports.setoidTrait = setoidTrait;
49
-
50
33
  var semigroupTrait = _defineProperty({}, fl.concat, function (semigroup) {
51
34
  var concatenatedValue = this.value;
52
-
53
35
  if ((0, _isString["default"])(this.value) || (0, _isNumber["default"])(this.value)) {
54
36
  concatenatedValue = this.value + semigroup.value;
55
37
  } else if ((0, _ramda.pathSatisfies)(_isFunction["default"], ['value', fl.concat], this)) {
@@ -57,21 +39,15 @@ var semigroupTrait = _defineProperty({}, fl.concat, function (semigroup) {
57
39
  } else if ((0, _ramda.pathSatisfies)(_isFunction["default"], ['value', 'concat'], this)) {
58
40
  concatenatedValue = this.value.concat(semigroup.value);
59
41
  }
60
-
61
42
  return this.constructor[fl.of](concatenatedValue);
62
43
  });
63
-
64
44
  exports.semigroupTrait = semigroupTrait;
65
-
66
45
  var chainTrait = _defineProperty({}, fl.chain, function (fn) {
67
46
  var newChain = fn(this.value);
68
47
  return (0, _util.isSameType)(this, newChain) ? newChain : this;
69
48
  });
70
-
71
49
  exports.chainTrait = chainTrait;
72
-
73
50
  var ordTrait = _defineProperty({}, fl.lte, function (ord) {
74
51
  return (0, _util.isSameType)(this, ord) && (this.value < ord.value || this[fl.equals](ord));
75
52
  });
76
-
77
53
  exports.ordTrait = ordTrait;
@@ -2,20 +2,21 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.typeEquals = exports.type = exports.isSameType = exports.isNotSameType = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  // type :: Monad a => a -> String
9
- var type = (0, _ramda.either)((0, _ramda.path)(['@@type']), (0, _ramda.path)(['constructor', '@@type'])); // typeEquals :: Monad a => String -> a -> Boolean
7
+ var type = (0, _ramda.either)((0, _ramda.path)(['@@type']), (0, _ramda.path)(['constructor', '@@type']));
10
8
 
9
+ // typeEquals :: Monad a => String -> a -> Boolean
11
10
  exports.type = type;
12
11
  var typeEquals = (0, _ramda.curry)(function (typeIdent, monad) {
13
12
  return type(monad) === typeIdent;
14
- }); // isSameType :: (Monad a, Monad b) => a -> b -> Boolean
13
+ });
15
14
 
15
+ // isSameType :: (Monad a, Monad b) => a -> b -> Boolean
16
16
  exports.typeEquals = typeEquals;
17
- var isSameType = (0, _ramda.curryN)(2, (0, _ramda.useWith)(_ramda.equals, [type, type])); // isNotSameType :: (Monad a, Monad b) => a -> b -> Boolean
17
+ var isSameType = (0, _ramda.curryN)(2, (0, _ramda.useWith)(_ramda.equals, [type, type]));
18
18
 
19
+ // isNotSameType :: (Monad a, Monad b) => a -> b -> Boolean
19
20
  exports.isSameType = isSameType;
20
21
  var isNotSameType = (0, _ramda.complement)(isSameType);
21
22
  exports.isNotSameType = isNotSameType;
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  /**
9
7
  * {@link http://ramdajs.com/docs/#filter|R.filter} function that more closely resembles `Array.prototype.filter`.
10
8
  * It takes two new parameters to its callback function: the current index, and the entire list.
package/lib/findOr.js CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  /**
9
7
  * Returns the first element of the list which matches the predicate.
10
8
  * Returns default value if no element matches or matched element is `null`, `undefined` or `NaN`.
@@ -27,6 +25,7 @@ var _ramda = require("ramda");
27
25
  * RA.findOr(1, val => val === 2, [1, 2, undefined]); // => 2
28
26
  * RA.findOr(1, val => val === 3, [1, 2, undefined]); // => 1
29
27
  */
28
+
30
29
  var findOr = (0, _ramda.curry)(function (defaultVal, fn, list) {
31
30
  return (0, _ramda.pipe)((0, _ramda.find)(fn), (0, _ramda.defaultTo)(defaultVal))(list);
32
31
  });
@@ -2,26 +2,17 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  var _makeFlat2 = _interopRequireDefault(require("./internal/makeFlat"));
9
-
10
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
8
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
13
-
14
9
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
-
16
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
-
18
11
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
-
20
12
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
-
22
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
-
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
14
  var flatten1 = (0, _makeFlat2["default"])(false);
15
+
25
16
  /**
26
17
  * Flattens the list to the specified depth.
27
18
  *
@@ -41,17 +32,13 @@ var flatten1 = (0, _makeFlat2["default"])(false);
41
32
  * [1, [2], [3, [4, 5], 6, [[[7], 8]]], 9, 10]
42
33
  * ); //=> [1, 2, 3, 4, 5, 6, [[7], 8], 9, 10];
43
34
  */
44
-
45
35
  var flattenDepth = (0, _ramda.curry)(function (depth, list) {
46
36
  var currentDept = depth;
47
-
48
37
  var flatList = _toConsumableArray(list);
49
-
50
38
  while (currentDept > 0) {
51
39
  flatList = flatten1(flatList);
52
40
  currentDept -= 1;
53
41
  }
54
-
55
42
  return flatList;
56
43
  });
57
44
  var _default = flattenDepth;
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  /**
9
7
  * Flattens a property path so that its fields are spread out into the provided object.
10
8
  * It's like {@link RA.spreadPath|spreadPath}, but preserves object under the property path.
@@ -2,13 +2,9 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  var _flattenPath = _interopRequireDefault(require("./flattenPath"));
9
-
10
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
8
  /**
13
9
  * Flattens a property so that its fields are spread out into the provided object.
14
10
  * It's like {@link RA.spreadProp|spreadProp}, but preserves object under the property path.
@@ -31,7 +27,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
31
27
  * ); // => { a: 1, c: 3, d: 4, b: { c: 3, d: 4 } };
32
28
  */
33
29
  var flattenProp = (0, _ramda.curry)(function (prop, obj) {
34
- return (0, _flattenPath["default"])((0, _ramda.of)(prop), obj);
30
+ return (0, _flattenPath["default"])((0, _ramda.of)(Array, prop), obj);
35
31
  });
36
32
  var _default = flattenProp;
37
33
  exports["default"] = _default;
package/lib/floor.js CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  /**
9
7
  * Returns the largest integer less than or equal to a given number.
10
8
  *
@@ -26,6 +24,7 @@ var _ramda = require("ramda");
26
24
  * RA.floor(-45.95); //=> -46
27
25
  * RA.floor(null); //=> 0
28
26
  */
27
+
29
28
  var floor = (0, _ramda.curryN)(1, (0, _ramda.bind)(Math.floor, Math));
30
29
  var _default = floor;
31
30
  exports["default"] = _default;
package/lib/fnull.js CHANGED
@@ -2,15 +2,10 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  var _defaultWhen = _interopRequireDefault(require("./defaultWhen"));
9
-
10
7
  var _mapIndexed = _interopRequireDefault(require("./mapIndexed"));
11
-
12
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
9
  /**
15
10
  * Returns a function which is called with the given arguments. If any of the given arguments are null or undefined,
16
11
  * the corresponding default value for that argument is used instead.
@@ -31,12 +26,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
31
26
  * addDefaults(2, null); // => 7
32
27
  * addDefaults(undefined, undefined); // => 9
33
28
  */
29
+
34
30
  var fnull = (0, _ramda.curry)(function (fn, defaults) {
35
31
  return (0, _ramda.curryN)(fn.length, function () {
36
32
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
33
  args[_key] = arguments[_key];
38
34
  }
39
-
40
35
  var argsWithDefaults = (0, _mapIndexed["default"])(function (val, idx) {
41
36
  return (0, _defaultWhen["default"])(_ramda.isNil, defaults[idx], val);
42
37
  }, args);
package/lib/inRange.js CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  var inRangeImp = (0, _ramda.ifElse)(_ramda.gte, function () {
9
7
  throw new Error('low must not be greater than high in inRange(low, high, value)');
10
8
  }, (0, _ramda.useWith)(_ramda.both, [_ramda.lte, _ramda.gt]));
9
+
11
10
  /**
12
11
  * Checks if `value` is between `low` and up to but not including `high`.
13
12
  *
@@ -29,9 +28,7 @@ var inRangeImp = (0, _ramda.ifElse)(_ramda.gte, function () {
29
28
  * RA.inRange(0, 5, 5); //=> false
30
29
  * RA.inRange(0, 5, -1); //=> false
31
30
  */
32
-
33
31
  var _default = (0, _ramda.curry)(function (low, high, value) {
34
32
  return inRangeImp(low, high)(value);
35
33
  });
36
-
37
34
  exports["default"] = _default;
package/lib/included.js CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ramda = require("ramda");
7
-
8
6
  /**
9
7
  * Returns true if the specified value is equal, in R.equals terms,
10
8
  * to at least one element of the given list or false otherwise.