ramda-adjunct 3.2.0 → 3.4.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 (483) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +23 -0
  3. package/README.md +1 -1
  4. package/dist/RA.node.js +165 -1571
  5. package/dist/RA.node.min.js +1 -1
  6. package/dist/RA.web.js +165 -1571
  7. package/dist/RA.web.min.js +1 -1
  8. package/dist/RA.web.standalone.js +166 -1571
  9. package/dist/RA.web.standalone.min.js +1 -1
  10. package/es/Y.js +1 -0
  11. package/es/allEqual.js +3 -2
  12. package/es/allEqualTo.js +1 -1
  13. package/es/allIdentical.js +1 -1
  14. package/es/allIdenticalTo.js +1 -1
  15. package/es/allP.js +1 -1
  16. package/es/allSettledP.js +1 -1
  17. package/es/allUnique.js +1 -1
  18. package/es/anyP.js +1 -1
  19. package/es/appendFlipped.js +1 -1
  20. package/es/argsPass.js +1 -1
  21. package/es/async.js +1 -5
  22. package/es/cata.js +1 -4
  23. package/es/catchP.js +1 -1
  24. package/es/ceil.js +1 -0
  25. package/es/compact.js +1 -1
  26. package/es/concatAll.js +1 -1
  27. package/es/concatRight.js +1 -1
  28. package/es/copyKeys.js +5 -5
  29. package/es/curryRight.js +1 -1
  30. package/es/curryRightN.js +1 -2
  31. package/es/defaultWhen.js +1 -1
  32. package/es/delayP.js +1 -3
  33. package/es/dispatch.js +1 -10
  34. package/es/divideNum.js +1 -1
  35. package/es/dropArgs.js +1 -1
  36. package/es/ensureArray.js +1 -1
  37. package/es/escapeRegExp.js +1 -1
  38. package/es/fantasy-land/Identity.js +15 -20
  39. package/es/fantasy-land/traits.js +4 -5
  40. package/es/fantasy-land/util.js +8 -4
  41. package/es/filterIndexed.js +1 -1
  42. package/es/findOr.js +1 -0
  43. package/es/flattenDepth.js +1 -12
  44. package/es/flattenPath.js +1 -1
  45. package/es/flattenProp.js +1 -1
  46. package/es/floor.js +1 -0
  47. package/es/fnull.js +1 -1
  48. package/es/inRange.js +1 -1
  49. package/es/included.js +1 -1
  50. package/es/index.js +18 -29
  51. package/es/internal/ap.js +0 -1
  52. package/es/internal/isOfTypeObject.js +0 -2
  53. package/es/internal/makeFlat.js +1 -6
  54. package/es/internal/ponyfills/Array.from.js +0 -12
  55. package/es/internal/ponyfills/Math.sign.js +0 -1
  56. package/es/internal/ponyfills/Math.trunc.js +2 -5
  57. package/es/internal/ponyfills/Number.isFinite.js +2 -1
  58. package/es/internal/ponyfills/Number.isNaN.js +2 -1
  59. package/es/internal/ponyfills/Promise.allSettled.js +0 -10
  60. package/es/internal/ponyfills/Promise.any.js +3 -31
  61. package/es/internal/ponyfills/String.padEnd.js +0 -6
  62. package/es/internal/ponyfills/String.padStart.js +4 -9
  63. package/es/internal/ponyfills/String.repeat.js +3 -13
  64. package/es/internal/ponyfills/String.replaceAll.js +0 -5
  65. package/es/invoke.js +1 -1
  66. package/es/invokeArgs.js +1 -0
  67. package/es/isArray.js +1 -1
  68. package/es/isArrayLike.js +2 -11
  69. package/es/isAsyncFunction.js +1 -1
  70. package/es/isBigInt.js +1 -1
  71. package/es/isBlank.js +0 -1
  72. package/es/isBoolean.js +1 -1
  73. package/es/isDate.js +1 -1
  74. package/es/isEmptyArray.js +1 -1
  75. package/es/isEmptyString.js +1 -1
  76. package/es/isError.js +1 -1
  77. package/es/isEven.js +1 -1
  78. package/es/isFalse.js +1 -0
  79. package/es/isFalsy.js +1 -1
  80. package/es/isFinite.js +1 -2
  81. package/es/isFloat.js +1 -1
  82. package/es/isFunction.js +1 -1
  83. package/es/isGeneratorFunction.js +2 -13
  84. package/es/isIndexed.js +1 -0
  85. package/es/isInteger.js +1 -1
  86. package/es/isInteger32.js +1 -1
  87. package/es/isIterable.js +1 -2
  88. package/es/isMap.js +1 -0
  89. package/es/isNaN.js +1 -2
  90. package/es/isNaturalNumber.js +1 -0
  91. package/es/isNegative.js +1 -1
  92. package/es/isNegativeZero.js +1 -1
  93. package/es/isNilOrEmpty.js +1 -1
  94. package/es/isNonEmptyArray.js +1 -1
  95. package/es/isNonEmptyString.js +1 -1
  96. package/es/isNonNegative.js +1 -1
  97. package/es/isNonPositive.js +1 -1
  98. package/es/isNotArray.js +1 -1
  99. package/es/isNotArrayLike.js +1 -1
  100. package/es/isNotAsyncFunction.js +1 -3
  101. package/es/isNotBoolean.js +1 -1
  102. package/es/isNotDate.js +1 -1
  103. package/es/isNotEmpty.js +1 -1
  104. package/es/isNotFinite.js +1 -1
  105. package/es/isNotFloat.js +1 -1
  106. package/es/isNotFunction.js +1 -3
  107. package/es/isNotGeneratorFunction.js +1 -3
  108. package/es/isNotInteger.js +1 -1
  109. package/es/isNotMap.js +1 -0
  110. package/es/isNotNaN.js +1 -1
  111. package/es/isNotNil.js +1 -1
  112. package/es/isNotNilOrEmpty.js +1 -1
  113. package/es/isNotNull.js +1 -1
  114. package/es/isNotNumber.js +1 -1
  115. package/es/isNotObj.js +1 -3
  116. package/es/isNotObjLike.js +1 -3
  117. package/es/isNotPair.js +1 -1
  118. package/es/isNotPlainObj.js +1 -3
  119. package/es/isNotPrimitive.js +2 -0
  120. package/es/isNotRegExp.js +1 -1
  121. package/es/isNotSet.js +1 -0
  122. package/es/isNotString.js +1 -1
  123. package/es/isNotUndefined.js +1 -1
  124. package/es/isNotValidDate.js +1 -1
  125. package/es/isNotValidNumber.js +1 -1
  126. package/es/isNull.js +1 -1
  127. package/es/isNumber.js +1 -1
  128. package/es/isObj.js +1 -3
  129. package/es/isObjLike.js +1 -3
  130. package/es/isOdd.js +1 -1
  131. package/es/isPair.js +1 -1
  132. package/es/isPlainObj.js +1 -6
  133. package/es/isPositive.js +1 -1
  134. package/es/isPositiveZero.js +1 -1
  135. package/es/isPrimitive.js +2 -0
  136. package/es/isPromise.js +1 -1
  137. package/es/isPrototypeOf.js +1 -1
  138. package/es/isRegExp.js +1 -1
  139. package/es/isSafeInteger.js +1 -0
  140. package/es/isSentinelValue.js +1 -1
  141. package/es/isSet.js +1 -0
  142. package/es/isSparseArray.js +1 -1
  143. package/es/isString.js +1 -1
  144. package/es/isSymbol.js +1 -2
  145. package/es/isThenable.js +1 -1
  146. package/es/isTrue.js +1 -0
  147. package/es/isTruthy.js +1 -1
  148. package/es/isUinteger32.js +1 -1
  149. package/es/isUndefined.js +1 -1
  150. package/es/isValidDate.js +1 -3
  151. package/es/isValidNumber.js +1 -1
  152. package/es/lastP.js +1 -9
  153. package/es/lengthEq.js +1 -1
  154. package/es/lengthGt.js +1 -1
  155. package/es/lengthGte.js +1 -1
  156. package/es/lengthLt.js +1 -1
  157. package/es/lengthLte.js +1 -1
  158. package/es/lengthNotEq.js +1 -1
  159. package/es/lensEq.js +1 -1
  160. package/es/lensIso.js +9 -8
  161. package/es/lensNotEq.js +1 -1
  162. package/es/lensNotSatisfy.js +1 -1
  163. package/es/lensSatisfies.js +1 -1
  164. package/es/lensTraverse.js +1 -1
  165. package/es/liftF.js +1 -1
  166. package/es/liftFN.js +1 -2
  167. package/es/list.js +1 -1
  168. package/es/mapIndexed.js +1 -1
  169. package/es/mergePath.js +1 -1
  170. package/es/mergePaths.js +1 -1
  171. package/es/mergeProp.js +1 -1
  172. package/es/mergeProps.js +1 -1
  173. package/es/move.js +1 -1
  174. package/es/nand.js +1 -1
  175. package/es/neither.js +1 -3
  176. package/es/noneP.js +1 -1
  177. package/es/nonePass.js +1 -1
  178. package/es/noop.js +1 -1
  179. package/es/nor.js +1 -1
  180. package/es/notAllPass.js +1 -1
  181. package/es/notAllUnique.js +1 -1
  182. package/es/notBoth.js +1 -3
  183. package/es/notEqual.js +1 -1
  184. package/es/omitBy.js +1 -3
  185. package/es/omitIndexes.js +3 -2
  186. package/es/overlaps.js +1 -1
  187. package/es/padCharsEnd.js +1 -1
  188. package/es/padCharsStart.js +1 -1
  189. package/es/padEnd.js +1 -1
  190. package/es/padStart.js +1 -1
  191. package/es/pathNotEq.js +1 -3
  192. package/es/pathOrLazy.js +1 -1
  193. package/es/paths.js +1 -1
  194. package/es/pickIndexes.js +3 -2
  195. package/es/propNotEq.js +1 -1
  196. package/es/rangeStep.js +1 -1
  197. package/es/reduceIndexed.js +1 -1
  198. package/es/reduceP.js +4 -16
  199. package/es/reduceRightP.js +6 -19
  200. package/es/rejectP.js +1 -1
  201. package/es/renameKeyWith.js +1 -1
  202. package/es/renameKeys.js +1 -4
  203. package/es/renameKeysWith.js +1 -1
  204. package/es/repeatStr.js +1 -1
  205. package/es/replaceAll.js +1 -1
  206. package/es/resolveP.js +1 -3
  207. package/es/round.js +1 -0
  208. package/es/seq.js +1 -2
  209. package/es/sign.js +1 -0
  210. package/es/skipTake.js +1 -0
  211. package/es/sliceFrom.js +1 -1
  212. package/es/sliceTo.js +1 -1
  213. package/es/sortByPaths.js +1 -0
  214. package/es/sortByProp.js +42 -0
  215. package/es/sortByProps.js +3 -11
  216. package/es/spreadPath.js +1 -1
  217. package/es/spreadProp.js +1 -1
  218. package/es/stubArray.js +1 -1
  219. package/es/stubNull.js +1 -1
  220. package/es/stubObj.js +1 -1
  221. package/es/stubString.js +1 -1
  222. package/es/stubUndefined.js +1 -1
  223. package/es/subtractNum.js +1 -1
  224. package/es/thenCatchP.js +1 -1
  225. package/es/toArray.js +1 -0
  226. package/es/toInteger32.js +0 -1
  227. package/es/toNumber.js +1 -1
  228. package/es/toUinteger32.js +2 -1
  229. package/es/trimCharsEnd.js +1 -0
  230. package/es/trimCharsStart.js +1 -0
  231. package/es/trimEnd.js +1 -0
  232. package/es/trimStart.js +1 -0
  233. package/es/trunc.js +1 -0
  234. package/es/unzipObjWith.js +1 -1
  235. package/es/viewOr.js +1 -0
  236. package/es/weave.js +1 -1
  237. package/es/weaveLazy.js +1 -1
  238. package/es/zipObjWith.js +1 -1
  239. package/lib/Y.js +1 -2
  240. package/lib/allEqual.js +0 -4
  241. package/lib/allEqualTo.js +0 -2
  242. package/lib/allIdentical.js +0 -4
  243. package/lib/allIdenticalTo.js +0 -2
  244. package/lib/allP.js +0 -2
  245. package/lib/allSettledP.js +1 -6
  246. package/lib/allUnique.js +0 -4
  247. package/lib/anyP.js +0 -10
  248. package/lib/appendFlipped.js +0 -2
  249. package/lib/argsPass.js +0 -5
  250. package/lib/async.js +0 -9
  251. package/lib/cata.js +0 -7
  252. package/lib/catchP.js +0 -2
  253. package/lib/ceil.js +1 -2
  254. package/lib/compact.js +0 -4
  255. package/lib/concatAll.js +1 -5
  256. package/lib/concatRight.js +0 -2
  257. package/lib/copyKeys.js +4 -8
  258. package/lib/curryRight.js +0 -4
  259. package/lib/curryRightN.js +0 -3
  260. package/lib/defaultWhen.js +0 -2
  261. package/lib/delayP.js +1 -8
  262. package/lib/dispatch.js +0 -15
  263. package/lib/divideNum.js +0 -2
  264. package/lib/dropArgs.js +0 -2
  265. package/lib/ensureArray.js +0 -4
  266. package/lib/escapeRegExp.js +0 -4
  267. package/lib/fantasy-land/Identity.js +14 -27
  268. package/lib/fantasy-land/traits.js +4 -28
  269. package/lib/fantasy-land/util.js +6 -5
  270. package/lib/filterIndexed.js +0 -2
  271. package/lib/findOr.js +1 -2
  272. package/lib/flattenDepth.js +1 -14
  273. package/lib/flattenPath.js +0 -2
  274. package/lib/flattenProp.js +0 -4
  275. package/lib/floor.js +1 -2
  276. package/lib/fnull.js +1 -6
  277. package/lib/inRange.js +1 -4
  278. package/lib/included.js +0 -2
  279. package/lib/index.js +4 -425
  280. package/lib/internal/ap.js +0 -9
  281. package/lib/internal/compareLength.js +0 -2
  282. package/lib/internal/isCoercible.js +0 -6
  283. package/lib/internal/isOfTypeObject.js +0 -3
  284. package/lib/internal/makeFlat.js +0 -8
  285. package/lib/internal/ponyfills/Array.from.js +0 -18
  286. package/lib/internal/ponyfills/Math.sign.js +0 -2
  287. package/lib/internal/ponyfills/Math.trunc.js +2 -7
  288. package/lib/internal/ponyfills/Number.isFinite.js +0 -4
  289. package/lib/internal/ponyfills/Number.isInteger.js +0 -4
  290. package/lib/internal/ponyfills/Number.isNaN.js +0 -4
  291. package/lib/internal/ponyfills/Number.isSafeInteger.js +0 -5
  292. package/lib/internal/ponyfills/Promise.allSettled.js +0 -14
  293. package/lib/internal/ponyfills/Promise.any.js +3 -36
  294. package/lib/internal/ponyfills/String.padEnd.js +0 -10
  295. package/lib/internal/ponyfills/String.padStart.js +4 -13
  296. package/lib/internal/ponyfills/String.repeat.js +3 -16
  297. package/lib/internal/ponyfills/String.replaceAll.js +0 -9
  298. package/lib/internal/ponyfills/String.trimEnd.js +0 -2
  299. package/lib/internal/ponyfills/String.trimStart.js +0 -2
  300. package/lib/invoke.js +0 -4
  301. package/lib/invokeArgs.js +1 -5
  302. package/lib/isArray.js +0 -4
  303. package/lib/isArrayLike.js +0 -16
  304. package/lib/isAsyncFunction.js +0 -2
  305. package/lib/isBigInt.js +0 -2
  306. package/lib/isBlank.js +0 -4
  307. package/lib/isBoolean.js +0 -2
  308. package/lib/isDate.js +0 -2
  309. package/lib/isEmptyArray.js +0 -4
  310. package/lib/isEmptyString.js +0 -2
  311. package/lib/isError.js +0 -2
  312. package/lib/isEven.js +0 -5
  313. package/lib/isFalse.js +1 -2
  314. package/lib/isFalsy.js +0 -4
  315. package/lib/isFinite.js +1 -8
  316. package/lib/isFloat.js +0 -5
  317. package/lib/isFunction.js +0 -5
  318. package/lib/isGeneratorFunction.js +1 -15
  319. package/lib/isIndexed.js +1 -5
  320. package/lib/isInteger.js +1 -6
  321. package/lib/isInteger32.js +0 -4
  322. package/lib/isIterable.js +0 -5
  323. package/lib/isMap.js +1 -2
  324. package/lib/isNaN.js +1 -8
  325. package/lib/isNaturalNumber.js +1 -5
  326. package/lib/isNegative.js +0 -4
  327. package/lib/isNegativeZero.js +0 -2
  328. package/lib/isNilOrEmpty.js +0 -2
  329. package/lib/isNonEmptyArray.js +0 -5
  330. package/lib/isNonEmptyString.js +0 -6
  331. package/lib/isNonNegative.js +0 -4
  332. package/lib/isNonPositive.js +0 -4
  333. package/lib/isNotArray.js +0 -4
  334. package/lib/isNotArrayLike.js +0 -4
  335. package/lib/isNotAsyncFunction.js +0 -6
  336. package/lib/isNotBoolean.js +0 -4
  337. package/lib/isNotDate.js +0 -4
  338. package/lib/isNotEmpty.js +0 -2
  339. package/lib/isNotFinite.js +0 -4
  340. package/lib/isNotFloat.js +0 -4
  341. package/lib/isNotFunction.js +0 -6
  342. package/lib/isNotGeneratorFunction.js +0 -6
  343. package/lib/isNotInteger.js +0 -4
  344. package/lib/isNotMap.js +1 -4
  345. package/lib/isNotNaN.js +0 -4
  346. package/lib/isNotNil.js +0 -2
  347. package/lib/isNotNilOrEmpty.js +0 -4
  348. package/lib/isNotNull.js +0 -4
  349. package/lib/isNotNumber.js +0 -4
  350. package/lib/isNotObj.js +0 -6
  351. package/lib/isNotObjLike.js +0 -6
  352. package/lib/isNotPair.js +0 -4
  353. package/lib/isNotPlainObj.js +0 -6
  354. package/lib/isNotPrimitive.js +2 -4
  355. package/lib/isNotRegExp.js +0 -4
  356. package/lib/isNotSet.js +1 -4
  357. package/lib/isNotString.js +0 -4
  358. package/lib/isNotUndefined.js +0 -4
  359. package/lib/isNotValidDate.js +0 -4
  360. package/lib/isNotValidNumber.js +0 -4
  361. package/lib/isNull.js +0 -2
  362. package/lib/isNumber.js +0 -2
  363. package/lib/isObj.js +0 -8
  364. package/lib/isObjLike.js +0 -7
  365. package/lib/isOdd.js +0 -4
  366. package/lib/isPair.js +0 -4
  367. package/lib/isPlainObj.js +1 -12
  368. package/lib/isPositive.js +0 -4
  369. package/lib/isPositiveZero.js +0 -2
  370. package/lib/isPrimitive.js +2 -11
  371. package/lib/isPromise.js +0 -4
  372. package/lib/isPrototypeOf.js +0 -4
  373. package/lib/isRegExp.js +0 -2
  374. package/lib/isSafeInteger.js +1 -6
  375. package/lib/isSentinelValue.js +0 -4
  376. package/lib/isSet.js +1 -2
  377. package/lib/isSparseArray.js +0 -4
  378. package/lib/isString.js +0 -2
  379. package/lib/isSymbol.js +0 -3
  380. package/lib/isThenable.js +0 -4
  381. package/lib/isTrue.js +1 -2
  382. package/lib/isTruthy.js +0 -2
  383. package/lib/isUinteger32.js +0 -4
  384. package/lib/isUndefined.js +0 -4
  385. package/lib/isValidDate.js +0 -7
  386. package/lib/isValidNumber.js +0 -5
  387. package/lib/lastP.js +0 -16
  388. package/lib/lengthEq.js +0 -4
  389. package/lib/lengthGt.js +0 -4
  390. package/lib/lengthGte.js +0 -4
  391. package/lib/lengthLt.js +0 -4
  392. package/lib/lengthLte.js +0 -4
  393. package/lib/lengthNotEq.js +0 -4
  394. package/lib/lensEq.js +0 -2
  395. package/lib/lensIso.js +6 -8
  396. package/lib/lensNotEq.js +0 -4
  397. package/lib/lensNotSatisfy.js +0 -4
  398. package/lib/lensSatisfies.js +0 -4
  399. package/lib/lensTraverse.js +0 -4
  400. package/lib/liftF.js +0 -4
  401. package/lib/liftFN.js +0 -5
  402. package/lib/list.js +0 -2
  403. package/lib/mapIndexed.js +0 -2
  404. package/lib/mergePath.js +0 -2
  405. package/lib/mergePaths.js +0 -4
  406. package/lib/mergeProp.js +0 -4
  407. package/lib/mergeProps.js +0 -2
  408. package/lib/move.js +0 -2
  409. package/lib/nand.js +0 -3
  410. package/lib/neither.js +0 -4
  411. package/lib/noneP.js +0 -6
  412. package/lib/nonePass.js +0 -2
  413. package/lib/noop.js +0 -4
  414. package/lib/nor.js +0 -3
  415. package/lib/notAllPass.js +0 -2
  416. package/lib/notAllUnique.js +0 -4
  417. package/lib/notBoth.js +0 -4
  418. package/lib/notEqual.js +0 -2
  419. package/lib/omitBy.js +0 -4
  420. package/lib/omitIndexes.js +1 -3
  421. package/lib/overlaps.js +1 -5
  422. package/lib/padCharsEnd.js +1 -6
  423. package/lib/padCharsStart.js +1 -6
  424. package/lib/padEnd.js +0 -3
  425. package/lib/padStart.js +0 -3
  426. package/lib/pathNotEq.js +0 -4
  427. package/lib/pathOrLazy.js +0 -2
  428. package/lib/paths.js +0 -2
  429. package/lib/pickIndexes.js +1 -3
  430. package/lib/propNotEq.js +0 -2
  431. package/lib/rangeStep.js +0 -4
  432. package/lib/reduceIndexed.js +0 -2
  433. package/lib/reduceP.js +3 -21
  434. package/lib/reduceRightP.js +4 -24
  435. package/lib/rejectP.js +0 -2
  436. package/lib/renameKeyWith.js +0 -4
  437. package/lib/renameKeys.js +1 -7
  438. package/lib/renameKeysWith.js +0 -2
  439. package/lib/repeatStr.js +1 -6
  440. package/lib/replaceAll.js +1 -6
  441. package/lib/resolveP.js +0 -4
  442. package/lib/round.js +1 -2
  443. package/lib/seq.js +1 -4
  444. package/lib/sign.js +1 -6
  445. package/lib/skipTake.js +1 -2
  446. package/lib/sliceFrom.js +0 -2
  447. package/lib/sliceTo.js +0 -2
  448. package/lib/sortByPaths.js +1 -2
  449. package/lib/sortByProp.js +47 -0
  450. package/lib/sortByProps.js +3 -13
  451. package/lib/spreadPath.js +0 -2
  452. package/lib/spreadProp.js +0 -4
  453. package/lib/stubArray.js +1 -2
  454. package/lib/stubNull.js +0 -2
  455. package/lib/stubObj.js +1 -2
  456. package/lib/stubString.js +0 -2
  457. package/lib/stubUndefined.js +0 -3
  458. package/lib/subtractNum.js +0 -2
  459. package/lib/thenCatchP.js +0 -2
  460. package/lib/toArray.js +1 -6
  461. package/lib/toInteger32.js +0 -2
  462. package/lib/toNumber.js +0 -4
  463. package/lib/toUinteger32.js +1 -2
  464. package/lib/trimCharsEnd.js +1 -4
  465. package/lib/trimCharsStart.js +1 -4
  466. package/lib/trimEnd.js +1 -6
  467. package/lib/trimStart.js +1 -6
  468. package/lib/trunc.js +1 -6
  469. package/lib/unzipObjWith.js +0 -4
  470. package/lib/viewOr.js +1 -2
  471. package/lib/weave.js +0 -2
  472. package/lib/weaveLazy.js +0 -2
  473. package/lib/zipObjWith.js +0 -2
  474. package/package.json +34 -32
  475. package/src/index.js +1 -0
  476. package/src/isGeneratorFunction.js +2 -19
  477. package/src/isNotPrimitive.js +1 -0
  478. package/src/isPrimitive.js +1 -0
  479. package/src/sortByProp.js +45 -0
  480. package/src/sortByProps.js +1 -1
  481. package/types/.eslintrc.js +23 -0
  482. package/types/dtslint.eslint.js +13 -0
  483. package/types/index.d.ts +1792 -1551
