@types/lodash 4.14.105 → 4.14.109
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.
- lodash/README.md +2 -2
- lodash/common/array.d.ts +40 -177
- lodash/common/collection.d.ts +90 -238
- lodash/common/common.d.ts +11 -3
- lodash/common/date.d.ts +1 -1
- lodash/common/function.d.ts +272 -166
- lodash/common/lang.d.ts +3 -4
- lodash/common/math.d.ts +13 -17
- lodash/common/number.d.ts +1 -5
- lodash/common/object.d.ts +93 -54
- lodash/common/seq.d.ts +2 -4
- lodash/common/string.d.ts +1 -1
- lodash/common/util.d.ts +18 -10
- lodash/fp/F.d.ts +2 -0
- lodash/fp/T.d.ts +2 -0
- lodash/fp/__.d.ts +3 -0
- lodash/fp/add.d.ts +2 -0
- lodash/fp/after.d.ts +2 -0
- lodash/fp/all.d.ts +2 -0
- lodash/fp/allPass.d.ts +2 -0
- lodash/fp/always.d.ts +2 -0
- lodash/fp/any.d.ts +2 -0
- lodash/fp/anyPass.d.ts +2 -0
- lodash/fp/apply.d.ts +2 -0
- lodash/fp/ary.d.ts +2 -0
- lodash/fp/assign.d.ts +2 -0
- lodash/fp/assignAll.d.ts +2 -0
- lodash/fp/assignAllWith.d.ts +2 -0
- lodash/fp/assignIn.d.ts +2 -0
- lodash/fp/assignInAll.d.ts +2 -0
- lodash/fp/assignInAllWith.d.ts +2 -0
- lodash/fp/assignInWith.d.ts +2 -0
- lodash/fp/assignWith.d.ts +2 -0
- lodash/fp/assoc.d.ts +2 -0
- lodash/fp/assocPath.d.ts +2 -0
- lodash/fp/at.d.ts +2 -0
- lodash/fp/attempt.d.ts +2 -0
- lodash/fp/before.d.ts +2 -0
- lodash/fp/bind.d.ts +2 -0
- lodash/fp/bindAll.d.ts +2 -0
- lodash/fp/bindKey.d.ts +2 -0
- lodash/fp/camelCase.d.ts +2 -0
- lodash/fp/capitalize.d.ts +2 -0
- lodash/fp/castArray.d.ts +2 -0
- lodash/fp/ceil.d.ts +2 -0
- lodash/fp/chunk.d.ts +2 -0
- lodash/fp/clamp.d.ts +2 -0
- lodash/fp/clone.d.ts +2 -0
- lodash/fp/cloneDeep.d.ts +2 -0
- lodash/fp/cloneDeepWith.d.ts +2 -0
- lodash/fp/cloneWith.d.ts +2 -0
- lodash/fp/compact.d.ts +2 -0
- lodash/fp/complement.d.ts +2 -0
- lodash/fp/compose.d.ts +2 -0
- lodash/fp/concat.d.ts +2 -0
- lodash/fp/cond.d.ts +2 -0
- lodash/fp/conforms.d.ts +2 -0
- lodash/fp/conformsTo.d.ts +2 -0
- lodash/fp/constant.d.ts +2 -0
- lodash/fp/contains.d.ts +2 -0
- lodash/fp/convert.d.ts +15 -0
- lodash/fp/countBy.d.ts +2 -0
- lodash/fp/create.d.ts +2 -0
- lodash/fp/curry.d.ts +2 -0
- lodash/fp/curryN.d.ts +2 -0
- lodash/fp/curryRight.d.ts +2 -0
- lodash/fp/curryRightN.d.ts +2 -0
- lodash/fp/debounce.d.ts +2 -0
- lodash/fp/deburr.d.ts +2 -0
- lodash/fp/defaultTo.d.ts +2 -0
- lodash/fp/defaults.d.ts +2 -0
- lodash/fp/defaultsAll.d.ts +2 -0
- lodash/fp/defaultsDeep.d.ts +2 -0
- lodash/fp/defaultsDeepAll.d.ts +2 -0
- lodash/fp/defer.d.ts +2 -0
- lodash/fp/delay.d.ts +2 -0
- lodash/fp/difference.d.ts +2 -0
- lodash/fp/differenceBy.d.ts +2 -0
- lodash/fp/differenceWith.d.ts +2 -0
- lodash/fp/dissoc.d.ts +2 -0
- lodash/fp/dissocPath.d.ts +2 -0
- lodash/fp/divide.d.ts +2 -0
- lodash/fp/drop.d.ts +2 -0
- lodash/fp/dropLast.d.ts +2 -0
- lodash/fp/dropLastWhile.d.ts +2 -0
- lodash/fp/dropRight.d.ts +2 -0
- lodash/fp/dropRightWhile.d.ts +2 -0
- lodash/fp/dropWhile.d.ts +2 -0
- lodash/fp/each.d.ts +2 -0
- lodash/fp/eachRight.d.ts +2 -0
- lodash/fp/endsWith.d.ts +2 -0
- lodash/fp/entries.d.ts +2 -0
- lodash/fp/entriesIn.d.ts +2 -0
- lodash/fp/eq.d.ts +2 -0
- lodash/fp/equals.d.ts +2 -0
- lodash/fp/escape.d.ts +2 -0
- lodash/fp/escapeRegExp.d.ts +2 -0
- lodash/fp/every.d.ts +2 -0
- lodash/fp/extend.d.ts +2 -0
- lodash/fp/extendAll.d.ts +2 -0
- lodash/fp/extendAllWith.d.ts +2 -0
- lodash/fp/extendWith.d.ts +2 -0
- lodash/fp/fill.d.ts +2 -0
- lodash/fp/filter.d.ts +2 -0
- lodash/fp/find.d.ts +2 -0
- lodash/fp/findFrom.d.ts +2 -0
- lodash/fp/findIndex.d.ts +2 -0
- lodash/fp/findIndexFrom.d.ts +2 -0
- lodash/fp/findKey.d.ts +2 -0
- lodash/fp/findLast.d.ts +2 -0
- lodash/fp/findLastFrom.d.ts +2 -0
- lodash/fp/findLastIndex.d.ts +2 -0
- lodash/fp/findLastIndexFrom.d.ts +2 -0
- lodash/fp/findLastKey.d.ts +2 -0
- lodash/fp/first.d.ts +2 -0
- lodash/fp/flatMap.d.ts +2 -0
- lodash/fp/flatMapDeep.d.ts +2 -0
- lodash/fp/flatMapDepth.d.ts +2 -0
- lodash/fp/flatten.d.ts +2 -0
- lodash/fp/flattenDeep.d.ts +2 -0
- lodash/fp/flattenDepth.d.ts +2 -0
- lodash/fp/flip.d.ts +2 -0
- lodash/fp/floor.d.ts +2 -0
- lodash/fp/flow.d.ts +2 -0
- lodash/fp/flowRight.d.ts +2 -0
- lodash/fp/forEach.d.ts +2 -0
- lodash/fp/forEachRight.d.ts +2 -0
- lodash/fp/forIn.d.ts +2 -0
- lodash/fp/forInRight.d.ts +2 -0
- lodash/fp/forOwn.d.ts +2 -0
- lodash/fp/forOwnRight.d.ts +2 -0
- lodash/fp/fromPairs.d.ts +2 -0
- lodash/fp/functions.d.ts +2 -0
- lodash/fp/functionsIn.d.ts +2 -0
- lodash/fp/get.d.ts +2 -0
- lodash/fp/getOr.d.ts +2 -0
- lodash/fp/groupBy.d.ts +2 -0
- lodash/fp/gt.d.ts +2 -0
- lodash/fp/gte.d.ts +2 -0
- lodash/fp/has.d.ts +2 -0
- lodash/fp/hasIn.d.ts +2 -0
- lodash/fp/head.d.ts +2 -0
- lodash/fp/identical.d.ts +2 -0
- lodash/fp/identity.d.ts +2 -0
- lodash/fp/inRange.d.ts +2 -0
- lodash/fp/includes.d.ts +2 -0
- lodash/fp/includesFrom.d.ts +2 -0
- lodash/fp/indexBy.d.ts +2 -0
- lodash/fp/indexOf.d.ts +2 -0
- lodash/fp/indexOfFrom.d.ts +2 -0
- lodash/fp/init.d.ts +2 -0
- lodash/fp/initial.d.ts +2 -0
- lodash/fp/intersection.d.ts +2 -0
- lodash/fp/intersectionBy.d.ts +2 -0
- lodash/fp/intersectionWith.d.ts +2 -0
- lodash/fp/invert.d.ts +2 -0
- lodash/fp/invertBy.d.ts +2 -0
- lodash/fp/invertObj.d.ts +2 -0
- lodash/fp/invoke.d.ts +2 -0
- lodash/fp/invokeArgs.d.ts +2 -0
- lodash/fp/invokeArgsMap.d.ts +2 -0
- lodash/fp/invokeMap.d.ts +2 -0
- lodash/fp/isArguments.d.ts +2 -0
- lodash/fp/isArray.d.ts +2 -0
- lodash/fp/isArrayBuffer.d.ts +2 -0
- lodash/fp/isArrayLike.d.ts +2 -0
- lodash/fp/isArrayLikeObject.d.ts +2 -0
- lodash/fp/isBoolean.d.ts +2 -0
- lodash/fp/isBuffer.d.ts +2 -0
- lodash/fp/isDate.d.ts +2 -0
- lodash/fp/isElement.d.ts +2 -0
- lodash/fp/isEmpty.d.ts +2 -0
- lodash/fp/isEqual.d.ts +2 -0
- lodash/fp/isEqualWith.d.ts +2 -0
- lodash/fp/isError.d.ts +2 -0
- lodash/fp/isFinite.d.ts +2 -0
- lodash/fp/isFunction.d.ts +2 -0
- lodash/fp/isInteger.d.ts +2 -0
- lodash/fp/isLength.d.ts +2 -0
- lodash/fp/isMap.d.ts +2 -0
- lodash/fp/isMatch.d.ts +2 -0
- lodash/fp/isMatchWith.d.ts +2 -0
- lodash/fp/isNaN.d.ts +2 -0
- lodash/fp/isNative.d.ts +2 -0
- lodash/fp/isNil.d.ts +2 -0
- lodash/fp/isNull.d.ts +2 -0
- lodash/fp/isNumber.d.ts +2 -0
- lodash/fp/isObject.d.ts +2 -0
- lodash/fp/isObjectLike.d.ts +2 -0
- lodash/fp/isPlainObject.d.ts +2 -0
- lodash/fp/isRegExp.d.ts +2 -0
- lodash/fp/isSafeInteger.d.ts +2 -0
- lodash/fp/isSet.d.ts +2 -0
- lodash/fp/isString.d.ts +2 -0
- lodash/fp/isSymbol.d.ts +2 -0
- lodash/fp/isTypedArray.d.ts +2 -0
- lodash/fp/isUndefined.d.ts +2 -0
- lodash/fp/isWeakMap.d.ts +2 -0
- lodash/fp/isWeakSet.d.ts +2 -0
- lodash/fp/iteratee.d.ts +2 -0
- lodash/fp/join.d.ts +2 -0
- lodash/fp/juxt.d.ts +2 -0
- lodash/fp/kebabCase.d.ts +2 -0
- lodash/fp/keyBy.d.ts +2 -0
- lodash/fp/keys.d.ts +2 -0
- lodash/fp/keysIn.d.ts +2 -0
- lodash/fp/last.d.ts +2 -0
- lodash/fp/lastIndexOf.d.ts +2 -0
- lodash/fp/lastIndexOfFrom.d.ts +2 -0
- lodash/fp/lowerCase.d.ts +2 -0
- lodash/fp/lowerFirst.d.ts +2 -0
- lodash/fp/lt.d.ts +2 -0
- lodash/fp/lte.d.ts +2 -0
- lodash/fp/map.d.ts +2 -0
- lodash/fp/mapKeys.d.ts +2 -0
- lodash/fp/mapValues.d.ts +2 -0
- lodash/fp/matches.d.ts +2 -0
- lodash/fp/matchesProperty.d.ts +2 -0
- lodash/fp/max.d.ts +2 -0
- lodash/fp/maxBy.d.ts +2 -0
- lodash/fp/mean.d.ts +2 -0
- lodash/fp/meanBy.d.ts +2 -0
- lodash/fp/memoize.d.ts +2 -0
- lodash/fp/merge.d.ts +2 -0
- lodash/fp/mergeAll.d.ts +2 -0
- lodash/fp/mergeAllWith.d.ts +2 -0
- lodash/fp/mergeWith.d.ts +2 -0
- lodash/fp/method.d.ts +2 -0
- lodash/fp/methodOf.d.ts +2 -0
- lodash/fp/min.d.ts +2 -0
- lodash/fp/minBy.d.ts +2 -0
- lodash/fp/multiply.d.ts +2 -0
- lodash/fp/nAry.d.ts +2 -0
- lodash/fp/negate.d.ts +2 -0
- lodash/fp/noConflict.d.ts +2 -0
- lodash/fp/noop.d.ts +2 -0
- lodash/fp/now.d.ts +2 -0
- lodash/fp/nth.d.ts +2 -0
- lodash/fp/nthArg.d.ts +2 -0
- lodash/fp/omit.d.ts +2 -0
- lodash/fp/omitAll.d.ts +2 -0
- lodash/fp/omitBy.d.ts +2 -0
- lodash/fp/once.d.ts +2 -0
- lodash/fp/orderBy.d.ts +2 -0
- lodash/fp/over.d.ts +2 -0
- lodash/fp/overArgs.d.ts +2 -0
- lodash/fp/overEvery.d.ts +2 -0
- lodash/fp/overSome.d.ts +2 -0
- lodash/fp/pad.d.ts +2 -0
- lodash/fp/padChars.d.ts +2 -0
- lodash/fp/padCharsEnd.d.ts +2 -0
- lodash/fp/padCharsStart.d.ts +2 -0
- lodash/fp/padEnd.d.ts +2 -0
- lodash/fp/padStart.d.ts +2 -0
- lodash/fp/parseInt.d.ts +2 -0
- lodash/fp/partial.d.ts +2 -0
- lodash/fp/partialRight.d.ts +2 -0
- lodash/fp/partition.d.ts +2 -0
- lodash/fp/path.d.ts +2 -0
- lodash/fp/pathEq.d.ts +2 -0
- lodash/fp/pathOr.d.ts +2 -0
- lodash/fp/paths.d.ts +2 -0
- lodash/fp/pick.d.ts +2 -0
- lodash/fp/pickAll.d.ts +2 -0
- lodash/fp/pickBy.d.ts +2 -0
- lodash/fp/pipe.d.ts +2 -0
- lodash/fp/placeholder.d.ts +3 -0
- lodash/fp/pluck.d.ts +2 -0
- lodash/fp/prop.d.ts +2 -0
- lodash/fp/propEq.d.ts +2 -0
- lodash/fp/propOr.d.ts +2 -0
- lodash/fp/property.d.ts +2 -0
- lodash/fp/propertyOf.d.ts +2 -0
- lodash/fp/props.d.ts +2 -0
- lodash/fp/pull.d.ts +2 -0
- lodash/fp/pullAll.d.ts +2 -0
- lodash/fp/pullAllBy.d.ts +2 -0
- lodash/fp/pullAllWith.d.ts +2 -0
- lodash/fp/pullAt.d.ts +2 -0
- lodash/fp/random.d.ts +2 -0
- lodash/fp/range.d.ts +2 -0
- lodash/fp/rangeRight.d.ts +2 -0
- lodash/fp/rangeStep.d.ts +2 -0
- lodash/fp/rangeStepRight.d.ts +2 -0
- lodash/fp/rearg.d.ts +2 -0
- lodash/fp/reduce.d.ts +2 -0
- lodash/fp/reduceRight.d.ts +2 -0
- lodash/fp/reject.d.ts +2 -0
- lodash/fp/remove.d.ts +2 -0
- lodash/fp/repeat.d.ts +2 -0
- lodash/fp/replace.d.ts +2 -0
- lodash/fp/rest.d.ts +2 -0
- lodash/fp/restFrom.d.ts +2 -0
- lodash/fp/result.d.ts +2 -0
- lodash/fp/reverse.d.ts +2 -0
- lodash/fp/round.d.ts +2 -0
- lodash/fp/runInContext.d.ts +2 -0
- lodash/fp/sample.d.ts +2 -0
- lodash/fp/sampleSize.d.ts +2 -0
- lodash/fp/set.d.ts +2 -0
- lodash/fp/setWith.d.ts +2 -0
- lodash/fp/shuffle.d.ts +2 -0
- lodash/fp/size.d.ts +2 -0
- lodash/fp/slice.d.ts +2 -0
- lodash/fp/snakeCase.d.ts +2 -0
- lodash/fp/some.d.ts +2 -0
- lodash/fp/sortBy.d.ts +2 -0
- lodash/fp/sortedIndex.d.ts +2 -0
- lodash/fp/sortedIndexBy.d.ts +2 -0
- lodash/fp/sortedIndexOf.d.ts +2 -0
- lodash/fp/sortedLastIndex.d.ts +2 -0
- lodash/fp/sortedLastIndexBy.d.ts +2 -0
- lodash/fp/sortedLastIndexOf.d.ts +2 -0
- lodash/fp/sortedUniq.d.ts +2 -0
- lodash/fp/sortedUniqBy.d.ts +2 -0
- lodash/fp/split.d.ts +2 -0
- lodash/fp/spread.d.ts +2 -0
- lodash/fp/spreadFrom.d.ts +2 -0
- lodash/fp/startCase.d.ts +2 -0
- lodash/fp/startsWith.d.ts +2 -0
- lodash/fp/stubArray.d.ts +2 -0
- lodash/fp/stubFalse.d.ts +2 -0
- lodash/fp/stubObject.d.ts +2 -0
- lodash/fp/stubString.d.ts +2 -0
- lodash/fp/stubTrue.d.ts +2 -0
- lodash/fp/subtract.d.ts +2 -0
- lodash/fp/sum.d.ts +2 -0
- lodash/fp/sumBy.d.ts +2 -0
- lodash/fp/symmetricDifference.d.ts +2 -0
- lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- lodash/fp/tail.d.ts +2 -0
- lodash/fp/take.d.ts +2 -0
- lodash/fp/takeLast.d.ts +2 -0
- lodash/fp/takeLastWhile.d.ts +2 -0
- lodash/fp/takeRight.d.ts +2 -0
- lodash/fp/takeRightWhile.d.ts +2 -0
- lodash/fp/takeWhile.d.ts +2 -0
- lodash/fp/tap.d.ts +2 -0
- lodash/fp/template.d.ts +2 -0
- lodash/fp/throttle.d.ts +2 -0
- lodash/fp/thru.d.ts +2 -0
- lodash/fp/times.d.ts +2 -0
- lodash/fp/toArray.d.ts +2 -0
- lodash/fp/toFinite.d.ts +2 -0
- lodash/fp/toInteger.d.ts +2 -0
- lodash/fp/toLength.d.ts +2 -0
- lodash/fp/toLower.d.ts +2 -0
- lodash/fp/toNumber.d.ts +2 -0
- lodash/fp/toPairs.d.ts +2 -0
- lodash/fp/toPairsIn.d.ts +2 -0
- lodash/fp/toPath.d.ts +2 -0
- lodash/fp/toPlainObject.d.ts +2 -0
- lodash/fp/toSafeInteger.d.ts +2 -0
- lodash/fp/toString.d.ts +2 -0
- lodash/fp/toUpper.d.ts +2 -0
- lodash/fp/transform.d.ts +2 -0
- lodash/fp/trim.d.ts +2 -0
- lodash/fp/trimChars.d.ts +2 -0
- lodash/fp/trimCharsEnd.d.ts +2 -0
- lodash/fp/trimCharsStart.d.ts +2 -0
- lodash/fp/trimEnd.d.ts +2 -0
- lodash/fp/trimStart.d.ts +2 -0
- lodash/fp/truncate.d.ts +2 -0
- lodash/fp/unapply.d.ts +2 -0
- lodash/fp/unary.d.ts +2 -0
- lodash/fp/unescape.d.ts +2 -0
- lodash/fp/union.d.ts +2 -0
- lodash/fp/unionBy.d.ts +2 -0
- lodash/fp/unionWith.d.ts +2 -0
- lodash/fp/uniq.d.ts +2 -0
- lodash/fp/uniqBy.d.ts +2 -0
- lodash/fp/uniqWith.d.ts +2 -0
- lodash/fp/uniqueId.d.ts +2 -0
- lodash/fp/unnest.d.ts +2 -0
- lodash/fp/unset.d.ts +2 -0
- lodash/fp/unzip.d.ts +2 -0
- lodash/fp/unzipWith.d.ts +2 -0
- lodash/fp/update.d.ts +2 -0
- lodash/fp/updateWith.d.ts +2 -0
- lodash/fp/upperCase.d.ts +2 -0
- lodash/fp/upperFirst.d.ts +2 -0
- lodash/fp/useWith.d.ts +2 -0
- lodash/fp/values.d.ts +2 -0
- lodash/fp/valuesIn.d.ts +2 -0
- lodash/fp/where.d.ts +2 -0
- lodash/fp/whereEq.d.ts +2 -0
- lodash/fp/without.d.ts +2 -0
- lodash/fp/words.d.ts +2 -0
- lodash/fp/wrap.d.ts +2 -0
- lodash/fp/xor.d.ts +2 -0
- lodash/fp/xorBy.d.ts +2 -0
- lodash/fp/xorWith.d.ts +2 -0
- lodash/fp/zip.d.ts +2 -0
- lodash/fp/zipAll.d.ts +2 -0
- lodash/fp/zipObj.d.ts +2 -0
- lodash/fp/zipObject.d.ts +2 -0
- lodash/fp/zipObjectDeep.d.ts +2 -0
- lodash/fp/zipWith.d.ts +2 -0
- lodash/fp.d.ts +4765 -0
- lodash/package.json +3 -3
lodash/README.md
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
This package contains type definitions for Lo-Dash (http://lodash.com/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/lodash
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 18 May 2018 21:07:30 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: _
|
|
14
14
|
|
lodash/common/array.d.ts
CHANGED
|
@@ -577,20 +577,10 @@ declare module "../index" {
|
|
|
577
577
|
interface LoDashStatic {
|
|
578
578
|
/**
|
|
579
579
|
* Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate
|
|
580
|
-
* returns falsey. The predicate is
|
|
581
|
-
*
|
|
582
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
583
|
-
* value of the given element.
|
|
584
|
-
*
|
|
585
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
586
|
-
* elements that have a matching property value, else false.
|
|
587
|
-
*
|
|
588
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
589
|
-
* match the properties of the given object, else false.
|
|
580
|
+
* returns falsey. The predicate is invoked with three arguments: (value, index, array).
|
|
590
581
|
*
|
|
591
582
|
* @param array The array to query.
|
|
592
583
|
* @param predicate The function invoked per iteration.
|
|
593
|
-
* @param thisArg The this binding of predicate.
|
|
594
584
|
* @return Returns the slice of array.
|
|
595
585
|
*/
|
|
596
586
|
dropRightWhile<T>(
|
|
@@ -624,20 +614,10 @@ declare module "../index" {
|
|
|
624
614
|
interface LoDashStatic {
|
|
625
615
|
/**
|
|
626
616
|
* Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate
|
|
627
|
-
* returns falsey. The predicate is
|
|
628
|
-
*
|
|
629
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
630
|
-
* value of the given element.
|
|
631
|
-
*
|
|
632
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
633
|
-
* elements that have a matching property value, else false.
|
|
634
|
-
*
|
|
635
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
636
|
-
* have the properties of the given object, else false.
|
|
617
|
+
* returns falsey. The predicate is invoked with three arguments: (value, index, array).
|
|
637
618
|
*
|
|
638
619
|
* @param array The array to query.
|
|
639
620
|
* @param predicate The function invoked per iteration.
|
|
640
|
-
* @param thisArg The this binding of predicate.
|
|
641
621
|
* @return Returns the slice of array.
|
|
642
622
|
*/
|
|
643
623
|
dropWhile<T>(
|
|
@@ -797,15 +777,6 @@ declare module "../index" {
|
|
|
797
777
|
* This method is like _.find except that it returns the index of the first element predicate returns truthy
|
|
798
778
|
* for instead of the element itself.
|
|
799
779
|
*
|
|
800
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
801
|
-
* value of the given element.
|
|
802
|
-
*
|
|
803
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
804
|
-
* elements that have a matching property value, else false.
|
|
805
|
-
*
|
|
806
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
807
|
-
* have the properties of the given object, else false.
|
|
808
|
-
*
|
|
809
780
|
* @param array The array to search.
|
|
810
781
|
* @param predicate The function invoked per iteration.
|
|
811
782
|
* @param fromIndex The index to search from.
|
|
@@ -846,15 +817,6 @@ declare module "../index" {
|
|
|
846
817
|
/**
|
|
847
818
|
* This method is like _.findIndex except that it iterates over elements of collection from right to left.
|
|
848
819
|
*
|
|
849
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
850
|
-
* value of the given element.
|
|
851
|
-
*
|
|
852
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
853
|
-
* elements that have a matching property value, else false.
|
|
854
|
-
*
|
|
855
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
856
|
-
* have the properties of the given object, else false.
|
|
857
|
-
*
|
|
858
820
|
* @param array The array to search.
|
|
859
821
|
* @param predicate The function invoked per iteration.
|
|
860
822
|
* @param fromIndex The index to search from.
|
|
@@ -916,27 +878,15 @@ declare module "../index" {
|
|
|
916
878
|
|
|
917
879
|
interface LoDashStatic {
|
|
918
880
|
/**
|
|
919
|
-
* Flattens
|
|
920
|
-
* flattened a single level.
|
|
881
|
+
* Flattens `array` a single level deep.
|
|
921
882
|
*
|
|
922
883
|
* @param array The array to flatten.
|
|
923
|
-
* @param isDeep Specify a deep flatten.
|
|
924
884
|
* @return Returns the new flattened array.
|
|
925
885
|
*/
|
|
926
|
-
flatten<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, isDeep: boolean): T[];
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* @see _.flatten
|
|
930
|
-
*/
|
|
931
886
|
flatten<T>(array: List<Many<T>> | null | undefined): T[];
|
|
932
887
|
}
|
|
933
888
|
|
|
934
889
|
interface LoDashImplicitWrapper<TValue> {
|
|
935
|
-
/**
|
|
936
|
-
* @see _.flatten
|
|
937
|
-
*/
|
|
938
|
-
flatten<T>(this: LoDashImplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, isDeep: boolean): LoDashImplicitWrapper<T[]>;
|
|
939
|
-
|
|
940
890
|
/**
|
|
941
891
|
* @see _.flatten
|
|
942
892
|
*/
|
|
@@ -944,11 +894,6 @@ declare module "../index" {
|
|
|
944
894
|
}
|
|
945
895
|
|
|
946
896
|
interface LoDashExplicitWrapper<TValue> {
|
|
947
|
-
/**
|
|
948
|
-
* @see _.flatten
|
|
949
|
-
*/
|
|
950
|
-
flatten<T>(this: LoDashExplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, isDeep: boolean): LoDashExplicitWrapper<T[]>;
|
|
951
|
-
|
|
952
897
|
/**
|
|
953
898
|
* @see _.flatten
|
|
954
899
|
*/
|
|
@@ -984,28 +929,28 @@ declare module "../index" {
|
|
|
984
929
|
// flattenDepth
|
|
985
930
|
|
|
986
931
|
interface LoDashStatic {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
932
|
+
/**
|
|
933
|
+
* Recursively flatten array up to depth times.
|
|
934
|
+
*
|
|
935
|
+
* @param array The array to recursively flatten.
|
|
936
|
+
* @param number The maximum recursion depth.
|
|
937
|
+
* @return Returns the new flattened array.
|
|
938
|
+
*/
|
|
939
|
+
flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, depth?: number): T[];
|
|
995
940
|
}
|
|
996
941
|
|
|
997
942
|
interface LoDashImplicitWrapper<TValue> {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
943
|
+
/**
|
|
944
|
+
* @see _.flattenDeep
|
|
945
|
+
*/
|
|
946
|
+
flattenDepth<T>(this: LoDashImplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashImplicitWrapper<T[]>;
|
|
1002
947
|
}
|
|
1003
948
|
|
|
1004
949
|
interface LoDashExplicitWrapper<TValue> {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
950
|
+
/**
|
|
951
|
+
* @see _.flattenDeep
|
|
952
|
+
*/
|
|
953
|
+
flattenDepth<T>(this: LoDashExplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashExplicitWrapper<T[]>;
|
|
1009
954
|
}
|
|
1010
955
|
|
|
1011
956
|
// fromPairs
|
|
@@ -1102,8 +1047,7 @@ declare module "../index" {
|
|
|
1102
1047
|
* Gets the index at which the first occurrence of `value` is found in `array`
|
|
1103
1048
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
|
1104
1049
|
* for equality comparisons. If `fromIndex` is negative, it's used as the offset
|
|
1105
|
-
* from the end of `array`.
|
|
1106
|
-
* performs a faster binary search.
|
|
1050
|
+
* from the end of `array`.
|
|
1107
1051
|
*
|
|
1108
1052
|
* @category Array
|
|
1109
1053
|
* @param array The array to search.
|
|
@@ -1122,7 +1066,7 @@ declare module "../index" {
|
|
|
1122
1066
|
indexOf<T>(
|
|
1123
1067
|
array: List<T> | null | undefined,
|
|
1124
1068
|
value: T,
|
|
1125
|
-
fromIndex?:
|
|
1069
|
+
fromIndex?: number
|
|
1126
1070
|
): number;
|
|
1127
1071
|
}
|
|
1128
1072
|
|
|
@@ -1133,7 +1077,7 @@ declare module "../index" {
|
|
|
1133
1077
|
indexOf<T>(
|
|
1134
1078
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
1135
1079
|
value: T,
|
|
1136
|
-
fromIndex?:
|
|
1080
|
+
fromIndex?: number
|
|
1137
1081
|
): number;
|
|
1138
1082
|
}
|
|
1139
1083
|
|
|
@@ -1144,7 +1088,7 @@ declare module "../index" {
|
|
|
1144
1088
|
indexOf<T>(
|
|
1145
1089
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
1146
1090
|
value: T,
|
|
1147
|
-
fromIndex?:
|
|
1091
|
+
fromIndex?: number
|
|
1148
1092
|
): LoDashExplicitWrapper<number>;
|
|
1149
1093
|
}
|
|
1150
1094
|
|
|
@@ -1423,7 +1367,7 @@ declare module "../index" {
|
|
|
1423
1367
|
this: LoDashImplicitWrapper<List<T1> | null | undefined>,
|
|
1424
1368
|
values1: List<T2>,
|
|
1425
1369
|
values2: List<T3>,
|
|
1426
|
-
...values: Array<List<T4> | Comparator2<T1, T2 | T3 | T4
|
|
1370
|
+
...values: Array<List<T4> | Comparator2<T1, T2 | T3 | T4>>
|
|
1427
1371
|
): LoDashImplicitWrapper<T1[]>;
|
|
1428
1372
|
|
|
1429
1373
|
/**
|
|
@@ -1462,7 +1406,7 @@ declare module "../index" {
|
|
|
1462
1406
|
this: LoDashExplicitWrapper<List<T1> | null | undefined>,
|
|
1463
1407
|
values1: List<T2>,
|
|
1464
1408
|
values2: List<T3>,
|
|
1465
|
-
...values: Array<List<T4> | Comparator2<T1, T2 | T3 | T4
|
|
1409
|
+
...values: Array<List<T4> | Comparator2<T1, T2 | T3 | T4>>
|
|
1466
1410
|
): LoDashExplicitWrapper<T1[]>;
|
|
1467
1411
|
|
|
1468
1412
|
/**
|
|
@@ -1899,22 +1843,12 @@ declare module "../index" {
|
|
|
1899
1843
|
interface LoDashStatic {
|
|
1900
1844
|
/**
|
|
1901
1845
|
* Removes all elements from array that predicate returns truthy for and returns an array of the removed
|
|
1902
|
-
* elements. The predicate is
|
|
1903
|
-
*
|
|
1904
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
1905
|
-
* value of the given element.
|
|
1906
|
-
*
|
|
1907
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1908
|
-
* elements that have a matching property value, else false.
|
|
1909
|
-
*
|
|
1910
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
1911
|
-
* have the properties of the given object, else false.
|
|
1846
|
+
* elements. The predicate is invoked with three arguments: (value, index, array).
|
|
1912
1847
|
*
|
|
1913
1848
|
* Note: Unlike _.filter, this method mutates array.
|
|
1914
1849
|
*
|
|
1915
1850
|
* @param array The array to modify.
|
|
1916
1851
|
* @param predicate The function invoked per iteration.
|
|
1917
|
-
* @param thisArg The this binding of predicate.
|
|
1918
1852
|
* @return Returns the new array of removed elements.
|
|
1919
1853
|
*/
|
|
1920
1854
|
remove<T>(
|
|
@@ -2377,53 +2311,29 @@ declare module "../index" {
|
|
|
2377
2311
|
* _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
|
|
2378
2312
|
* // => [1.1, 2.2]
|
|
2379
2313
|
*/
|
|
2380
|
-
sortedUniqBy(
|
|
2381
|
-
array: string | null | undefined,
|
|
2382
|
-
iteratee: StringIterator<NotVoid>
|
|
2383
|
-
): string[];
|
|
2384
|
-
|
|
2385
|
-
/**
|
|
2386
|
-
* @see _.sortedUniqBy
|
|
2387
|
-
*/
|
|
2388
2314
|
sortedUniqBy<T>(
|
|
2389
2315
|
array: List<T> | null | undefined,
|
|
2390
|
-
iteratee:
|
|
2316
|
+
iteratee: ValueIteratee<T>
|
|
2391
2317
|
): T[];
|
|
2392
2318
|
}
|
|
2393
2319
|
|
|
2394
2320
|
interface LoDashImplicitWrapper<TValue> {
|
|
2395
|
-
/**
|
|
2396
|
-
* @see _.sortedUniqBy
|
|
2397
|
-
*/
|
|
2398
|
-
sortedUniqBy(
|
|
2399
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
2400
|
-
iteratee: StringIterator<NotVoid>
|
|
2401
|
-
): LoDashImplicitWrapper<string[]>;
|
|
2402
|
-
|
|
2403
2321
|
/**
|
|
2404
2322
|
* @see _.sortedUniqBy
|
|
2405
2323
|
*/
|
|
2406
2324
|
sortedUniqBy<T>(
|
|
2407
2325
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
2408
|
-
iteratee:
|
|
2326
|
+
iteratee: ValueIteratee<T>
|
|
2409
2327
|
): LoDashImplicitWrapper<T[]>;
|
|
2410
2328
|
}
|
|
2411
2329
|
|
|
2412
2330
|
interface LoDashExplicitWrapper<TValue> {
|
|
2413
|
-
/**
|
|
2414
|
-
* @see _.sortedUniqBy
|
|
2415
|
-
*/
|
|
2416
|
-
sortedUniqBy(
|
|
2417
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
2418
|
-
iteratee: StringIterator<NotVoid>
|
|
2419
|
-
): LoDashExplicitWrapper<string[]>;
|
|
2420
|
-
|
|
2421
2331
|
/**
|
|
2422
2332
|
* @see _.sortedUniqBy
|
|
2423
2333
|
*/
|
|
2424
2334
|
sortedUniqBy<T>(
|
|
2425
2335
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
2426
|
-
iteratee:
|
|
2336
|
+
iteratee: ValueIteratee<T>
|
|
2427
2337
|
): LoDashExplicitWrapper<T[]>;
|
|
2428
2338
|
}
|
|
2429
2339
|
|
|
@@ -2530,20 +2440,10 @@ declare module "../index" {
|
|
|
2530
2440
|
interface LoDashStatic {
|
|
2531
2441
|
/**
|
|
2532
2442
|
* Creates a slice of array with elements taken from the end. Elements are taken until predicate returns
|
|
2533
|
-
* falsey. The predicate is
|
|
2534
|
-
*
|
|
2535
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
2536
|
-
* value of the given element.
|
|
2537
|
-
*
|
|
2538
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
2539
|
-
* elements that have a matching property value, else false.
|
|
2540
|
-
*
|
|
2541
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
2542
|
-
* have the properties of the given object, else false.
|
|
2443
|
+
* falsey. The predicate is invoked with three arguments: (value, index, array).
|
|
2543
2444
|
*
|
|
2544
2445
|
* @param array The array to query.
|
|
2545
2446
|
* @param predicate The function invoked per iteration.
|
|
2546
|
-
* @param thisArg The this binding of predicate.
|
|
2547
2447
|
* @return Returns the slice of array.
|
|
2548
2448
|
*/
|
|
2549
2449
|
takeRightWhile<T>(
|
|
@@ -2577,20 +2477,10 @@ declare module "../index" {
|
|
|
2577
2477
|
interface LoDashStatic {
|
|
2578
2478
|
/**
|
|
2579
2479
|
* Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns
|
|
2580
|
-
* falsey. The predicate is
|
|
2581
|
-
*
|
|
2582
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
2583
|
-
* value of the given element.
|
|
2584
|
-
*
|
|
2585
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
2586
|
-
* elements that have a matching property value, else false.
|
|
2587
|
-
*
|
|
2588
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
2589
|
-
* have the properties of the given object, else false.
|
|
2480
|
+
* falsey. The predicate is invoked with three arguments: (value, index, array).
|
|
2590
2481
|
*
|
|
2591
2482
|
* @param array The array to query.
|
|
2592
2483
|
* @param predicate The function invoked per iteration.
|
|
2593
|
-
* @param thisArg The this binding of predicate.
|
|
2594
2484
|
* @return Returns the slice of array.
|
|
2595
2485
|
*/
|
|
2596
2486
|
takeWhile<T>(
|
|
@@ -2976,53 +2866,29 @@ declare module "../index" {
|
|
|
2976
2866
|
* _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
|
|
2977
2867
|
* // => [{ 'x': 1 }, { 'x': 2 }]
|
|
2978
2868
|
*/
|
|
2979
|
-
uniqBy(
|
|
2980
|
-
array: string | null | undefined,
|
|
2981
|
-
iteratee: StringIterator<NotVoid>
|
|
2982
|
-
): string[];
|
|
2983
|
-
|
|
2984
|
-
/**
|
|
2985
|
-
* @see _.uniqBy
|
|
2986
|
-
*/
|
|
2987
2869
|
uniqBy<T>(
|
|
2988
2870
|
array: List<T> | null | undefined,
|
|
2989
|
-
iteratee:
|
|
2871
|
+
iteratee: ValueIteratee<T>
|
|
2990
2872
|
): T[];
|
|
2991
2873
|
}
|
|
2992
2874
|
|
|
2993
2875
|
interface LoDashImplicitWrapper<TValue> {
|
|
2994
|
-
/**
|
|
2995
|
-
* @see _.uniqBy
|
|
2996
|
-
*/
|
|
2997
|
-
uniqBy(
|
|
2998
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
2999
|
-
iteratee: StringIterator<NotVoid>
|
|
3000
|
-
): LoDashImplicitWrapper<string[]>;
|
|
3001
|
-
|
|
3002
2876
|
/**
|
|
3003
2877
|
* @see _.uniqBy
|
|
3004
2878
|
*/
|
|
3005
2879
|
uniqBy<T>(
|
|
3006
2880
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
3007
|
-
iteratee:
|
|
2881
|
+
iteratee: ValueIteratee<T>
|
|
3008
2882
|
): LoDashImplicitWrapper<T[]>;
|
|
3009
2883
|
}
|
|
3010
2884
|
|
|
3011
2885
|
interface LoDashExplicitWrapper<TValue> {
|
|
3012
|
-
/**
|
|
3013
|
-
* @see _.uniqBy
|
|
3014
|
-
*/
|
|
3015
|
-
uniqBy(
|
|
3016
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
3017
|
-
iteratee: StringIterator<NotVoid>
|
|
3018
|
-
): LoDashExplicitWrapper<string[]>;
|
|
3019
|
-
|
|
3020
2886
|
/**
|
|
3021
2887
|
* @see _.uniqBy
|
|
3022
2888
|
*/
|
|
3023
2889
|
uniqBy<T>(
|
|
3024
2890
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
3025
|
-
iteratee:
|
|
2891
|
+
iteratee: ValueIteratee<T>
|
|
3026
2892
|
): LoDashExplicitWrapper<T[]>;
|
|
3027
2893
|
}
|
|
3028
2894
|
|
|
@@ -3103,12 +2969,10 @@ declare module "../index" {
|
|
|
3103
2969
|
interface LoDashStatic {
|
|
3104
2970
|
/**
|
|
3105
2971
|
* This method is like _.unzip except that it accepts an iteratee to specify how regrouped values should be
|
|
3106
|
-
* combined. The iteratee is
|
|
3107
|
-
* group).
|
|
2972
|
+
* combined. The iteratee is invoked with four arguments: (accumulator, value, index, group).
|
|
3108
2973
|
*
|
|
3109
2974
|
* @param array The array of grouped elements to process.
|
|
3110
2975
|
* @param iteratee The function to combine regrouped values.
|
|
3111
|
-
* @param thisArg The this binding of iteratee.
|
|
3112
2976
|
* @return Returns the new array of regrouped elements.
|
|
3113
2977
|
*/
|
|
3114
2978
|
unzipWith<T, TResult>(
|
|
@@ -3463,7 +3327,7 @@ declare module "../index" {
|
|
|
3463
3327
|
/**
|
|
3464
3328
|
* @see _.zip
|
|
3465
3329
|
*/
|
|
3466
|
-
zip<T>(...arrays: Array<List<T> | null | undefined>):
|
|
3330
|
+
zip<T>(...arrays: Array<List<T> | null | undefined>): Array<Array<T | undefined>>;
|
|
3467
3331
|
}
|
|
3468
3332
|
|
|
3469
3333
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -3661,11 +3525,10 @@ declare module "../index" {
|
|
|
3661
3525
|
interface LoDashStatic {
|
|
3662
3526
|
/**
|
|
3663
3527
|
* This method is like _.zip except that it accepts an iteratee to specify how grouped values should be
|
|
3664
|
-
* combined. The iteratee is
|
|
3528
|
+
* combined. The iteratee is invoked with four arguments: (accumulator, value, index,
|
|
3665
3529
|
* group).
|
|
3666
|
-
* @param
|
|
3667
|
-
* @param
|
|
3668
|
-
* @param [thisArg] The `this` binding of `iteratee`.
|
|
3530
|
+
* @param arrays The arrays to process.
|
|
3531
|
+
* @param iteratee The function to combine grouped values.
|
|
3669
3532
|
* @return Returns the new array of grouped elements.
|
|
3670
3533
|
*/
|
|
3671
3534
|
zipWith<T, TResult>(
|
|
@@ -3842,4 +3705,4 @@ declare module "../index" {
|
|
|
3842
3705
|
...iteratee: Array<((...group: T[]) => TResult) | List<T> | null | undefined>
|
|
3843
3706
|
): LoDashExplicitWrapper<TResult[]>;
|
|
3844
3707
|
}
|
|
3845
|
-
}
|
|
3708
|
+
}
|