rubico 2.7.5 → 2.7.7
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/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/index.js +1 -1
- package/package.json +3 -40
- 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/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/x/append.d.ts +0 -38
- package/x/callProp.d.ts +0 -20
- package/x/defaultsDeep.d.ts +0 -42
- package/x/differenceWith.d.ts +0 -25
- package/x/filterOut.d.ts +0 -39
- package/x/find.d.ts +0 -34
- package/x/findIndex.d.ts +0 -25
- package/x/first.d.ts +0 -23
- package/x/flatten.d.ts +0 -57
- package/x/groupBy.d.ts +0 -50
- package/x/has.d.ts +0 -25
- package/x/heapUsedInLoop.d.ts +0 -53
- package/x/identity.d.ts +0 -21
- package/x/includes.d.ts +0 -25
- package/x/index.d.ts +0 -34
- package/x/is.d.ts +0 -2
- package/x/isDeepEqual.d.ts +0 -42
- package/x/isEmpty.d.ts +0 -24
- package/x/isEqual.d.ts +0 -2
- package/x/isFunction.d.ts +0 -23
- package/x/isIn.d.ts +0 -61
- package/x/isObject.d.ts +0 -2
- package/x/isString.benchmarks.d.ts +0 -1
- package/x/isString.d.ts +0 -21
- package/x/keys.d.ts +0 -23
- package/x/last.d.ts +0 -22
- package/x/maxBy.d.ts +0 -41
- package/x/noop.d.ts +0 -21
- package/x/pluck.d.ts +0 -35
- package/x/prepend.d.ts +0 -38
- package/x/size.d.ts +0 -21
- package/x/test.d.ts +0 -1
- package/x/timeInLoop.d.ts +0 -21
- package/x/trace.d.ts +0 -30
- package/x/tracef.d.ts +0 -7
- package/x/unionWith.d.ts +0 -31
- package/x/uniq.d.ts +0 -24
- package/x/unless.d.ts +0 -28
- package/x/values.d.ts +0 -23
- package/x/when.d.ts +0 -28
package/x/first.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export = first;
|
|
2
|
-
/**
|
|
3
|
-
* @name first
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* var value Array|string
|
|
8
|
-
*
|
|
9
|
-
* first(value) -> any
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Get the first element of a collection
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* import first from 'https://unpkg.com/rubico/dist/x/first.es.js'
|
|
17
|
-
*
|
|
18
|
-
* console.log(first([1, 2, 3])) // 1
|
|
19
|
-
* console.log(first('abc')) // 'a'
|
|
20
|
-
* console.log(first([])) // undefined
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare function first(value: any): any;
|
package/x/flatten.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export = flatten;
|
|
2
|
-
/**
|
|
3
|
-
* @name flatten
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Stream<T> = { read: ()=>T, write: T=>() }
|
|
8
|
-
* Monad<T> = Array<T>|String<T>|Set<T>
|
|
9
|
-
* |TypedArray<T>|Stream<T>|Iterator<T>|AsyncIterator<T>
|
|
10
|
-
* |{ chain: T=>Monad<T> }|{ flatMap: T=>Monad<T> }|Object<T>
|
|
11
|
-
* Reducer<T> = (any, T)=>Promise|any
|
|
12
|
-
* Foldable<T> = Iterable<T>|AsyncIterable<T>|{ reduce: Reducer<T>=>any }|Object<T>
|
|
13
|
-
*
|
|
14
|
-
* var T any,
|
|
15
|
-
* monad Monad<Monad<T>|Foldable<T>|T>,
|
|
16
|
-
* args ...any,
|
|
17
|
-
* generatorFunction ...args=>Generator<Monad<T>|Foldable<T>|T>,
|
|
18
|
-
* asyncGeneratorFunction ...args=>AsyncGenerator<Monad<T>|Foldable<T>|T>,
|
|
19
|
-
* reducer Reducer<Monad<T>|Foldable<T>|T>
|
|
20
|
-
*
|
|
21
|
-
* flatten(monad) -> Monad<T>
|
|
22
|
-
*
|
|
23
|
-
* flatten(generatorFunction) -> ...args=>Generator<T>
|
|
24
|
-
*
|
|
25
|
-
* flatten(asyncGeneratorFunction) -> ...args=>AsyncGenerator<T>
|
|
26
|
-
*
|
|
27
|
-
* flatten(reducer) -> Reducer<T>
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @description
|
|
31
|
-
* Flatten a collection. Works in transducer position.
|
|
32
|
-
*
|
|
33
|
-
* ```javascript [playground]
|
|
34
|
-
* import flatten from 'https://unpkg.com/rubico/dist/x/flatten.es.js'
|
|
35
|
-
*
|
|
36
|
-
* flatten([
|
|
37
|
-
* [1, 1],
|
|
38
|
-
* new Set([2, 2]),
|
|
39
|
-
* (function* () { yield 3; yield 3 })(),
|
|
40
|
-
* (async function* () { yield 4; yield 4 })(),
|
|
41
|
-
* { a: 5, b: 5 },
|
|
42
|
-
* 6,
|
|
43
|
-
* Promise.resolve(7),
|
|
44
|
-
* new Uint8Array([8]),
|
|
45
|
-
* ]).then(console.log)
|
|
46
|
-
* // [1, 1, 2, 3, 3, 5, 5, 6, 7, 8, 4, 4]
|
|
47
|
-
*
|
|
48
|
-
* const add = (a, b) => a + b
|
|
49
|
-
*
|
|
50
|
-
* console.log(
|
|
51
|
-
* [[1], [2], [3], [4], [5]].reduce(flatten(add), 0),
|
|
52
|
-
* ) // 15
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @TODO flatten for each type
|
|
56
|
-
*/
|
|
57
|
-
declare function flatten(value: any): any;
|
package/x/groupBy.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export = groupBy;
|
|
2
|
-
/**
|
|
3
|
-
* @name groupBy
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Reducer<T> = (any, T)=>Promise|any
|
|
8
|
-
* Foldable<T> = Iterable<T>|AsyncIterable<T>|{ reduce: Reducer<T>=>any }|Object<T>
|
|
9
|
-
*
|
|
10
|
-
* var property any,
|
|
11
|
-
* resolver any=>Promise|any,
|
|
12
|
-
* value Foldable
|
|
13
|
-
*
|
|
14
|
-
* groupBy(property)(value) -> groupedByProperty Map<any=>Array>
|
|
15
|
-
*
|
|
16
|
-
* groupBy(resolver)(value) -> groupedByResolver Promise|Map<any=>Array>
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* Group a foldable collection into a Map of arrays by a property on each of its elements.
|
|
21
|
-
*
|
|
22
|
-
* ```javascript [playground]
|
|
23
|
-
* import groupBy from 'https://unpkg.com/rubico/dist/x/groupBy.es.js'
|
|
24
|
-
*
|
|
25
|
-
* console.log(
|
|
26
|
-
* groupBy('age')([
|
|
27
|
-
* { name: 'John', age: 22 },
|
|
28
|
-
* { name: 'Jane', age: 22 },
|
|
29
|
-
* { name: 'Henry', age: 23 },
|
|
30
|
-
* ]),
|
|
31
|
-
* )
|
|
32
|
-
* // Map {
|
|
33
|
-
* // 22 => [{ name: 'John', age: 22 }, { name: 'Jane', age: 22 }],
|
|
34
|
-
* // 23 => [{ name: 'Henry', age: 23 }],
|
|
35
|
-
* // }
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* Additionally, pass a resolver in property position to resolve a value for group membership for each element.
|
|
39
|
-
*
|
|
40
|
-
* ```javascript [playground]
|
|
41
|
-
* import groupBy from 'https://unpkg.com/rubico/dist/x/groupBy.es.js'
|
|
42
|
-
*
|
|
43
|
-
* console.log(
|
|
44
|
-
* groupBy(
|
|
45
|
-
* word => word.toLowerCase(),
|
|
46
|
-
* )(['Hello', 'hello', 'Hey']),
|
|
47
|
-
* ) // Map { 'hello' => ['Hello', 'hello'], 'hey' => ['Hey'] }
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
declare function groupBy(propertyOrResolver: any): any;
|
package/x/has.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export = has;
|
|
2
|
-
/**
|
|
3
|
-
* @name has
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* has(key any)(container Set|Map|{ has: function }|Object) -> Promise|boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Check if a collection has a key.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import has from 'https://unpkg.com/rubico/dist/x/has.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* has('a')({ a: 1, b: 2, c: 3 }),
|
|
18
|
-
* ) // true
|
|
19
|
-
*
|
|
20
|
-
* console.log(
|
|
21
|
-
* has('a')({}),
|
|
22
|
-
* ) // false
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function has(key: any): (container: any) => any;
|
package/x/heapUsedInLoop.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export = heapUsedInLoop;
|
|
2
|
-
/**
|
|
3
|
-
* @name heapUsedInLoop
|
|
4
|
-
*
|
|
5
|
-
* @catchphrase
|
|
6
|
-
* max and avg heap used in loop
|
|
7
|
-
*
|
|
8
|
-
* @synopsis
|
|
9
|
-
* heapUsedInLoop(
|
|
10
|
-
* desc string,
|
|
11
|
-
* loopCount number,
|
|
12
|
-
* func (loop number)=>any
|
|
13
|
-
* ) -> ()
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* **heapUsedInLoop** is a memory usage measurement function. Supply `description`, `loopCount`, and a function `func` for that function to be run `loopCount` times, finally logging average and max heap used per loop in terms of megabytes MiB.
|
|
17
|
-
*
|
|
18
|
-
* ```javascript
|
|
19
|
-
* heapUsedInLoop('my-description', 1e5, function () {
|
|
20
|
-
* return 1 + 1
|
|
21
|
-
* }) /*
|
|
22
|
-
* 0 5.88 MiB
|
|
23
|
-
* 1 5.92 MiB
|
|
24
|
-
* ...
|
|
25
|
-
* 99997 7.34 MiB
|
|
26
|
-
* 99998 7.34 MiB
|
|
27
|
-
* 99999 7.35 MiB
|
|
28
|
-
* my-description: 1e+5: {
|
|
29
|
-
* "max": "7.15 MiB",
|
|
30
|
-
* "avg": "5.50 MiB"
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @node-only
|
|
35
|
-
*/
|
|
36
|
-
declare function heapUsedInLoop(desc: any, loopCount: any, func: any): void;
|
|
37
|
-
declare namespace heapUsedInLoop {
|
|
38
|
-
function skip(): void;
|
|
39
|
-
/**
|
|
40
|
-
* @name heapUsedInLoop.async
|
|
41
|
-
*
|
|
42
|
-
* @synopsis
|
|
43
|
-
* heapUsedInLoop.async(
|
|
44
|
-
* desc string,
|
|
45
|
-
* loopCount number,
|
|
46
|
-
* func (loop number)=>Promise|any
|
|
47
|
-
* ) -> ()
|
|
48
|
-
*/
|
|
49
|
-
function async(desc: any, loopCount: any, func: any): Promise<void>;
|
|
50
|
-
namespace async {
|
|
51
|
-
function skip(): void;
|
|
52
|
-
}
|
|
53
|
-
}
|
package/x/identity.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export = identity;
|
|
2
|
-
/**
|
|
3
|
-
* @name identity
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* identity(value any) -> value
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Pass a value and receive the same value back.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import identity from 'https://unpkg.com/rubico/dist/x/identity.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* identity(1),
|
|
18
|
-
* ) // 1
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function identity(value: any): any;
|
package/x/includes.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export = includes;
|
|
2
|
-
/**
|
|
3
|
-
* @name includes
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* includes(value any)(container Array|String|Object) -> boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Check if a collection includes another value by [SameValueZero](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero).
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import includes from 'https://unpkg.com/rubico/dist/x/includes.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* includes(5)([1, 2, 3, 4, 5])
|
|
18
|
-
* ) // true
|
|
19
|
-
*
|
|
20
|
-
* console.log(
|
|
21
|
-
* includes(5)([1, 2, 3])
|
|
22
|
-
* ) // false
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function includes(value: any): (container: any) => any;
|
package/x/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import append = require("./append");
|
|
2
|
-
import callProp = require("./callProp");
|
|
3
|
-
import defaultsDeep = require("./defaultsDeep");
|
|
4
|
-
import differenceWith = require("./differenceWith");
|
|
5
|
-
import filterOut = require("./filterOut");
|
|
6
|
-
import find = require("./find");
|
|
7
|
-
import findIndex = require("./findIndex");
|
|
8
|
-
import first = require("./first");
|
|
9
|
-
import flatten = require("./flatten");
|
|
10
|
-
import groupBy = require("./groupBy");
|
|
11
|
-
import has = require("./has");
|
|
12
|
-
import identity = require("./identity");
|
|
13
|
-
import includes = require("./includes");
|
|
14
|
-
import isDeepEqual = require("./isDeepEqual");
|
|
15
|
-
import isEmpty = require("./isEmpty");
|
|
16
|
-
import isEqual = require("./isEqual");
|
|
17
|
-
import isFunction = require("./isFunction");
|
|
18
|
-
import isObject = require("../_internal/isObject");
|
|
19
|
-
import isString = require("./isString");
|
|
20
|
-
import keys = require("./keys");
|
|
21
|
-
import last = require("./last");
|
|
22
|
-
import maxBy = require("./maxBy");
|
|
23
|
-
import noop = require("./noop");
|
|
24
|
-
import pluck = require("./pluck");
|
|
25
|
-
import prepend = require("./prepend");
|
|
26
|
-
import size = require("./size");
|
|
27
|
-
import trace = require("./trace");
|
|
28
|
-
import unionWith = require("./unionWith");
|
|
29
|
-
import uniq = require("./uniq");
|
|
30
|
-
import unless = require("./unless");
|
|
31
|
-
import values = require("./values");
|
|
32
|
-
import when = require("./when");
|
|
33
|
-
import isIn = require("./isIn");
|
|
34
|
-
export { append, callProp, defaultsDeep, differenceWith, filterOut, find, findIndex, first, flatten, groupBy, has, identity, includes, isDeepEqual, isEmpty, isEqual, isFunction, isObject, isString, keys, last, maxBy, noop, pluck, prepend, size, trace, unionWith, uniq, unless, values, when, isIn };
|
package/x/is.d.ts
DELETED
package/x/isDeepEqual.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export = isDeepEqual;
|
|
2
|
-
/**
|
|
3
|
-
* @name isDeepEqual
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Nested<T> = Array<Array<T>|Object<T>|Iterable<T>|T>|Object<Array<T>|Object<T>|Iterable<T>|T>
|
|
8
|
-
*
|
|
9
|
-
* var left Nested,
|
|
10
|
-
* right Nested
|
|
11
|
-
*
|
|
12
|
-
* isDeepEqual(left, right) -> boolean
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* Check two values for deep [SameValueZero](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) equality.
|
|
17
|
-
*
|
|
18
|
-
* ```javascript [playground]
|
|
19
|
-
* import isDeepEqual from 'https://unpkg.com/rubico/dist/x/isDeepEqual.es.js'
|
|
20
|
-
*
|
|
21
|
-
* console.log(
|
|
22
|
-
* isDeepEqual({ a: 1, b: 2, c: [3] }, { a: 1, b: 2, c: [3] }),
|
|
23
|
-
* ) // true
|
|
24
|
-
*
|
|
25
|
-
* console.log(
|
|
26
|
-
* isDeepEqual({ a: 1, b: 2, c: [3] }, { a: 1, b: 2, c: [5] }),
|
|
27
|
-
* ) // false
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* When passed a resolver function as the left or right argument or resolvers as both arguments, returns a function that resolves the value by the resolver before performing the deep equal comparison.
|
|
31
|
-
*
|
|
32
|
-
* ```javascript [playground]
|
|
33
|
-
* import isDeepEqual from 'https://unpkg.com/rubico/dist/x/isDeepEqual.es.js'
|
|
34
|
-
*
|
|
35
|
-
* const isPropADeepEqualTo123Array = isDeepEqual(object => object.a, [1, 2, 3])
|
|
36
|
-
*
|
|
37
|
-
* console.log(
|
|
38
|
-
* isPropADeepEqualTo123Array({ a: [1, 2, 3] }),
|
|
39
|
-
* ) // true
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare function isDeepEqual(left: any, right: any): any;
|
package/x/isEmpty.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export = isEmpty;
|
|
2
|
-
/**
|
|
3
|
-
* @name isEmpty
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* isEmpty(value any) -> boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Check if a value is empty.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import isEmpty from 'https://unpkg.com/rubico/dist/x/isEmpty.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log('', isEmpty('')) // true
|
|
17
|
-
* console.log([], isEmpty([])) // true
|
|
18
|
-
* console.log({}, isEmpty({})) // true
|
|
19
|
-
* console.log([1, 2, 3], isEmpty([1, 2, 3])) // false
|
|
20
|
-
* console.log(new Set([1, 2, 3]), isEmpty(new Set([1, 2, 3]))) // false
|
|
21
|
-
* console.log({ a: 1, b: 2, c: 3 }, isEmpty({ a: 1, b: 2, c: 3 })) // false
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare function isEmpty(value: any): boolean;
|
package/x/isEqual.d.ts
DELETED
package/x/isFunction.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export = isFunction;
|
|
2
|
-
/**
|
|
3
|
-
* @name isFunction
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* isFunction(value any) -> boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Determine whether a value is a function.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import isFunction from 'https://unpkg.com/rubico/dist/x/isFunction.es.js'
|
|
15
|
-
*
|
|
16
|
-
* const add = (a, b) => a + b
|
|
17
|
-
*
|
|
18
|
-
* console.log(
|
|
19
|
-
* isFunction(add),
|
|
20
|
-
* ) // true
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare function isFunction(value: any): boolean;
|
package/x/isIn.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export = isIn;
|
|
2
|
-
/**
|
|
3
|
-
* @name isIn
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* isIn(container Array|Object|String|Set|Map)(value any) -> boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Counterpart to includes. Check if a collection includes another value.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import isIn from 'https://unpkg.com/rubico/dist/x/isIn.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* isIn([1, 2, 3](1)
|
|
18
|
-
* ) // true
|
|
19
|
-
*
|
|
20
|
-
* console.log(
|
|
21
|
-
* isIn([1, 2, 3](4)
|
|
22
|
-
* ) // false
|
|
23
|
-
*
|
|
24
|
-
* console.log(
|
|
25
|
-
* isIn({ a: 1 })(1)
|
|
26
|
-
* ) // true
|
|
27
|
-
*
|
|
28
|
-
* console.log(
|
|
29
|
-
* isIn({ a: 1 })(2)
|
|
30
|
-
* ) // true
|
|
31
|
-
*
|
|
32
|
-
* console.log(
|
|
33
|
-
* isIn('abc')('a')
|
|
34
|
-
* ) // true
|
|
35
|
-
*
|
|
36
|
-
* console.log(
|
|
37
|
-
* isIn('abc')('ab')
|
|
38
|
-
* ) // true
|
|
39
|
-
*
|
|
40
|
-
* console.log(
|
|
41
|
-
* isIn('abc')('d')
|
|
42
|
-
* ) // false
|
|
43
|
-
*
|
|
44
|
-
* console.log(
|
|
45
|
-
* isIn(new Set([1, 2, 3]))(1)
|
|
46
|
-
* ) // true
|
|
47
|
-
*
|
|
48
|
-
* console.log(
|
|
49
|
-
* isIn(new Set([1, 2, 3]))(4)
|
|
50
|
-
* ) // false
|
|
51
|
-
*
|
|
52
|
-
* console.log(
|
|
53
|
-
* isIn(new Map([[1, 1], [2, 2], [3, 3]]))(1)
|
|
54
|
-
* ) // true
|
|
55
|
-
*
|
|
56
|
-
* console.log(
|
|
57
|
-
* isIn(new Map([[1, 1], [2, 2], [3, 3]]))(4)
|
|
58
|
-
* ) // false
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
declare function isIn(...args: any[]): any;
|
package/x/isObject.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/x/isString.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export = isString;
|
|
2
|
-
/**
|
|
3
|
-
* @name isString
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* isString(value any) -> boolean
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Determine whether a value is a string.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import isString from 'https://unpkg.com/rubico/dist/x/isString.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* isString('hey'),
|
|
18
|
-
* ) // true
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function isString(value: any): boolean;
|
package/x/keys.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export = keys;
|
|
2
|
-
/**
|
|
3
|
-
* @name keys
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* keys(value string|Array|Set|Map|object) -> Array<key number|string>
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Get an array of keys from an instance.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import keys from 'https://unpkg.com/rubico/dist/x/keys.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(keys({ a: 1, b: 2, c: 3 })) // ['a', 'b', 'c']
|
|
17
|
-
* console.log(keys(['hello', 'world'])) // [0, 1]
|
|
18
|
-
* console.log(keys(new Map([['hello', 1], ['world', 2]]))) // ['hello', 'world']
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @since 1.6.25
|
|
22
|
-
*/
|
|
23
|
-
declare function keys(object: any): any[];
|
package/x/last.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export = last;
|
|
2
|
-
/**
|
|
3
|
-
* @name last
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* var value Array|string
|
|
8
|
-
*
|
|
9
|
-
* last(value) -> any
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Get the last element of a collection
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* import last from 'https://unpkg.com/rubico/dist/x/last.es.js'
|
|
17
|
-
*
|
|
18
|
-
* console.log(last([1, 2, 3])) // 3
|
|
19
|
-
* console.log(last([])) // undefined
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare function last(value: any): any;
|
package/x/maxBy.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export = maxBy;
|
|
2
|
-
/**
|
|
3
|
-
* @name maxBy
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* maxBy(array Array, path string) -> maxElementByPath any
|
|
8
|
-
*
|
|
9
|
-
* maxBy(path string)(array Array) -> maxElementByPath any
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Finds the element that is the max by a property denoted by path.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* import maxBy from 'https://unpkg.com/rubico/dist/x/maxBy.es.js'
|
|
17
|
-
*
|
|
18
|
-
* const array = [{ a: 1 }, { a: 2 }, { a: 3 }]
|
|
19
|
-
*
|
|
20
|
-
* const maxElement = maxBy(array, 'a')
|
|
21
|
-
*
|
|
22
|
-
* console.log(maxElement) // { a: 3 }
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* `maxBy` composes in a lazy way.
|
|
26
|
-
*
|
|
27
|
-
* ```javascript [playground]
|
|
28
|
-
* import maxBy from 'https://unpkg.com/rubico/dist/x/maxBy.es.js'
|
|
29
|
-
*
|
|
30
|
-
* const numbers = [1, 2, 3]
|
|
31
|
-
*
|
|
32
|
-
* const maxElement = pipe(numbers, [
|
|
33
|
-
* map(number => number ** 2),
|
|
34
|
-
* map(number => ({ a: { b: { c: number } } })),
|
|
35
|
-
* maxBy('a.b.c')
|
|
36
|
-
* ])
|
|
37
|
-
*
|
|
38
|
-
* console.log(maxElement) // { a: { b: { c: 9 } } }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
declare function maxBy(...args: any[]): any;
|
package/x/noop.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export = noop;
|
|
2
|
-
/**
|
|
3
|
-
* @name noop
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* noop() -> undefined
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Doesn't do anything.
|
|
12
|
-
*
|
|
13
|
-
* ```javascript [playground]
|
|
14
|
-
* import noop from 'https://unpkg.com/rubico/dist/x/noop.es.js'
|
|
15
|
-
*
|
|
16
|
-
* console.log(
|
|
17
|
-
* noop(),
|
|
18
|
-
* ) // undefined
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function noop(): void;
|
package/x/pluck.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export = pluck;
|
|
2
|
-
/**
|
|
3
|
-
* @name pluck
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* pluck(path string)(array Array) -> result Array
|
|
8
|
-
*
|
|
9
|
-
* pluck(array Array, path string) -> result Array
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Creates an array of picked properties denoted by a path from another array.
|
|
14
|
-
*
|
|
15
|
-
* `pluck` supports three types of path patterns for nested property access.
|
|
16
|
-
*
|
|
17
|
-
* * dot delimited - `'a.b.c'`
|
|
18
|
-
* * bracket notation - `'a[0].value'`
|
|
19
|
-
* * an array of keys or indices - `['a', 0, 'value']`
|
|
20
|
-
*
|
|
21
|
-
* ```javascript [playground]
|
|
22
|
-
* import pluck from 'https://unpkg.com/rubico/dist/x/pluck.es.js'
|
|
23
|
-
*
|
|
24
|
-
* const users = [
|
|
25
|
-
* { name: 'John', age: 33 },
|
|
26
|
-
* { name: 'Jane', age: 51 },
|
|
27
|
-
* { name: 'Jim', age: 22 },
|
|
28
|
-
* ]
|
|
29
|
-
*
|
|
30
|
-
* const usernames = pluck(users, 'name')
|
|
31
|
-
*
|
|
32
|
-
* console.log(usernames) // ['John', 'Jane', 'Jim']
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare function pluck(...args: any[]): any;
|
package/x/prepend.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export = prepend;
|
|
2
|
-
/**
|
|
3
|
-
* @name prepend
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* prepend(
|
|
8
|
-
* element string|Array,
|
|
9
|
-
* )(value string|Array) -> string|array
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Prepend a string or an array.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* import prepend from 'https://unpkg.com/rubico/dist/x/prepend.es.js'
|
|
17
|
-
*
|
|
18
|
-
* const myArray = ['orange', 'apple']
|
|
19
|
-
*
|
|
20
|
-
* {
|
|
21
|
-
* const result = prepend(['ananas'])(myArray)
|
|
22
|
-
* console.log(result) // ['ananas', 'orange', 'apple']
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* {
|
|
26
|
-
* const result = prepend('ananas')(myArray)
|
|
27
|
-
* console.log(result) // ['ananas', 'orange', 'apple']
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* {
|
|
31
|
-
* const result = prepend('hello ')('world')
|
|
32
|
-
* console.log(result) // 'hello world'
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @since 1.7.3
|
|
37
|
-
*/
|
|
38
|
-
declare function prepend(element: any): (value: any) => string | any[];
|