@@ -1,5 +1,6 @@
1
1
  import { both } from 'ramda';
2
- import isNumber from '../../isNumber'; // eslint-disable-next-line no-restricted-globals
2
+ import isNumber from '../../isNumber';
3
3
 
4
+ // eslint-disable-next-line no-restricted-globals
4
5
  var isFinitePonyfill = both(isNumber, isFinite);
5
6
  export default isFinitePonyfill;
@@ -1,5 +1,6 @@
1
1
  import { both } from 'ramda';
2
- import isNumber from '../../isNumber'; // eslint-disable-next-line no-restricted-globals
2
+ import isNumber from '../../isNumber';
3
3
 
4
+ // eslint-disable-next-line no-restricted-globals
4
5
  var isNaNPonyfill = both(isNumber, isNaN);
5
6
  export default isNaNPonyfill;
@@ -1,38 +1,28 @@
1
1
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
-
3
2
  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."); }
4
-
5
3
  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); }
6
-
7
4
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
-
9
5
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
-
11
6
  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; }
12
-
13
7
  import { map } from 'ramda';
14
8
  import allP from '../../allP';
15
9
  import resolveP from '../../resolveP';
16
-
17
10
  var onFulfill = function onFulfill(value) {
18
11
  return {
19
12
  status: 'fulfilled',
20
13
  value: value
21
14
  };
22
15
  };
