rubico 2.7.4 → 2.7.6
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.
- package/LICENSE +1 -1
- package/README.md +16 -16
- package/dist/Transducer.es.js +1 -1
- package/dist/Transducer.es.min.js +1 -1
- package/dist/Transducer.js +1 -1
- package/dist/Transducer.min.js +1 -1
- package/dist/Transducer.mjs +1 -1
- package/dist/__.es.js +1 -1
- package/dist/__.es.min.js +1 -1
- package/dist/__.js +1 -1
- package/dist/__.min.js +1 -1
- package/dist/__.mjs +1 -1
- package/dist/all.es.js +1 -1
- package/dist/all.es.min.js +1 -1
- package/dist/all.js +1 -1
- package/dist/all.min.js +1 -1
- package/dist/all.mjs +1 -1
- package/dist/always.es.js +1 -1
- package/dist/always.es.min.js +1 -1
- package/dist/always.js +1 -1
- package/dist/always.min.js +1 -1
- package/dist/always.mjs +1 -1
- package/dist/and.es.js +1 -1
- package/dist/and.es.min.js +1 -1
- package/dist/and.js +1 -1
- package/dist/and.min.js +1 -1
- package/dist/and.mjs +1 -1
- package/dist/assign.es.js +1 -1
- package/dist/assign.es.min.js +1 -1
- package/dist/assign.js +1 -1
- package/dist/assign.min.js +1 -1
- package/dist/assign.mjs +1 -1
- package/dist/compose.es.js +1 -1
- package/dist/compose.es.min.js +1 -1
- package/dist/compose.js +1 -1
- package/dist/compose.min.js +1 -1
- package/dist/compose.mjs +1 -1
- package/dist/curry.es.js +1 -1
- package/dist/curry.es.min.js +1 -1
- package/dist/curry.js +1 -1
- package/dist/curry.min.js +1 -1
- package/dist/curry.mjs +1 -1
- package/dist/eq.es.js +1 -1
- package/dist/eq.es.min.js +1 -1
- package/dist/eq.js +1 -1
- package/dist/eq.min.js +1 -1
- package/dist/eq.mjs +1 -1
- package/dist/every.es.js +1 -1
- package/dist/every.es.min.js +1 -1
- package/dist/every.js +1 -1
- package/dist/every.min.js +1 -1
- package/dist/every.mjs +1 -1
- package/dist/filter.es.js +1 -1
- package/dist/filter.es.min.js +1 -1
- package/dist/filter.js +1 -1
- package/dist/filter.min.js +1 -1
- package/dist/filter.mjs +1 -1
- package/dist/flatMap.es.js +1 -1
- package/dist/flatMap.es.min.js +1 -1
- package/dist/flatMap.js +1 -1
- package/dist/flatMap.min.js +1 -1
- package/dist/flatMap.mjs +1 -1
- package/dist/forEach.es.js +1 -1
- package/dist/forEach.es.min.js +1 -1
- package/dist/forEach.js +1 -1
- package/dist/forEach.min.js +1 -1
- package/dist/forEach.mjs +1 -1
- package/dist/get.es.js +1 -1
- package/dist/get.es.min.js +1 -1
- package/dist/get.js +1 -1
- package/dist/get.min.js +1 -1
- package/dist/get.mjs +1 -1
- package/dist/gt.es.js +1 -1
- package/dist/gt.es.min.js +1 -1
- package/dist/gt.js +1 -1
- package/dist/gt.min.js +1 -1
- package/dist/gt.mjs +1 -1
- package/dist/gte.es.js +1 -1
- package/dist/gte.es.min.js +1 -1
- package/dist/gte.js +1 -1
- package/dist/gte.min.js +1 -1
- package/dist/gte.mjs +1 -1
- package/dist/lt.es.js +1 -1
- package/dist/lt.es.min.js +1 -1
- package/dist/lt.js +1 -1
- package/dist/lt.min.js +1 -1
- package/dist/lt.mjs +1 -1
- package/dist/lte.es.js +1 -1
- package/dist/lte.es.min.js +1 -1
- package/dist/lte.js +1 -1
- package/dist/lte.min.js +1 -1
- package/dist/lte.mjs +1 -1
- package/dist/map.es.js +1 -1
- package/dist/map.es.min.js +1 -1
- package/dist/map.js +1 -1
- package/dist/map.min.js +1 -1
- package/dist/map.mjs +1 -1
- package/dist/not.es.js +1 -1
- package/dist/not.es.min.js +1 -1
- package/dist/not.js +1 -1
- package/dist/not.min.js +1 -1
- package/dist/not.mjs +1 -1
- package/dist/omit.es.js +1 -1
- package/dist/omit.es.min.js +1 -1
- package/dist/omit.js +1 -1
- package/dist/omit.min.js +1 -1
- package/dist/omit.mjs +1 -1
- package/dist/or.es.js +1 -1
- package/dist/or.es.min.js +1 -1
- package/dist/or.js +1 -1
- package/dist/or.min.js +1 -1
- package/dist/or.mjs +1 -1
- package/dist/pick.es.js +1 -1
- package/dist/pick.es.min.js +1 -1
- package/dist/pick.js +1 -1
- package/dist/pick.min.js +1 -1
- package/dist/pick.mjs +1 -1
- package/dist/pipe.es.js +1 -1
- package/dist/pipe.es.min.js +1 -1
- package/dist/pipe.js +1 -1
- package/dist/pipe.min.js +1 -1
- package/dist/pipe.mjs +1 -1
- package/dist/reduce.es.js +1 -1
- package/dist/reduce.es.min.js +1 -1
- package/dist/reduce.js +1 -1
- package/dist/reduce.min.js +1 -1
- package/dist/reduce.mjs +1 -1
- package/dist/rubico.es.js +1 -1
- package/dist/rubico.es.min.js +1 -1
- package/dist/rubico.global.js +1 -1
- package/dist/rubico.global.min.js +1 -1
- package/dist/rubico.js +1 -1
- package/dist/rubico.min.js +1 -1
- package/dist/rubico.mjs +1 -1
- package/dist/set.es.js +1 -1
- package/dist/set.es.min.js +1 -1
- package/dist/set.js +1 -1
- package/dist/set.min.js +1 -1
- package/dist/set.mjs +1 -1
- package/dist/some.es.js +1 -1
- package/dist/some.es.min.js +1 -1
- package/dist/some.js +1 -1
- package/dist/some.min.js +1 -1
- package/dist/some.mjs +1 -1
- package/dist/switchCase.es.js +1 -1
- package/dist/switchCase.es.min.js +1 -1
- package/dist/switchCase.js +1 -1
- package/dist/switchCase.min.js +1 -1
- package/dist/switchCase.mjs +1 -1
- package/dist/tap.es.js +1 -1
- package/dist/tap.es.min.js +1 -1
- package/dist/tap.js +1 -1
- package/dist/tap.min.js +1 -1
- package/dist/tap.mjs +1 -1
- package/dist/thunkify.es.js +1 -1
- package/dist/thunkify.es.min.js +1 -1
- package/dist/thunkify.js +1 -1
- package/dist/thunkify.min.js +1 -1
- package/dist/thunkify.mjs +1 -1
- package/dist/transform.es.js +1 -1
- package/dist/transform.es.min.js +1 -1
- package/dist/transform.js +1 -1
- package/dist/transform.min.js +1 -1
- package/dist/transform.mjs +1 -1
- package/dist/tryCatch.es.js +1 -1
- package/dist/tryCatch.es.min.js +1 -1
- package/dist/tryCatch.js +1 -1
- package/dist/tryCatch.min.js +1 -1
- package/dist/tryCatch.mjs +1 -1
- package/dist/x/append.es.js +1 -1
- package/dist/x/append.es.min.js +1 -1
- package/dist/x/append.js +1 -1
- package/dist/x/append.min.js +1 -1
- package/dist/x/append.mjs +1 -1
- package/dist/x/callProp.es.js +1 -1
- package/dist/x/callProp.es.min.js +1 -1
- package/dist/x/callProp.js +1 -1
- package/dist/x/callProp.min.js +1 -1
- package/dist/x/callProp.mjs +1 -1
- package/dist/x/defaultsDeep.es.js +1 -1
- package/dist/x/defaultsDeep.es.min.js +1 -1
- package/dist/x/defaultsDeep.js +1 -1
- package/dist/x/defaultsDeep.min.js +1 -1
- package/dist/x/defaultsDeep.mjs +1 -1
- package/dist/x/differenceWith.es.js +1 -1
- package/dist/x/differenceWith.es.min.js +1 -1
- package/dist/x/differenceWith.js +1 -1
- package/dist/x/differenceWith.min.js +1 -1
- package/dist/x/differenceWith.mjs +1 -1
- package/dist/x/filterOut.es.js +1 -1
- package/dist/x/filterOut.es.min.js +1 -1
- package/dist/x/filterOut.js +1 -1
- package/dist/x/filterOut.min.js +1 -1
- package/dist/x/filterOut.mjs +1 -1
- package/dist/x/find.es.js +1 -1
- package/dist/x/find.es.min.js +1 -1
- package/dist/x/find.js +1 -1
- package/dist/x/find.min.js +1 -1
- package/dist/x/find.mjs +1 -1
- package/dist/x/findIndex.es.js +1 -1
- package/dist/x/findIndex.es.min.js +1 -1
- package/dist/x/findIndex.js +1 -1
- package/dist/x/findIndex.min.js +1 -1
- package/dist/x/findIndex.mjs +1 -1
- package/dist/x/first.es.js +1 -1
- package/dist/x/first.es.min.js +1 -1
- package/dist/x/first.js +1 -1
- package/dist/x/first.min.js +1 -1
- package/dist/x/first.mjs +1 -1
- package/dist/x/flatten.es.js +1 -1
- package/dist/x/flatten.es.min.js +1 -1
- package/dist/x/flatten.js +1 -1
- package/dist/x/flatten.min.js +1 -1
- package/dist/x/flatten.mjs +1 -1
- package/dist/x/groupBy.es.js +1 -1
- package/dist/x/groupBy.es.min.js +1 -1
- package/dist/x/groupBy.js +1 -1
- package/dist/x/groupBy.min.js +1 -1
- package/dist/x/groupBy.mjs +1 -1
- package/dist/x/has.es.js +1 -1
- package/dist/x/has.es.min.js +1 -1
- package/dist/x/has.js +1 -1
- package/dist/x/has.min.js +1 -1
- package/dist/x/has.mjs +1 -1
- package/dist/x/identity.es.js +1 -1
- package/dist/x/identity.es.min.js +1 -1
- package/dist/x/identity.js +1 -1
- package/dist/x/identity.min.js +1 -1
- package/dist/x/identity.mjs +1 -1
- package/dist/x/includes.es.js +1 -1
- package/dist/x/includes.es.min.js +1 -1
- package/dist/x/includes.js +1 -1
- package/dist/x/includes.min.js +1 -1
- package/dist/x/includes.mjs +1 -1
- package/dist/x/isDeepEqual.es.js +1 -1
- package/dist/x/isDeepEqual.es.min.js +1 -1
- package/dist/x/isDeepEqual.js +1 -1
- package/dist/x/isDeepEqual.min.js +1 -1
- package/dist/x/isDeepEqual.mjs +1 -1
- package/dist/x/isEmpty.es.js +1 -1
- package/dist/x/isEmpty.es.min.js +1 -1
- package/dist/x/isEmpty.js +1 -1
- package/dist/x/isEmpty.min.js +1 -1
- package/dist/x/isEmpty.mjs +1 -1
- package/dist/x/isEqual.es.js +1 -1
- package/dist/x/isEqual.es.min.js +1 -1
- package/dist/x/isEqual.js +1 -1
- package/dist/x/isEqual.min.js +1 -1
- package/dist/x/isEqual.mjs +1 -1
- package/dist/x/isFunction.es.js +1 -1
- package/dist/x/isFunction.es.min.js +1 -1
- package/dist/x/isFunction.js +1 -1
- package/dist/x/isFunction.min.js +1 -1
- package/dist/x/isFunction.mjs +1 -1
- package/dist/x/isIn.es.js +1 -1
- package/dist/x/isIn.es.min.js +1 -1
- package/dist/x/isIn.js +1 -1
- package/dist/x/isIn.min.js +1 -1
- package/dist/x/isIn.mjs +1 -1
- package/dist/x/isObject.es.js +1 -1
- package/dist/x/isObject.es.min.js +1 -1
- package/dist/x/isObject.js +1 -1
- package/dist/x/isObject.min.js +1 -1
- package/dist/x/isObject.mjs +1 -1
- package/dist/x/isString.es.js +1 -1
- package/dist/x/isString.es.min.js +1 -1
- package/dist/x/isString.js +1 -1
- package/dist/x/isString.min.js +1 -1
- package/dist/x/isString.mjs +1 -1
- package/dist/x/keys.es.js +1 -1
- package/dist/x/keys.es.min.js +1 -1
- package/dist/x/keys.js +1 -1
- package/dist/x/keys.min.js +1 -1
- package/dist/x/keys.mjs +1 -1
- package/dist/x/last.es.js +1 -1
- package/dist/x/last.es.min.js +1 -1
- package/dist/x/last.js +1 -1
- package/dist/x/last.min.js +1 -1
- package/dist/x/last.mjs +1 -1
- package/dist/x/maxBy.es.js +1 -1
- package/dist/x/maxBy.es.min.js +1 -1
- package/dist/x/maxBy.js +1 -1
- package/dist/x/maxBy.min.js +1 -1
- package/dist/x/maxBy.mjs +1 -1
- package/dist/x/noop.es.js +1 -1
- package/dist/x/noop.es.min.js +1 -1
- package/dist/x/noop.js +1 -1
- package/dist/x/noop.min.js +1 -1
- package/dist/x/noop.mjs +1 -1
- package/dist/x/pluck.es.js +1 -1
- package/dist/x/pluck.es.min.js +1 -1
- package/dist/x/pluck.js +1 -1
- package/dist/x/pluck.min.js +1 -1
- package/dist/x/pluck.mjs +1 -1
- package/dist/x/prepend.es.js +1 -1
- package/dist/x/prepend.es.min.js +1 -1
- package/dist/x/prepend.js +1 -1
- package/dist/x/prepend.min.js +1 -1
- package/dist/x/prepend.mjs +1 -1
- package/dist/x/size.es.js +1 -1
- package/dist/x/size.es.min.js +1 -1
- package/dist/x/size.js +1 -1
- package/dist/x/size.min.js +1 -1
- package/dist/x/size.mjs +1 -1
- package/dist/x/trace.es.js +1 -1
- package/dist/x/trace.es.min.js +1 -1
- package/dist/x/trace.js +1 -1
- package/dist/x/trace.min.js +1 -1
- package/dist/x/trace.mjs +1 -1
- package/dist/x/unionWith.es.js +1 -1
- package/dist/x/unionWith.es.min.js +1 -1
- package/dist/x/unionWith.js +1 -1
- package/dist/x/unionWith.min.js +1 -1
- package/dist/x/unionWith.mjs +1 -1
- package/dist/x/uniq.es.js +1 -1
- package/dist/x/uniq.es.min.js +1 -1
- package/dist/x/uniq.js +1 -1
- package/dist/x/uniq.min.js +1 -1
- package/dist/x/uniq.mjs +1 -1
- package/dist/x/unless.es.js +1 -1
- package/dist/x/unless.es.min.js +1 -1
- package/dist/x/unless.js +1 -1
- package/dist/x/unless.min.js +1 -1
- package/dist/x/unless.mjs +1 -1
- package/dist/x/values.es.js +1 -1
- package/dist/x/values.es.min.js +1 -1
- package/dist/x/values.js +1 -1
- package/dist/x/values.min.js +1 -1
- package/dist/x/values.mjs +1 -1
- package/dist/x/when.es.js +1 -1
- package/dist/x/when.es.min.js +1 -1
- package/dist/x/when.js +1 -1
- package/dist/x/when.min.js +1 -1
- package/dist/x/when.mjs +1 -1
- package/es.js +1 -1
- package/global.js +1 -0
- package/index.js +1 -1
- package/package.json +2 -38
- package/AggregateReducer.d.ts +0 -10
- package/Transducer.d.ts +0 -231
- package/__.d.ts +0 -2
- package/_internal/ComparisonOperator.d.ts +0 -2
- package/_internal/EmptyMap.d.ts +0 -2
- package/_internal/FilteringAsyncIterator.d.ts +0 -29
- package/_internal/FilteringIterator.d.ts +0 -25
- package/_internal/FlatMappingAsyncIterator.d.ts +0 -34
- package/_internal/FlatMappingIterator.d.ts +0 -15
- package/_internal/MappingAsyncIterator.d.ts +0 -21
- package/_internal/MappingIterator.d.ts +0 -29
- package/_internal/NextIteration.d.ts +0 -14
- package/_internal/SelfReferencingPromise.d.ts +0 -10
- package/_internal/add.d.ts +0 -11
- package/_internal/always.d.ts +0 -13
- package/_internal/areAllValuesNonfunctions.d.ts +0 -10
- package/_internal/areAnyValuesPromises.d.ts +0 -10
- package/_internal/arrayConditional.d.ts +0 -20
- package/_internal/arrayEvery.d.ts +0 -10
- package/_internal/arrayExtend.d.ts +0 -13
- package/_internal/arrayExtendMap.d.ts +0 -20
- package/_internal/arrayFilter.d.ts +0 -16
- package/_internal/arrayFilterByConditions.d.ts +0 -20
- package/_internal/arrayFind.d.ts +0 -15
- package/_internal/arrayFlatMap.d.ts +0 -20
- package/_internal/arrayFlatten.d.ts +0 -20
- package/_internal/arrayForEach.d.ts +0 -19
- package/_internal/arrayJoin.d.ts +0 -13
- package/_internal/arrayMap.d.ts +0 -16
- package/_internal/arrayMapPool.d.ts +0 -19
- package/_internal/arrayMapSeries.d.ts +0 -17
- package/_internal/arrayPush.d.ts +0 -11
- package/_internal/arrayReduce.d.ts +0 -14
- package/_internal/arraySome.d.ts +0 -13
- package/_internal/asyncIteratorEvery.d.ts +0 -16
- package/_internal/asyncIteratorFind.d.ts +0 -12
- package/_internal/asyncIteratorForEach.d.ts +0 -17
- package/_internal/asyncIteratorReduce.d.ts +0 -14
- package/_internal/asyncIteratorSome.d.ts +0 -16
- package/_internal/binaryExtend.d.ts +0 -16
- package/_internal/bufferAlloc.d.ts +0 -8
- package/_internal/callConcat.d.ts +0 -8
- package/_internal/callPropBinary.d.ts +0 -18
- package/_internal/callPropUnary.d.ts +0 -17
- package/_internal/catcherApply.d.ts +0 -17
- package/_internal/copyDeep.d.ts +0 -13
- package/_internal/curry2.d.ts +0 -21
- package/_internal/curry3.d.ts +0 -22
- package/_internal/curry4.d.ts +0 -23
- package/_internal/curry5.d.ts +0 -24
- package/_internal/curryArgs2.d.ts +0 -21
- package/_internal/curryArgs3.d.ts +0 -22
- package/_internal/curryArgs4.d.ts +0 -23
- package/_internal/curryArity.d.ts +0 -20
- package/_internal/deleteByPath.d.ts +0 -13
- package/_internal/equals.d.ts +0 -10
- package/_internal/funcApply.d.ts +0 -16
- package/_internal/funcConcat.d.ts +0 -17
- package/_internal/funcConcatSync.d.ts +0 -17
- package/_internal/functionArrayAll.d.ts +0 -10
- package/_internal/functionArrayAllSeries.d.ts +0 -10
- package/_internal/functionObjectAll.d.ts +0 -13
- package/_internal/genericReduce.d.ts +0 -26
- package/_internal/genericTransform.d.ts +0 -18
- package/_internal/getArg1.d.ts +0 -8
- package/_internal/getByPath.d.ts +0 -13
- package/_internal/globalThisHasBuffer.d.ts +0 -11
- package/_internal/greaterThan.d.ts +0 -10
- package/_internal/greaterThanOrEqual.d.ts +0 -10
- package/_internal/identity.d.ts +0 -11
- package/_internal/isArray.d.ts +0 -11
- package/_internal/isAsyncGeneratorFunction.d.ts +0 -11
- package/_internal/isBinary.d.ts +0 -11
- package/_internal/isGeneratorFunction.d.ts +0 -11
- package/_internal/isNodeReadStream.d.ts +0 -11
- package/_internal/isObject.d.ts +0 -11
- package/_internal/isPromise.d.ts +0 -11
- package/_internal/iteratorEvery.d.ts +0 -12
- package/_internal/iteratorFind.d.ts +0 -12
- package/_internal/iteratorForEach.d.ts +0 -19
- package/_internal/iteratorReduce.d.ts +0 -18
- package/_internal/iteratorSome.d.ts +0 -13
- package/_internal/leftResolverRightResolverCompare.d.ts +0 -2
- package/_internal/leftResolverRightValueCompare.d.ts +0 -2
- package/_internal/leftValueRightResolverCompare.d.ts +0 -2
- package/_internal/lessThan.d.ts +0 -10
- package/_internal/lessThanOrEqual.d.ts +0 -10
- package/_internal/mapFilter.d.ts +0 -21
- package/_internal/mapFrom.d.ts +0 -13
- package/_internal/mapMap.d.ts +0 -16
- package/_internal/mapMapEntries.d.ts +0 -13
- package/_internal/mapReduce.d.ts +0 -14
- package/_internal/mapSet.d.ts +0 -10
- package/_internal/memoizeCappedUnary.d.ts +0 -18
- package/_internal/nonfunctionsConditional.d.ts +0 -10
- package/_internal/noop.d.ts +0 -11
- package/_internal/objectAssign.d.ts +0 -15
- package/_internal/objectFilter.d.ts +0 -13
- package/_internal/objectFlatMap.d.ts +0 -26
- package/_internal/objectFlatten.d.ts +0 -21
- package/_internal/objectForEach.d.ts +0 -17
- package/_internal/objectKeys.d.ts +0 -11
- package/_internal/objectKeysLength.d.ts +0 -10
- package/_internal/objectMap.d.ts +0 -17
- package/_internal/objectMapEntries.d.ts +0 -13
- package/_internal/objectReduce.d.ts +0 -14
- package/_internal/objectSet.d.ts +0 -14
- package/_internal/objectSetIf.d.ts +0 -15
- package/_internal/objectToString.d.ts +0 -11
- package/_internal/objectValues.d.ts +0 -11
- package/_internal/placeholder.d.ts +0 -2
- package/_internal/promiseAll.d.ts +0 -11
- package/_internal/promiseObjectAll.d.ts +0 -13
- package/_internal/promiseRace.d.ts +0 -11
- package/_internal/propertyPathToArray.d.ts +0 -10
- package/_internal/reducerAllSync.d.ts +0 -10
- package/_internal/reducerAnySync.d.ts +0 -10
- package/_internal/reducerConcat.d.ts +0 -15
- package/_internal/reducerEvery.d.ts +0 -12
- package/_internal/reducerFilter.d.ts +0 -19
- package/_internal/reducerFlatMap.d.ts +0 -20
- package/_internal/reducerForEach.d.ts +0 -18
- package/_internal/reducerMap.d.ts +0 -19
- package/_internal/reducerSome.d.ts +0 -16
- package/_internal/reducerTryCatch.d.ts +0 -15
- package/_internal/sameValueZero.d.ts +0 -13
- package/_internal/setByPath.d.ts +0 -14
- package/_internal/setExtend.d.ts +0 -12
- package/_internal/setFilter.d.ts +0 -16
- package/_internal/setFlatMap.d.ts +0 -21
- package/_internal/setFlatten.d.ts +0 -19
- package/_internal/setMap.d.ts +0 -17
- package/_internal/sha256.d.ts +0 -2
- package/_internal/sleep.d.ts +0 -10
- package/_internal/spread2.d.ts +0 -14
- package/_internal/streamExtend.d.ts +0 -17
- package/_internal/stringFilter.d.ts +0 -17
- package/_internal/stringFlatMap.d.ts +0 -22
- package/_internal/stringMap.d.ts +0 -19
- package/_internal/symbolAsyncIterator.d.ts +0 -11
- package/_internal/symbolIterator.d.ts +0 -11
- package/_internal/tapSync.d.ts +0 -16
- package/_internal/thunkConditional.d.ts +0 -17
- package/_internal/thunkify1.d.ts +0 -16
- package/_internal/thunkify2.d.ts +0 -17
- package/_internal/thunkify3.d.ts +0 -18
- package/_internal/thunkify4.d.ts +0 -19
- package/_internal/thunkify5.d.ts +0 -20
- package/_internal/thunkifyArgs.d.ts +0 -13
- package/_internal/timeInLoop.d.ts +0 -25
- package/_internal/timeInLoopAsync.d.ts +0 -23
- package/all.d.ts +0 -100
- package/always.d.ts +0 -2
- package/and.d.ts +0 -45
- package/assign.d.ts +0 -46
- package/compose.d.ts +0 -25
- package/curry.d.ts +0 -70
- package/eq.d.ts +0 -51
- package/es.d.ts +0 -80
- package/every.d.ts +0 -52
- package/filter.d.ts +0 -148
- package/flatMap.d.ts +0 -109
- package/forEach.d.ts +0 -35
- package/get.d.ts +0 -70
- package/global.d.ts +0 -1
- package/gt.d.ts +0 -49
- package/gte.d.ts +0 -51
- package/index.d.ts +0 -1
- package/lt.d.ts +0 -49
- package/lte.d.ts +0 -49
- package/map.d.ts +0 -246
- package/not.d.ts +0 -34
- package/omit.d.ts +0 -50
- package/or.d.ts +0 -43
- package/pick.d.ts +0 -43
- package/pipe.d.ts +0 -49
- package/reduce.d.ts +0 -166
- package/set.d.ts +0 -61
- package/some.d.ts +0 -65
- package/switchCase.d.ts +0 -76
- package/tap.d.ts +0 -53
- package/thunkify.d.ts +0 -21
- package/transform.d.ts +0 -131
- package/tryCatch.d.ts +0 -47
package/gte.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export = gte;
|
|
2
|
-
/**
|
|
3
|
-
* @name gte
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* gte(leftValue Promise|any, rightValue Promise|any) -> boolean
|
|
8
|
-
*
|
|
9
|
-
* gte(leftValue Promise|any, right function)(...args) -> Promise|boolean
|
|
10
|
-
* gte(...args, leftValue Promise|any, right function) -> Promise|boolean
|
|
11
|
-
*
|
|
12
|
-
* gte(left function, rightValue Promise|any)(...args) -> Promise|boolean
|
|
13
|
-
* gte(...args, left function, rightValue Promise|any) -> Promise|boolean
|
|
14
|
-
*
|
|
15
|
-
* gte(left function, right function)(...args) -> Promise|boolean
|
|
16
|
-
* gte(...args, left function, right function) -> Promise|boolean
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* Test if a value is greater than or equal (`>=`) to another value.
|
|
21
|
-
*
|
|
22
|
-
* ```javascript [playground]
|
|
23
|
-
* const age = 20
|
|
24
|
-
*
|
|
25
|
-
* const isAdultAge = gte(age, 18)
|
|
26
|
-
*
|
|
27
|
-
* console.log(isAdultAge) // true
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* If either of the two values are resolver functions, `gte` returns a function that resolves the values to compare from its arguments.
|
|
31
|
-
*
|
|
32
|
-
* ```javascript [playground]
|
|
33
|
-
* const identity = value => value
|
|
34
|
-
*
|
|
35
|
-
* const isAtLeast100 = gte(identity, 100)
|
|
36
|
-
*
|
|
37
|
-
* console.log(isAtLeast100(99)) // false
|
|
38
|
-
* console.log(isAtLeast100(100)) // true
|
|
39
|
-
* console.log(isAtLeast100(101)) // true
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* `gte` supports a lazy API for composability.
|
|
43
|
-
*
|
|
44
|
-
* ```javascript [playground]
|
|
45
|
-
* pipe({ value: 1 }, [
|
|
46
|
-
* gte(1, get('value')),
|
|
47
|
-
* console.log, // true
|
|
48
|
-
* ])
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
declare const gte: (...args: any[]) => any;
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export = rubico;
|
package/lt.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export = lt;
|
|
2
|
-
/**
|
|
3
|
-
* @name lt
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* lt(leftValue Promise|any, rightValue Promise|any) -> boolean
|
|
8
|
-
*
|
|
9
|
-
* lt(leftValue Promise|any, right function)(...args) -> Promise|boolean
|
|
10
|
-
* lt(...args, leftValue Promise|any, right function) -> Promise|boolean
|
|
11
|
-
*
|
|
12
|
-
* lt(left function, rightValue Promise|any)(...args) -> Promise|boolean
|
|
13
|
-
* lt(...args, left function, rightValue Promise|any) -> Promise|boolean
|
|
14
|
-
*
|
|
15
|
-
* lt(left function, right function)(...args) -> Promise|boolean
|
|
16
|
-
* lt(...args, left function, right function) -> Promise|boolean
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* Test if a value is less than (`<`) another value.
|
|
21
|
-
*
|
|
22
|
-
* ```javascript [playground]
|
|
23
|
-
* console.log(lt(1, 3)) // true
|
|
24
|
-
* console.log(lt(3, 3)) // false
|
|
25
|
-
* console.log(lt(4, 3)) // false
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* If either of the two values are resolver functions, `lt` returns a function that resolves the values to compare from its arguments.
|
|
29
|
-
*
|
|
30
|
-
* ```javascript [playground]
|
|
31
|
-
* const identity = value => value
|
|
32
|
-
*
|
|
33
|
-
* const isLessThan3 = lt(identity, 3)
|
|
34
|
-
*
|
|
35
|
-
* console.log(isLessThan3(1)) // true
|
|
36
|
-
* console.log(isLessThan3(3)) // false
|
|
37
|
-
* console.log(isLessThan3(5)) // false
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* `lt` supports a lazy API for composability.
|
|
41
|
-
*
|
|
42
|
-
* ```javascript [playground]
|
|
43
|
-
* pipe({ value: 1 }, [
|
|
44
|
-
* lt(0, get('value')),
|
|
45
|
-
* console.log, // true
|
|
46
|
-
* ])
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
declare const lt: (...args: any[]) => any;
|
package/lte.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export = lte;
|
|
2
|
-
/**
|
|
3
|
-
* @name lte
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* lte(leftValue Promise|any, rightValue Promise|any) -> boolean
|
|
8
|
-
*
|
|
9
|
-
* lte(leftValue Promise|any, right function)(...args) -> Promise|boolean
|
|
10
|
-
* lte(...args, leftValue Promise|any, right function) -> Promise|boolean
|
|
11
|
-
*
|
|
12
|
-
* lte(left function, rightValue Promise|any)(...args) -> Promise|boolean
|
|
13
|
-
* lte(...args, left function, rightValue Promise|any) -> Promise|boolean
|
|
14
|
-
*
|
|
15
|
-
* lte(left function, right function)(...args) -> Promise|boolean
|
|
16
|
-
* lte(...args, left function, right function) -> Promise|boolean
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* Test if a value is less than or equal (`<=`) to another value.
|
|
21
|
-
*
|
|
22
|
-
* ```javascript [playground]
|
|
23
|
-
* console.log(lte(1, 3)) // true
|
|
24
|
-
* console.log(lte(3, 3)) // true
|
|
25
|
-
* console.log(lte(4, 3)) // false
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* If either of the two values are resolver functions, `lte` returns a function that resolves the values to compare from its arguments.
|
|
29
|
-
*
|
|
30
|
-
* ```javascript [playground]
|
|
31
|
-
* const identity = value => value
|
|
32
|
-
*
|
|
33
|
-
* const isLessThanOrEqualTo3 = lte(identity, 3)
|
|
34
|
-
*
|
|
35
|
-
* console.log(isLessThanOrEqualTo3(1), true)
|
|
36
|
-
* console.log(isLessThanOrEqualTo3(3), true)
|
|
37
|
-
* console.log(isLessThanOrEqualTo3(5), false)
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* `lte` supports a lazy API for composability.
|
|
41
|
-
*
|
|
42
|
-
* ```javascript [playground]
|
|
43
|
-
* pipe({ value: 1 }, [
|
|
44
|
-
* lte(1, get('value')),
|
|
45
|
-
* console.log, // true
|
|
46
|
-
* ])
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
declare const lte: (...args: any[]) => any;
|
package/map.d.ts
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
export = map;
|
|
2
|
-
/**
|
|
3
|
-
* @name map
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* type Mappable = Array|Object|Set|Map|Iterator|AsyncIterator
|
|
8
|
-
*
|
|
9
|
-
* type Mapper = (
|
|
10
|
-
* value any,
|
|
11
|
-
* indexOrKey number|string,
|
|
12
|
-
* collection Mappable
|
|
13
|
-
* )=>(mappedElement Promise|any)
|
|
14
|
-
*
|
|
15
|
-
* map(value Mappable, mapper Mapper) -> result Promise|Mappable
|
|
16
|
-
* map(mapper Mapper)(value Mappable) -> result Promise|Mappable
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* Applies a synchronous or asynchronous mapper function concurrently to each element of a collection, returning the results in a new collection of the same type. If order is implied by the collection, it is maintained in the result. `map` accepts the following collections:
|
|
21
|
-
*
|
|
22
|
-
* * `Array`
|
|
23
|
-
* * `Object`
|
|
24
|
-
* * `Set`
|
|
25
|
-
* * `Map`
|
|
26
|
-
* * `Iterator`/`Generator`
|
|
27
|
-
* * `AsyncIterator`/`AsyncGenerator`
|
|
28
|
-
*
|
|
29
|
-
* With arrays (type `Array`), `map` applies the mapper function to each element of the array, returning the transformed results in a new array ordered the same as the original array.
|
|
30
|
-
*
|
|
31
|
-
* ```javascript [playground]
|
|
32
|
-
* const square = number => number ** 2
|
|
33
|
-
*
|
|
34
|
-
* const array = [1, 2, 3, 4, 5]
|
|
35
|
-
*
|
|
36
|
-
* console.log(
|
|
37
|
-
* map(array, square)
|
|
38
|
-
* ) // [1, 4, 9, 16, 25]
|
|
39
|
-
*
|
|
40
|
-
* console.log(
|
|
41
|
-
* map(square)(array)
|
|
42
|
-
* ) // [1, 4, 9, 16, 25]
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* With objects (type `Object`), `map` applies the mapper function to each value of the object, returning the transformed results as values in a new object ordered by the keys of the original object
|
|
46
|
-
*
|
|
47
|
-
* ```javascript [playground]
|
|
48
|
-
* const square = number => number ** 2
|
|
49
|
-
*
|
|
50
|
-
* const obj = { a: 1, b: 2, c: 3, d: 4, e: 5 }
|
|
51
|
-
*
|
|
52
|
-
* console.log(
|
|
53
|
-
* map(square)(obj)
|
|
54
|
-
* ) // { a: 1, b: 4, c: 9, d: 16, e: 25 }
|
|
55
|
-
*
|
|
56
|
-
* console.log(
|
|
57
|
-
* map(obj, square)
|
|
58
|
-
* ) // { a: 1, b: 4, c: 9, d: 16, e: 25 }
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* With sets (type `Set`), `map` applies the mapper function to each value of the set, returning the transformed results unordered in a new set.
|
|
62
|
-
*
|
|
63
|
-
* ```javascript [playground]
|
|
64
|
-
* const square = number => number ** 2
|
|
65
|
-
*
|
|
66
|
-
* const set = new Set([1, 2, 3, 4, 5])
|
|
67
|
-
*
|
|
68
|
-
* console.log(
|
|
69
|
-
* map(set, square)
|
|
70
|
-
* ) // [1, 4, 9, 16, 25]
|
|
71
|
-
*
|
|
72
|
-
* console.log(
|
|
73
|
-
* map(square)(set)
|
|
74
|
-
* ) // [1, 4, 9, 16, 25]
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* With maps (type `Map`), `map` applies the mapper function to each value of the map, returning the results at the same keys in a new map. The entries of the resulting map are in the same order as those of the original map
|
|
78
|
-
*
|
|
79
|
-
* ```javascript [playground]
|
|
80
|
-
* const square = number => number ** 2
|
|
81
|
-
*
|
|
82
|
-
* const m = new Map([['a', 1], ['b', 2], ['c', 3], ['d', 4], ['e', 5]])
|
|
83
|
-
*
|
|
84
|
-
* console.log(
|
|
85
|
-
* map(square)(m)
|
|
86
|
-
* ) // Map { 'a' => 1, 'b' => 4, 'c' => 9, 'd' => 16, 'e' => 25 }
|
|
87
|
-
*
|
|
88
|
-
* console.log(
|
|
89
|
-
* map(m, square)
|
|
90
|
-
* ) // Map { 'a' => 1, 'b' => 4, 'c' => 9, 'd' => 16, 'e' => 25 }
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* With iterators (type `Iterator`) or generators (type `Generator`), `map` applies the mapper function lazily to each value of the iterator/generator, creating a new iterator with transformed iterations.
|
|
94
|
-
*
|
|
95
|
-
* ```javascript [playground]
|
|
96
|
-
* const capitalize = string => string.toUpperCase()
|
|
97
|
-
*
|
|
98
|
-
* const abcGeneratorFunc = function* () {
|
|
99
|
-
* yield 'a'; yield 'b'; yield 'c'
|
|
100
|
-
* }
|
|
101
|
-
*
|
|
102
|
-
* const abcGenerator = abcGeneratorFunc()
|
|
103
|
-
* const ABCGenerator = map(abcGeneratorFunc(), capitalize)
|
|
104
|
-
* const ABCGenerator2 = map(capitalize)(abcGeneratorFunc())
|
|
105
|
-
*
|
|
106
|
-
* console.log([...abcGenerator]) // ['a', 'b', 'c']
|
|
107
|
-
*
|
|
108
|
-
* console.log([...ABCGenerator]) // ['A', 'B', 'C']
|
|
109
|
-
*
|
|
110
|
-
* console.log([...ABCGenerator2]) // ['A', 'B', 'C']
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* With asyncIterators (type `AsyncIterator`, or `AsyncGenerator`), `map` applies the mapper function lazily to each value of the asyncIterator, creating a new asyncIterator with transformed iterations
|
|
114
|
-
*
|
|
115
|
-
* ```javascript [playground]
|
|
116
|
-
* const capitalize = string => string.toUpperCase()
|
|
117
|
-
*
|
|
118
|
-
* const abcAsyncGeneratorFunc = async function* () {
|
|
119
|
-
* yield 'a'; yield 'b'; yield 'c'
|
|
120
|
-
* }
|
|
121
|
-
*
|
|
122
|
-
* const abcAsyncGenerator = abcAsyncGeneratorFunc()
|
|
123
|
-
* const ABCGenerator = map(abcAsyncGeneratorFunc(), capitalize)
|
|
124
|
-
* const ABCGenerator2 = map(capitalize)(abcAsyncGeneratorFunc())
|
|
125
|
-
*
|
|
126
|
-
* ;(async function () {
|
|
127
|
-
* for await (const letter of abcAsyncGenerator) {
|
|
128
|
-
* console.log(letter)
|
|
129
|
-
* // a
|
|
130
|
-
* // b
|
|
131
|
-
* // c
|
|
132
|
-
* }
|
|
133
|
-
*
|
|
134
|
-
* for await (const letter of ABCGenerator) {
|
|
135
|
-
* console.log(letter)
|
|
136
|
-
* // A
|
|
137
|
-
* // B
|
|
138
|
-
* // C
|
|
139
|
-
* }
|
|
140
|
-
*
|
|
141
|
-
* for await (const letter of ABCGenerator2) {
|
|
142
|
-
* console.log(letter)
|
|
143
|
-
* // A
|
|
144
|
-
* // B
|
|
145
|
-
* // C
|
|
146
|
-
* }
|
|
147
|
-
* })()
|
|
148
|
-
* ```
|
|
149
|
-
*
|
|
150
|
-
* @execution concurrent
|
|
151
|
-
*
|
|
152
|
-
* @TODO streamMap
|
|
153
|
-
*/
|
|
154
|
-
declare function map(...args: any[]): any;
|
|
155
|
-
declare namespace map {
|
|
156
|
-
/**
|
|
157
|
-
* @name map.entries
|
|
158
|
-
*
|
|
159
|
-
* @synopsis
|
|
160
|
-
* ```coffeescript [specscript]
|
|
161
|
-
* map.entries(
|
|
162
|
-
* mapper ([key any, value any])=>Promise|[any, any],
|
|
163
|
-
* )(value Map|Object) -> Promise|Map|Object
|
|
164
|
-
* ```
|
|
165
|
-
*
|
|
166
|
-
* @description
|
|
167
|
-
* `map` over the entries rather than the values of a collection. Accepts collections of type `Map` or `Object`.
|
|
168
|
-
*
|
|
169
|
-
* ```javascript [playground]
|
|
170
|
-
* const upperCaseKeysAndSquareValues =
|
|
171
|
-
* map.entries(([key, value]) => [key.toUpperCase(), value ** 2])
|
|
172
|
-
*
|
|
173
|
-
* console.log(upperCaseKeysAndSquareValues({ a: 1, b: 2, c: 3 }))
|
|
174
|
-
* // { A: 1, B: 4, C: 9 }
|
|
175
|
-
*
|
|
176
|
-
* console.log(upperCaseKeysAndSquareValues(new Map([['a', 1], ['b', 2], ['c', 3]])))
|
|
177
|
-
* // Map(3) { 'A' => 1, 'B' => 4, 'C' => 9 }
|
|
178
|
-
* ```
|
|
179
|
-
*
|
|
180
|
-
* @since v1.7.0
|
|
181
|
-
*/
|
|
182
|
-
function entries(mapper: any): (value: any) => any;
|
|
183
|
-
/**
|
|
184
|
-
* @name map.series
|
|
185
|
-
*
|
|
186
|
-
* @synopsis
|
|
187
|
-
* ```coffeescript [specscript]
|
|
188
|
-
* map.series(
|
|
189
|
-
* mapperFunc (value any, index number)=>Promise|any,
|
|
190
|
-
* )(array Array) -> Promise|Array
|
|
191
|
-
* ```
|
|
192
|
-
*
|
|
193
|
-
* @description
|
|
194
|
-
* `map` with serial execution.
|
|
195
|
-
*
|
|
196
|
-
* ```javascript [playground]
|
|
197
|
-
* const delayedLog = number => new Promise(function (resolve) {
|
|
198
|
-
* setTimeout(function () {
|
|
199
|
-
* console.log(number)
|
|
200
|
-
* resolve()
|
|
201
|
-
* }, 1000)
|
|
202
|
-
* })
|
|
203
|
-
*
|
|
204
|
-
* console.log('start')
|
|
205
|
-
* map.series(delayedLog)([1, 2, 3, 4, 5])
|
|
206
|
-
* ```
|
|
207
|
-
*
|
|
208
|
-
* @execution series
|
|
209
|
-
*/
|
|
210
|
-
function series(mapper: any, index: number): (value: any) => any;
|
|
211
|
-
/**
|
|
212
|
-
* @name map.pool
|
|
213
|
-
*
|
|
214
|
-
* @synopsis
|
|
215
|
-
* ```coffeescript [specscript]
|
|
216
|
-
* map.pool(
|
|
217
|
-
* maxConcurrency number,
|
|
218
|
-
* mapper (value any)=>Promise|any,
|
|
219
|
-
* )(array Array) -> result Promise|Array
|
|
220
|
-
* ```
|
|
221
|
-
*
|
|
222
|
-
* @description
|
|
223
|
-
* `map` that specifies the maximum concurrency (number of ongoing promises at any time) of the execution. Only works for arrays.
|
|
224
|
-
*
|
|
225
|
-
* ```javascript [playground]
|
|
226
|
-
* const ids = [1, 2, 3, 4, 5]
|
|
227
|
-
*
|
|
228
|
-
* const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
|
|
229
|
-
*
|
|
230
|
-
* const delayedIdentity = async value => {
|
|
231
|
-
* await sleep(1000)
|
|
232
|
-
* return value
|
|
233
|
-
* }
|
|
234
|
-
*
|
|
235
|
-
* map.pool(2, pipe([
|
|
236
|
-
* delayedIdentity,
|
|
237
|
-
* console.log,
|
|
238
|
-
* ]))(ids)
|
|
239
|
-
* ```
|
|
240
|
-
*
|
|
241
|
-
* @TODO objectMapPool
|
|
242
|
-
*
|
|
243
|
-
* @execution concurrent
|
|
244
|
-
*/
|
|
245
|
-
function pool(concurrencyLimit: any, mapper: any): (value: any) => any[] | Promise<any>;
|
|
246
|
-
}
|
package/not.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export = not;
|
|
2
|
-
/**
|
|
3
|
-
* @name not
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* not(value boolean) -> negated boolean
|
|
8
|
-
*
|
|
9
|
-
* not(...args, predicate function) -> negated boolean
|
|
10
|
-
*
|
|
11
|
-
* not(predicate function)(...args) -> negated boolean
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Negate a value like the [logical NOT (`!`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_NOT) operator.
|
|
16
|
-
*
|
|
17
|
-
* ```javascript [playground]
|
|
18
|
-
* const myObj = { a: 1 }
|
|
19
|
-
*
|
|
20
|
-
* console.log(not('a' in myObj)) // false
|
|
21
|
-
* console.log(not('b' in myObj)) // true
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* If provided a predicate function, `not` returns a logically inverted predicate that returns true everywhere the original predicate would have returned false.
|
|
25
|
-
*
|
|
26
|
-
* ```javascript [playground]
|
|
27
|
-
* const isOdd = number => number % 2 == 1
|
|
28
|
-
*
|
|
29
|
-
* console.log(
|
|
30
|
-
* not(isOdd)(3),
|
|
31
|
-
* ) // false
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
declare function not(...args: any[]): any;
|
package/omit.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export = omit;
|
|
2
|
-
/**
|
|
3
|
-
* @name omit
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* omit(paths Array<string>)(source Object) -> omitted Object
|
|
8
|
-
*
|
|
9
|
-
* omit(source Object, paths Array<string>) -> omitted Object
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Create a new object by excluding provided paths on a source object.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* console.log(
|
|
17
|
-
* omit({ _id: '1', name: 'John' }, ['_id']),
|
|
18
|
-
* ) // { name: 'John' }
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* `omit` supports three types of path patterns for nested property access
|
|
22
|
-
*
|
|
23
|
-
* * dot delimited - `'a.b.c'`
|
|
24
|
-
* * bracket notation - `'a[0].value'`
|
|
25
|
-
* * an array of keys or indices - `['a', 0, 'value']`
|
|
26
|
-
*
|
|
27
|
-
* ```javascript [playground]
|
|
28
|
-
* console.log(
|
|
29
|
-
* omit(['a.b.d'])({
|
|
30
|
-
* a: {
|
|
31
|
-
* b: {
|
|
32
|
-
* c: 'hello',
|
|
33
|
-
* d: 'goodbye',
|
|
34
|
-
* },
|
|
35
|
-
* },
|
|
36
|
-
* }),
|
|
37
|
-
* ) // { a: { b: { c: 'hello' } } }
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* Compose `omit` inside a `pipe` with its lazy API
|
|
41
|
-
*
|
|
42
|
-
* ```javascript [playground]
|
|
43
|
-
* pipe({ a: 1, b: 2, c: 3 }, [
|
|
44
|
-
* map(number => number ** 2),
|
|
45
|
-
* omit(['a', 'b']),
|
|
46
|
-
* console.log, // { c: 9 }
|
|
47
|
-
* ])
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
declare function omit(arg0: any, arg1: any): any;
|
package/or.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export = or;
|
|
2
|
-
/**
|
|
3
|
-
* @name or
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* or(values Array<boolean>) -> result boolean
|
|
8
|
-
*
|
|
9
|
-
* or(...args, predicatesOrValues Array<function|boolean>) -> Promise|boolean
|
|
10
|
-
*
|
|
11
|
-
* or(predicatesOrValues Array<function|boolean>)(...args) -> Promise|boolean
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Tests an array of boolean values, returning true if any boolean values are truthy.
|
|
16
|
-
*
|
|
17
|
-
* ```javascript [playground]
|
|
18
|
-
* const oneIsLessThanZero = 1 < 0
|
|
19
|
-
* const oneIsGreaterThanTwo = 1 > 2
|
|
20
|
-
* const threeIsNotEqualToThree = 3 !== 3
|
|
21
|
-
*
|
|
22
|
-
* console.log(
|
|
23
|
-
* or([oneIsLessThanZero, oneIsGreaterThanTwo, threeIsNotEqualToThree]),
|
|
24
|
-
* ) // false
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* If any values in the array are synchronous or asynchronous predicate functions, `or` takes another argument to test concurrently against the predicate functions, returning true if any array values or resolved values from the predicates are truthy.
|
|
28
|
-
*
|
|
29
|
-
* ```javascript [playground]
|
|
30
|
-
* const isOdd = number => number % 2 == 1
|
|
31
|
-
*
|
|
32
|
-
* const isEven = number => number % 2 == 0
|
|
33
|
-
*
|
|
34
|
-
* console.log(
|
|
35
|
-
* or([isOdd, isEven])(0),
|
|
36
|
-
* ) // true
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @execution series
|
|
40
|
-
*
|
|
41
|
-
* @note ...args slows down here by an order of magnitude
|
|
42
|
-
*/
|
|
43
|
-
declare function or(...args: any[]): any;
|
package/pick.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export = pick;
|
|
2
|
-
/**
|
|
3
|
-
* @name pick
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* pick(object Object, keys Array<string>) -> result Object
|
|
8
|
-
*
|
|
9
|
-
* pick(keys Array<string>)(object Object) -> result Object
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Creates a new object from a source object by selecting provided keys. If a provided key does not exist on the source object, excludes it from the resulting object.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* console.log(
|
|
17
|
-
* pick({ goodbye: 1, world: 2 }, ['hello', 'world']),
|
|
18
|
-
* ) // { world: 2 }
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* `pick` supports three types of path patterns for nested property access
|
|
22
|
-
*
|
|
23
|
-
* * dot delimited - `'a.b.c'`
|
|
24
|
-
* * bracket notation - `'a[0].value'`
|
|
25
|
-
* * an array of keys or indices - `['a', 0, 'value']`
|
|
26
|
-
*
|
|
27
|
-
* ```javascript [playground]
|
|
28
|
-
* const nested = { a: { b: { c: { d: 1, e: [2, 3] } } } }
|
|
29
|
-
*
|
|
30
|
-
* console.log(pick(['a.b.c.d'])(nested)) // { a: { b: { c: { d: 1 } } } }
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* Compose `pick` inside a `pipe` with its lazy API.
|
|
34
|
-
*
|
|
35
|
-
* ```javascript [playground]
|
|
36
|
-
* pipe({ a: 1, b: 2, c: 3 }, [
|
|
37
|
-
* map(number => number ** 2),
|
|
38
|
-
* pick(['a', 'c']),
|
|
39
|
-
* console.log, // { a: 1, c: 9 }
|
|
40
|
-
* ])
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
declare function pick(arg0: any, arg1: any): any;
|
package/pipe.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export = pipe;
|
|
2
|
-
/**
|
|
3
|
-
* @name pipe
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* pipe(funcs Array<function>)(...args) -> result Promise|any
|
|
8
|
-
*
|
|
9
|
-
* pipe(...args, funcs Array<function>) -> result Promise|any
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Creates a function pipeline from an array of functions, where each function passes its return value as a single argument to the next function until all functions have executed. The first function is called with the arguments to the pipeline, while the result of the pipeline execution is the return of its last function. If any function of the pipeline is asynchronous, the result of the execution is a Promise.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* const syncAdd123 = pipe([
|
|
17
|
-
* number => number + 1,
|
|
18
|
-
* number => number + 2,
|
|
19
|
-
* number => number + 3,
|
|
20
|
-
* ])
|
|
21
|
-
*
|
|
22
|
-
* console.log(syncAdd123(5)) // 11
|
|
23
|
-
*
|
|
24
|
-
* const asyncAdd123 = pipe([
|
|
25
|
-
* async number => number + 1,
|
|
26
|
-
* async number => number + 2,
|
|
27
|
-
* async number => number + 3,
|
|
28
|
-
* ])
|
|
29
|
-
*
|
|
30
|
-
* asyncAdd123(5).then(console.log) // 11
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* When passed any amount of arguments before the array of functions, `pipe` executes eagerly; the array of functions is immediately invoked with the supplied arguments.
|
|
34
|
-
*
|
|
35
|
-
* ```javascript [playground]
|
|
36
|
-
* pipe(1, 2, 3, [
|
|
37
|
-
* Array.of,
|
|
38
|
-
* map(number => number * 3),
|
|
39
|
-
* console.log, // [3, 6, 9]
|
|
40
|
-
* ])
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @execution series
|
|
44
|
-
*
|
|
45
|
-
* @transducing
|
|
46
|
-
*
|
|
47
|
-
* @since 1.6.0
|
|
48
|
-
*/
|
|
49
|
-
declare function pipe(...args: any[]): any;
|