23
-
24
16
  var onReject = function onReject(reason) {
25
17
  return {
26
18
  status: 'rejected',
27
19
  reason: reason
28
20
  };
29
21
  };
30
-
31
22
  var allSettledPonyfill = function allSettledPonyfill(iterable) {
32
23
  var array = map(function (p) {
33
24
  return resolveP(p).then(onFulfill)["catch"](onReject);
34
25
  }, _toConsumableArray(iterable));
35
26
  return allP(array);
36
27
  };
37
-
38
28
  export default allSettledPonyfill;
@@ -1,81 +1,53 @@
1
1
  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); }
2
-
3
2
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
-
5
3
  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."); }
6
-
7
4
  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); }
8
-
9
5
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
10
-
11
6
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
-
13
7
  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; }
14
-
15
- 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); } }
16
-
8
+ 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); } }
17
9
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
-
10
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
11
+ 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); }
19
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
-
21
13
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
-
23
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
24
-
25
15
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
-
27
16
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
-
29
17
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
30
-
31
18
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
32
-
33
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
34
-
35
20
  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
36
-
37
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
-
39
22
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
-
41
23
  import { map } from 'ramda';
42
24
  import resolveP from '../../resolveP';
43
25
  export var AggregatedError = /*#__PURE__*/function (_Error) {
44
26
  _inherits(AggregatedError, _Error);
45
-
46
27
  var _super = _createSuper(AggregatedError);
47
-
48
28
  function AggregatedError() {
49
29
  var _this;
50
-
51
30
  var errors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
52
31
  var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
53
-
54
32
  _classCallCheck(this, AggregatedError);
55
-
56
33
  _this = _super.call(this, message);
57
34
  _this.errors = errors;
58
35
  return _this;
59
36
  }
60
-
61
37
  return _createClass(AggregatedError);
62
38
  }( /*#__PURE__*/_wrapNativeSuper(Error));
63
-
64
39
  var anyPonyfill = function anyPonyfill(iterable) {
65
40
  var exceptions = [];
66
41
  return new Promise(function (resolve, reject) {
67
42
  var onReject = function onReject(e) {
68
43
  exceptions.push(e);
69
-
70
44
  if (exceptions.length === iterable.length) {
71
45
  reject(new AggregatedError(exceptions));
72
46
  }
73
47
  };
74
-
75
48
  map(function (p) {
76
49
  return resolveP(p).then(resolve)["catch"](onReject);
77
50
  }, _toConsumableArray(iterable));
78
51
  });
79
52
  };
80
-
81
53
  export default anyPonyfill;
@@ -1,24 +1,18 @@
1
1
  import isFunction from '../../isFunction';
2
2
  import isNotUndefined from '../../isNotUndefined';
3
3
  import repeat from './String.repeat';
4
-
5
4
  var padEndPonyfill = function padEndPonyfill(padString, targetLength, value) {
6
5
  // eslint-disable-next-line no-bitwise
7
6
  var finalLength = targetLength >> 0;
8
7
  var finalPadString = String(isNotUndefined(padString) ? padString : ' ');
9
-
10
8
  if (value.length > finalLength) {
11
9
  return String(value);
12
10
  }
13
-
14
11
  finalLength -= value.length;
15
-
16
12
  if (finalLength > finalPadString.length) {
17
13
  var remainingLength = finalLength / finalPadString.length;
18
14
  finalPadString += isFunction(String.prototype.repeat) ? finalPadString.repeat(remainingLength) : repeat(finalPadString, remainingLength);
19
15
  }
20
-
21
16
  return String(value) + finalPadString.slice(0, finalLength);
22
17
  };
23
-
24
18
  export default padEndPonyfill;
@@ -1,26 +1,21 @@
1
1
  import isFunction from '../../isFunction';
2
2
  import isNotUndefined from '../../isNotUndefined';
3
3
  import repeat from './String.repeat';
4
-
5
4
  var padStartPonyfill = function padStartPonyfill(padString, targetLength, value) {
6
5
  // eslint-disable-next-line no-bitwise
7
6
  var finalLength = targetLength >> 0; // truncate if number, or convert non-number to 0;
7
+ var finalPadString = String(isNotUndefined(padString) ? padString : ' ');
8
8
 
9
- var finalPadString = String(isNotUndefined(padString) ? padString : ' '); // return the original string, if targeted length is less than original strings length
10
-
9
+ // return the original string, if targeted length is less than original strings length
11
10
  if (value.length >= finalLength) {
12
11
  return String(value);
13
12
  }
14
-
15
13
  finalLength -= value.length;
16
-
17
14
  if (finalLength > finalPadString.length) {
18
- var lenghtToPad = finalLength / finalPadString.length; // append to original to ensure we are longer than needed
19
-
15
+ var lenghtToPad = finalLength / finalPadString.length;
16
+ // append to original to ensure we are longer than needed
20
17
  finalPadString += isFunction(String.prototype.repeat) ? finalPadString.repeat(lenghtToPad) : repeat(finalPadString, lenghtToPad);
21
18
  }
22
-
23
19
  return finalPadString.slice(0, finalLength) + String(value);
24
20
  };
25
-
26
21
  export default padStartPonyfill;
@@ -1,46 +1,36 @@
1
1
  import isNotFinite from '../../isNotFinite';
2
2
  import isNegative from '../../isNegative';
3
-
4
3
  var repeat = function repeat(value, count) {
5
4
  var validCount = Number(count);
6
-
7
5
  if (validCount !== count) {
8
6
  validCount = 0;
9
7
  }
10
-
11
8
  if (isNegative(validCount)) {
12
9
  throw new RangeError('repeat count must be non-negative');
13
10
  }
14
-
15
11
  if (isNotFinite(validCount)) {
16
12
  throw new RangeError('repeat count must be less than infinity');
17
13
  }
18
-
19
14
  validCount = Math.floor(validCount);
20
-
21
15
  if (value.length === 0 || validCount === 0) {
22
16
  return '';
23
- } // Ensuring validCount is a 31-bit integer allows us to heavily optimize the
17
+ }
18
+
19
+ // Ensuring validCount is a 31-bit integer allows us to heavily optimize the
24
20
  // main part. But anyway, most current (August 2014) browsers can't handle
25
21
  // strings 1 << 28 chars or longer, so:
26
22
  // eslint-disable-next-line no-bitwise
27
-
28
-
29
23
  if (value.length * validCount >= 1 << 28) {
30
24
  throw new RangeError('repeat count must not overflow maximum string size');
31
25
  }
32
-
33
26
  var maxCount = value.length * validCount;
34
27
  validCount = Math.floor(Math.log(validCount) / Math.log(2));
35
28
  var result = value;
36
-
37
29
  while (validCount) {
38
30
  result += value;
39
31
  validCount -= 1;
40
32
  }
41
-
42
33
  result += result.substring(0, maxCount - result.length);
43
34
  return result;
44
35
  };
45
-
46
36
  export default repeat;
@@ -1,13 +1,11 @@
1
1
  import { replace } from 'ramda';
2
2
  import isRegExp from '../../isRegExp';
3
3
  import escapeRegExp from '../../escapeRegExp';
4
-
5
4
  var checkArguments = function checkArguments(searchValue, replaceValue, str) {
6
5
  if (str == null || searchValue == null || replaceValue == null) {
7
6
  throw TypeError('Input values must not be `null` or `undefined`');
8
7
  }
9
8
  };
10
-
11
9
  var checkValue = function checkValue(value, valueName) {
12
10
  if (typeof value !== 'string') {
13
11
  if (!(value instanceof String)) {
@@ -15,13 +13,11 @@ var checkValue = function checkValue(value, valueName) {
15
13
  }
16
14
  }
17
15
  };
18
-
19
16
  var checkSearchValue = function checkSearchValue(searchValue) {
20
17
  if (typeof searchValue !== 'string' && !(searchValue instanceof String) && !(searchValue instanceof RegExp)) {
21
18
  throw TypeError('`searchValue` must be a string or an regexp');
22
19
  }
23
20
  };
24
-
25
21
  var replaceAll = function replaceAll(searchValue, replaceValue, str) {
26
22
  checkArguments(searchValue, replaceValue, str);
27
23
  checkValue(str, 'str');
@@ -30,5 +26,4 @@ var replaceAll = function replaceAll(searchValue, replaceValue, str) {
30
26
  var regexp = new RegExp(isRegExp(searchValue) ? searchValue : escapeRegExp(searchValue), 'g');
31
27
  return replace(regexp, replaceValue, str);
32
28
  };
33
-
34
29
  export default replaceAll;
package/es/invoke.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { __ } from 'ramda';
2
2
  import invokeArgs from './invokeArgs';
3
+
3
4
  /**
4
5
  * Invokes the method at path of object.
5
6
  *
@@ -15,6 +16,5 @@ import invokeArgs from './invokeArgs';
15
16
  *
16
17
  * RA.invoke(['random'], Math); //=> 0.5113253820009047
17
18
  */
18
-
19
19
  var invoke = invokeArgs(__, [], __);
20
20
  export default invoke;
package/es/invokeArgs.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { curryN, path, apply, init, bind } from 'ramda';
2
2
  import isNotFunction from './isNotFunction';
3
3
  import isEmptyArray from './isEmptyArray';
4
+
4
5
  /**
5
6
  * Invokes the method at path of object with given arguments.
6
7
  *
package/es/isArray.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { curryN, pipe, type, identical } from 'ramda';
2
2
  import isFunction from './isFunction';
3
+
3
4
  /**
4
5
  * Checks if input value is `Array`.
5
6
  *
@@ -17,6 +18,5 @@ import isFunction from './isFunction';
17
18
  * RA.isArray(null); //=> false
18
19
  * RA.isArray({}); //=> false
19
20
  */
20
-
21
21
  var isArray = curryN(1, isFunction(Array.isArray) ? Array.isArray : pipe(type, identical('Array')));
22
22
  export default isArray;
package/es/isArrayLike.js CHANGED
@@ -1,10 +1,9 @@
1
1
  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); }
2
-
3
2
  import { has, curryN } from 'ramda';
4
3
  import isArray from './isArray';
5
4
  import isString from './isString';
6
- /* eslint-disable max-len */
7
5
 
6
+ /* eslint-disable max-len */
8
7
  /**
9
8
  * Tests whether or not an object is similar to an array.
10
9
  *
@@ -27,41 +26,33 @@ import isString from './isString';
27
26
  * RA.isArrayLike({length: 10}); //=> false
28
27
  * RA.isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
29
28
  */
30
-
31
29
  /* eslint-enable max-len */
32
-
33
30
  var isArrayLike = curryN(1, function (val) {
34
31
  if (isArray(val)) {
35
32
  return true;
36
33
  }
37
-
38
34
  if (!val) {
39
35
  return false;
40
36
  }
41
-
42
37
  if (isString(val)) {
43
38
  return false;
44
39
  }
45
-
46
40
  if (_typeof(val) !== 'object') {
47
41
  return false;
48
42
  }
49
-
50
43
  if (val.nodeType === 1) {
51
44
  return !!val.length;
52
45
  }
53
-
54
46
  if (val.length === 0) {
55
47
  return true;
56
48
  }
57
-
58
49
  if (val.length > 0) {
59
50
  return has(0, val) && has(val.length - 1, val);
60
51
  }
61
-
62
52
  return false;
63
53
  });
64
54
  export default isArrayLike;
55
+
65
56
  /**
66
57
  The MIT License (MIT)
67
58
 
@@ -1,4 +1,5 @@
1
1
  import { pipe, type, identical, curryN } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if input value is `Async Function`.
4
5
  *
@@ -17,6 +18,5 @@ import { pipe, type, identical, curryN } from 'ramda';
17
18
  * RA.isAsyncFunction(function test() { }); //=> false
18
19
  * RA.isAsyncFunction(() => {}); //=> false
19
20
  */
20
-
21
21
  var isAsyncFunction = curryN(1, pipe(type, identical('AsyncFunction')));
22
22
  export default isAsyncFunction;
package/es/isBigInt.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type, pipe, identical, curryN } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if value is a BigInt.
4
5
  *
@@ -18,6 +19,5 @@ import { type, pipe, identical, curryN } from 'ramda';
18
19
  * RA.isBigInt(10n); // => true
19
20
  * RA.isBigInt(BitInt(9007199254740991)); // => true
20
21
  */
21
-
22
22
  var isBigInt = curryN(1, pipe(type, identical('BigInt')));
23
23
  export default isBigInt;
package/es/isBlank.js CHANGED
@@ -27,6 +27,5 @@ import isFalse from './isFalse';
27
27
  * RA.isBlank([1, 2, 3]); //=> false
28
28
  * RA.isBlank(true); //=> false
29
29
  */
30
-
31
30
  var isBlank = anyPass([isFalse, isNil, isEmpty, test(/^\s+$/gm)]);
32
31
  export default isBlank;
package/es/isBoolean.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type, identical, pipe, curryN } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if input value is `Boolean`.
4
5
  *
@@ -16,6 +17,5 @@ import { type, identical, pipe, curryN } from 'ramda';
16
17
  * RA.isBoolean(true); //=> true
17
18
  * RA.isBoolean(null); //=> false
18
19
  */
19
-
20
20
  var isBoolean = curryN(1, pipe(type, identical('Boolean')));
21
21
  export default isBoolean;
package/es/isDate.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type, identical, pipe, curryN } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if value is `Date` object.
4
5
  *
@@ -15,6 +16,5 @@ import { type, identical, pipe, curryN } from 'ramda';
15
16
  * RA.isDate(new Date()); //=> true
16
17
  * RA.isDate('1997-07-16T19:20+01:00'); //=> false
17
18
  */
18
-
19
19
  var isDate = curryN(1, pipe(type, identical('Date')));
20
20
  export default isDate;
@@ -1,5 +1,6 @@
1
1
  import { both, isEmpty } from 'ramda';
2
2
  import isArray from './isArray';
3
+
3
4
  /**
4
5
  * Checks if input value is an empty `Array`.
5
6
  *
@@ -21,6 +22,5 @@ import isArray from './isArray';
21
22
  * RA.isEmptyArray(42); // => false
22
23
  * RA.isEmptyArray('42'); // => false
23
24
  */
24
-
25
25
  var isEmptyArray = both(isArray, isEmpty);
26
26
  export default isEmptyArray;
@@ -1,4 +1,5 @@
1
1
  import { equals } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if input value is an empty `String`.
4
5
  *
@@ -22,6 +23,5 @@ import { equals } from 'ramda';
22
23
  * RA.isEmptyString(undefined); // => false
23
24
  * RA.isEmptyString(42); // => false
24
25
  */
25
-
26
26
  var isEmptyString = equals('');
27
27
  export default isEmptyString;
package/es/isError.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type, identical, pipe, curryN } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, `SyntaxError`, `TypeError` or `URIError` object.
4
5
  *
@@ -15,6 +16,5 @@ import { type, identical, pipe, curryN } from 'ramda';
15
16
  * RA.isError(Error); //=> false
16
17
  * RA.isError(1); // => false
17
18
  */
18
-
19
19
  var isError = curryN(1, pipe(type, identical('Error')));
20
20
  export default isError;
package/es/isEven.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { both, complement, curryN } from 'ramda';
2
2
  import isInteger from './isInteger';
3
3
  import isOdd from './isOdd';
4
+
4
5
  /**
5
6
  * Checks if value is even integer number.
6
7
  * An even number is an integer which is "evenly divisible" by two.
@@ -24,6 +25,5 @@ import isOdd from './isOdd';
24
25
  * RA.isEven(4); // => true
25
26
  * RA.isEven(3); // => false
26
27
  */
27
-
28
28
  var isEven = curryN(1, both(isInteger, complement(isOdd)));
29
29
  export default isEven;
package/es/isFalse.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { identical } from 'ramda';
2
+
2
3
  /**
3
4
  * Checks if input value is the Boolean primitive `false`. Will return false for all values created
4
5
  * using the `Boolean` function as a constructor.
package/es/isFalsy.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { complement } from 'ramda';
2
2
  import isTruthy from './isTruthy';
3
+
3
4
  /**
4
5
  * A falsy value is a value that translates to false when evaluated in a Boolean context.
5
6
  * Falsy values are `false`, `0`, `""`, `null`, `undefined`, and `NaN`.
@@ -21,6 +22,5 @@ import isTruthy from './isTruthy';
21
22
  * RA.isFalsy(undefined); // => true
22
23
  * RA.isFalsy(NaN); // => true
23
24
  */
24
-
25
25
  var isFalsy = complement(isTruthy);
26
26
  export default isFalsy;
package/es/isFinite.js CHANGED
@@ -2,6 +2,7 @@ import { bind, curryN } from 'ramda';
2
2
  import isFunction from './isFunction';
3
3
  import ponyfill from './internal/ponyfills/Number.isFinite';
4
4
  export var isFinitePonyfill = curryN(1, ponyfill);
5
+
5
6
  /**
6
7
  * Checks whether the passed value is a finite `Number`.
7
8
  *
@@ -27,7 +28,5 @@ export var isFinitePonyfill = curryN(1, ponyfill);
27
28
  * RA.isFinite(null); // => false
28
29
  * // would've been true with global isFinite(null)
29
30
  */
30
-
31
31
  var _isFinite = isFunction(Number.isFinite) ? curryN(1, bind(Number.isFinite, Number)) : isFinitePonyfill;
32
-
33
32
  export default _isFinite;
package/es/isFloat.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { complement, both } from 'ramda';
2
2
  import isInteger from './isInteger';
3
3
  import isFinite from './isFinite';
4
+
4
5
  /**
5
6
  * Checks whether the passed value is a `float`.
6
7
  *
@@ -29,6 +30,5 @@ import isFinite from './isFinite';
29
30
  * RA.isFloat(false); //=> false
30
31
  * RA.isFloat([1]); //=> false
31
32
  */
32
-
33
33
  var isFloat = both(isFinite, complement(isInteger));
34
34
  export default isFloat;
package/es/isFunction.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { anyPass, type, pipe, identical } from 'ramda';
2
2
  import isGeneratorFunction from './isGeneratorFunction';
3
3
  import isAsyncFunction from './isAsyncFunction';
4
+
4
5
  /**
5
6
  * Checks if input value is `Function`.
6
7
  *
@@ -21,6 +22,5 @@ import isAsyncFunction from './isAsyncFunction';
21
22
  * RA.isFunction(null); //=> false
22
23
  * RA.isFunction('abc'); //=> false
23
24
  */
24
-
25
25
  var isFunction = anyPass([pipe(type, identical('Function')), isGeneratorFunction, isAsyncFunction]);
26
26
  export default isFunction;
@@ -1,14 +1,5 @@
1
- import { type, is, F as stubFalse, either, identical, pipe, curryN } from 'ramda';
2
- var GeneratorFunction = null;
3
- var legacyCheck = null;
1
+ import { type, identical, pipe, curryN } from 'ramda';
4
2
 
5
- try {
6
- GeneratorFunction = new Function('return function* () {}')().constructor; // eslint-disable-line no-new-func
7
-
8
- legacyCheck = is(GeneratorFunction);
9
- } catch (e) {
10
- legacyCheck = stubFalse;
11
- }
12
3
  /**
13
4
  * Checks if input value is `Generator Function`.
14
5
  *
@@ -27,7 +18,5 @@ try {
27
18
  * RA.isGeneratorFunction(function test() { }); //=> false
28
19
  * RA.isGeneratorFunction(() => {}); //=> false
29
20
  */
30
-
31
-
32
- var isGeneratorFunction = curryN(1, either(pipe(type, identical('GeneratorFunction')), legacyCheck));
21
+ var isGeneratorFunction = curryN(1, pipe(type, identical('GeneratorFunction')));
33
22
  export default isGeneratorFunction;
package/es/isIndexed.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { either, curryN } from 'ramda';
2
2
  import isArray from './isArray';
3
3
  import isString from './isString';
4
+
4
5
  /**
5
6
  * Determine if input value is an indexed data type.
6
7
  *
package/es/isInteger.js CHANGED
@@ -2,6 +2,7 @@ import { bind, curryN } from 'ramda';
2
2
  import isFunction from './isFunction';
3
3
  import ponyfill from './internal/ponyfills/Number.isInteger';
4
4
  export var isIntegerPonyfill = curryN(1, ponyfill);
5
+
5
6
  /**
6
7
  * Checks whether the passed value is an `integer`.
7
8
  *
@@ -30,6 +31,5 @@ export var isIntegerPonyfill = curryN(1, ponyfill);
30
31
  * RA.isInteger(false); //=> false
31
32
  * RA.isInteger([1]); //=> false
32
33
  */
33
-
34
34
  var isInteger = isFunction(Number.isInteger) ? curryN(1, bind(Number.isInteger, Number)) : isIntegerPonyfill;
35
35
  export default isInteger;
package/es/isInteger32.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { curryN } from 'ramda';
2
2
  import toInteger32 from './toInteger32';
3
+
3
4
  /**
4
5
  * Checks whether the passed value is a signed 32 bit integer.
5
6
  *
@@ -21,7 +22,6 @@ import toInteger32 from './toInteger32';
21
22
  * RA.isInteger32(NaN); //=> false
22
23
  * RA.isInteger32(2 ** 31); //=> false
23
24
  */
24
-
25
25
  var isInteger32 = curryN(1, function (val) {
26
26
  return toInteger32(val) === val;
27
27
  });
package/es/isIterable.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { hasIn, curryN } from 'ramda';
2
2
  import isFunction from './isFunction';
3
+
3
4
  /**
4
5
  * Checks whether the passed value is iterable.
5
6
  *
@@ -22,12 +23,10 @@ import isFunction from './isFunction';
22
23
  * RA.isIterable(null); //=> false
23
24
  * RA.isIterable(undefined); //=> false
24
25
  */
25
-
26
26
  var isIterable = curryN(1, function (val) {
27
27
  if (typeof Symbol === 'undefined') {
28
28
  return false;
29
29
  }
30
-
31
30
  return hasIn(Symbol.iterator, Object(val)) && isFunction(val[Symbol.iterator]);
32
31
  });
33
32
  export default isIterable;