From 77cc37ba4999271837d04062aaed48a469a61fe5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 9 Jan 2017 17:38:33 -0800 Subject: [PATCH] Remove references to `_`. --- _arrayEach.js | 2 +- _arrayEachRight.js | 2 +- _arrayEvery.js | 2 +- _arrayFilter.js | 2 +- _arrayIncludes.js | 2 +- _arrayMap.js | 2 +- _arrayReduce.js | 2 +- _arrayReduceRight.js | 2 +- _arraySample.js | 2 +- _arraySampleSize.js | 2 +- _arrayShuffle.js | 2 +- _arraySome.js | 2 +- _baseAssign.js | 2 +- _baseAssignIn.js | 2 +- _baseAt.js | 2 +- _baseClamp.js | 2 +- _baseClone.js | 4 ++-- _baseConforms.js | 2 +- _baseConformsTo.js | 2 +- _baseCreate.js | 2 +- _baseDelay.js | 2 +- _baseDifference.js | 2 +- _baseEach.js | 2 +- _baseEachRight.js | 2 +- _baseEvery.js | 2 +- _baseExtremum.js | 2 +- _baseFill.js | 2 +- _baseFilter.js | 2 +- _baseFindIndex.js | 2 +- _baseFindKey.js | 2 +- _baseFlatten.js | 2 +- _baseForOwn.js | 2 +- _baseForOwnRight.js | 2 +- _baseFunctions.js | 2 +- _baseGet.js | 2 +- _baseGt.js | 2 +- _baseHas.js | 2 +- _baseHasIn.js | 2 +- _baseInRange.js | 2 +- _baseIndexOf.js | 2 +- _baseIntersection.js | 2 +- _baseInverter.js | 2 +- _baseInvoke.js | 2 +- _baseIsArguments.js | 2 +- _baseIsArrayBuffer.js | 2 +- _baseIsDate.js | 2 +- _baseIsEqual.js | 2 +- _baseIsMap.js | 2 +- _baseIsMatch.js | 2 +- _baseIsNaN.js | 2 +- _baseIsNative.js | 2 +- _baseIsRegExp.js | 2 +- _baseIsSet.js | 2 +- _baseIsTypedArray.js | 2 +- _baseKeys.js | 2 +- _baseKeysIn.js | 2 +- _baseLt.js | 2 +- _baseMap.js | 2 +- _baseMatches.js | 2 +- _baseMatchesProperty.js | 2 +- _baseMerge.js | 2 +- _baseNth.js | 2 +- _baseOrderBy.js | 2 +- _basePick.js | 2 +- _basePickBy.js | 2 +- _baseProperty.js | 2 +- _basePropertyOf.js | 2 +- _basePullAll.js | 2 +- _basePullAt.js | 2 +- _baseRandom.js | 2 +- _baseRange.js | 2 +- _baseReduce.js | 2 +- _baseRepeat.js | 2 +- _baseSample.js | 2 +- _baseSampleSize.js | 2 +- _baseSet.js | 2 +- _baseShuffle.js | 2 +- _baseSlice.js | 2 +- _baseSome.js | 2 +- _baseSortBy.js | 2 +- _baseSortedIndex.js | 2 +- _baseSortedIndexBy.js | 2 +- _baseSortedUniq.js | 2 +- _baseSum.js | 2 +- _baseTimes.js | 2 +- _baseToNumber.js | 2 +- _baseToPairs.js | 2 +- _baseToString.js | 2 +- _baseUniq.js | 2 +- _baseUnset.js | 2 +- _baseUpdate.js | 2 +- _baseValues.js | 2 +- _baseWhile.js | 2 +- _baseXor.js | 2 +- _baseZipObject.js | 2 +- _charsEndIndex.js | 2 +- _charsStartIndex.js | 2 +- _compareMultiple.js | 2 +- _composeArgsRight.js | 2 +- _createAggregator.js | 2 +- _createAssigner.js | 2 +- _createBaseFor.js | 2 +- _createCaseFirst.js | 2 +- _createCompounder.js | 2 +- _createFind.js | 2 +- _createFlow.js | 2 +- _createInverter.js | 2 +- _createOver.js | 2 +- _createRange.js | 2 +- _createRound.js | 2 +- _createToPairs.js | 2 +- _createWrap.js | 20 +++++++++---------- _customDefaultsAssignIn.js | 2 +- _customDefaultsMerge.js | 2 +- _deburrLetter.js | 2 +- _escapeHtmlChar.js | 2 +- _escapeStringChar.js | 2 +- _memoizeCapped.js | 2 +- _mergeData.js | 10 +++++----- _setCacheAdd.js | 2 +- _setCacheHas.js | 2 +- _shuffleSelf.js | 2 +- _stackGet.js | 2 +- _stackHas.js | 2 +- _strictIndexOf.js | 2 +- _strictLastIndexOf.js | 2 +- _unescapeHtmlChar.js | 2 +- _updateWrapDetails.js | 2 +- add.js | 3 +-- after.js | 7 +++---- ary.js | 5 ++--- assignIn.js | 7 +++---- assignInWith.js | 9 ++++----- assignWith.js | 9 ++++----- at.js | 3 +-- attempt.js | 5 ++--- before.js | 3 +-- bind.js | 7 +++---- bindAll.js | 3 +-- bindKey.js | 9 ++++----- camelCase.js | 7 +++---- capitalize.js | 3 +-- castArray.js | 15 +++++++------- ceil.js | 7 +++---- chunk.js | 7 +++---- clamp.js | 5 ++--- clone.js | 5 ++--- cloneDeep.js | 7 +++---- cloneDeepWith.js | 9 ++++----- cloneWith.js | 9 ++++----- compact.js | 3 +-- concat.js | 3 +-- cond.js | 9 ++++----- conforms.js | 5 ++--- conformsTo.js | 7 +++---- constant.js | 3 +-- countBy.js | 3 +-- create.js | 3 +-- curry.js | 7 +++---- curryRight.js | 11 +++++----- debounce.js | 9 ++++----- deburr.js | 3 +-- defaultTo.js | 5 ++--- defaults.js | 5 ++--- defaultsDeep.js | 7 +++---- defer.js | 3 +-- delay.js | 3 +-- difference.js | 7 +++---- differenceBy.js | 7 +++---- differenceWith.js | 7 +++---- divide.js | 3 +-- drop.js | 11 +++++----- dropRight.js | 11 +++++----- dropRightWhile.js | 3 +-- dropWhile.js | 3 +-- endsWith.js | 7 +++---- eq.js | 11 +++++----- escape.js | 3 +-- escapeRegExp.js | 3 +-- every.js | 5 ++--- fill.js | 7 +++---- filter.js | 7 +++---- find.js | 3 +-- findIndex.js | 5 ++--- findKey.js | 5 ++--- findLast.js | 5 ++--- findLastIndex.js | 5 ++--- findLastKey.js | 7 +++---- flatMap.js | 3 +-- flatMapDeep.js | 5 ++--- flatMapDepth.js | 5 ++--- flatten.js | 3 +-- flattenDeep.js | 3 +-- flattenDepth.js | 5 ++--- flip.js | 5 ++--- floor.js | 7 +++---- flow.js | 5 ++--- flowRight.js | 7 +++---- forEach.js | 11 +++++----- forEachRight.js | 7 +++---- forIn.js | 5 ++--- forInRight.js | 9 ++++----- forOwn.js | 5 ++--- forOwnRight.js | 9 ++++----- fromPairs.js | 5 ++--- functions.js | 11 +++++----- functionsIn.js | 11 +++++----- get.js | 7 +++---- groupBy.js | 3 +-- gt.js | 9 ++++----- gte.js | 9 ++++----- has.js | 11 +++++----- hasIn.js | 11 +++++----- head.js | 5 ++--- identity.js | 3 +-- inRange.js | 17 ++++++++-------- includes.js | 11 +++++----- indexOf.js | 5 ++--- initial.js | 3 +-- intersection.js | 3 +-- intersectionBy.js | 5 ++--- intersectionWith.js | 5 ++--- invert.js | 3 +-- invertBy.js | 5 ++--- invoke.js | 3 +-- invokeMap.js | 5 ++--- isArguments.js | 5 ++--- isArrayBuffer.js | 5 ++--- isArrayLike.js | 9 ++++----- isArrayLikeObject.js | 11 +++++----- isBoolean.js | 5 ++--- isBuffer.js | 5 ++--- isDate.js | 5 ++--- isElement.js | 5 ++--- isEmpty.js | 11 +++++----- isEqual.js | 3 +-- isEqualWith.js | 5 ++--- isError.js | 5 ++--- isFinite.js | 9 ++++----- isFunction.js | 5 ++--- isInteger.js | 9 ++++----- isLength.js | 9 ++++----- isMap.js | 5 ++--- isMatch.js | 9 ++++----- isMatchWith.js | 5 ++--- isNaN.js | 7 +++---- isNative.js | 5 ++--- isNil.js | 7 +++---- isNull.js | 5 ++--- isNumber.js | 11 +++++----- isObject.js | 9 ++++----- isObjectLike.js | 9 ++++----- isPlainObject.js | 9 ++++----- isRegExp.js | 5 ++--- isSafeInteger.js | 9 ++++----- isSet.js | 5 ++--- isString.js | 5 ++--- isSymbol.js | 5 ++--- isTypedArray.js | 5 ++--- isUndefined.js | 5 ++--- isWeakMap.js | 5 ++--- isWeakSet.js | 5 ++--- join.js | 3 +-- kebabCase.js | 7 +++---- keyBy.js | 5 ++--- keys.js | 5 ++--- keysIn.js | 3 +-- last.js | 3 +-- lastIndexOf.js | 7 +++---- lowerCase.js | 7 +++---- lowerFirst.js | 5 ++--- lt.js | 9 ++++----- lte.js | 9 ++++----- map.js | 7 +++---- mapKeys.js | 7 +++---- mapValues.js | 5 ++--- matches.js | 7 +++---- matchesProperty.js | 5 ++--- max.js | 5 ++--- maxBy.js | 5 ++--- mean.js | 3 +-- meanBy.js | 5 ++--- memoize.js | 9 ++++----- merge.js | 5 ++--- mergeWith.js | 7 +++---- method.js | 9 ++++----- methodOf.js | 9 ++++----- min.js | 5 ++--- minBy.js | 5 ++--- multiply.js | 3 +-- negate.js | 3 +-- noop.js | 3 +-- now.js | 7 +++---- nth.js | 5 ++--- nthArg.js | 5 ++--- once.js | 3 +-- orderBy.js | 9 ++++----- over.js | 5 ++--- overArgs.js | 5 ++--- overEvery.js | 5 ++--- overSome.js | 5 ++--- pad.js | 7 +++---- padEnd.js | 7 +++---- padStart.js | 7 +++---- parseInt.js | 7 +++---- partition.js | 3 +-- pick.js | 3 +-- pickBy.js | 3 +-- property.js | 5 ++--- propertyOf.js | 7 +++---- pull.js | 5 ++--- pullAll.js | 7 +++---- pullAllBy.js | 7 +++---- pullAllWith.js | 7 +++---- pullAt.js | 5 ++--- random.js | 9 ++++----- range.js | 17 ++++++++-------- rangeRight.js | 19 +++++++++--------- rearg.js | 3 +-- reduce.js | 9 ++++----- reduceRight.js | 7 +++---- reject.js | 7 +++---- remove.js | 5 ++--- repeat.js | 9 ++++----- replace.js | 3 +-- result.js | 13 ++++++------ reverse.js | 3 +-- round.js | 7 +++---- sample.js | 3 +-- sampleSize.js | 7 +++---- set.js | 7 +++---- setWith.js | 5 ++--- shuffle.js | 3 +-- size.js | 7 +++---- slice.js | 1 - snakeCase.js | 7 +++---- some.js | 5 ++--- sortedIndex.js | 3 +-- sortedIndexBy.js | 5 ++--- sortedIndexOf.js | 5 ++--- sortedLastIndex.js | 5 ++--- sortedLastIndexBy.js | 5 ++--- sortedLastIndexOf.js | 5 ++--- sortedUniq.js | 5 ++--- sortedUniqBy.js | 5 ++--- split.js | 3 +-- spread.js | 5 ++--- startCase.js | 7 +++---- startsWith.js | 7 +++---- stubArray.js | 3 +-- stubFalse.js | 3 +-- stubObject.js | 3 +-- stubString.js | 3 +-- stubTrue.js | 3 +-- subtract.js | 3 +-- sum.js | 3 +-- sumBy.js | 5 ++--- tail.js | 3 +-- take.js | 11 +++++----- takeRight.js | 11 +++++----- takeRightWhile.js | 3 +-- takeWhile.js | 3 +-- template.js | 41 +++++++++++++++++++------------------- templateSettings.js | 13 ++++++------ throttle.js | 7 +++---- times.js | 5 ++--- toArray.js | 9 ++++----- toFinite.js | 9 ++++----- toInteger.js | 9 ++++----- toLength.js | 9 ++++----- toLower.js | 7 +++---- toNumber.js | 9 ++++----- toPairs.js | 5 ++--- toPairsIn.js | 5 ++--- toPath.js | 5 ++--- toPlainObject.js | 5 ++--- toSafeInteger.js | 9 ++++----- toString.js | 7 +++---- toUpper.js | 7 +++---- transform.js | 7 +++---- trim.js | 9 ++++----- trimEnd.js | 7 +++---- trimStart.js | 7 +++---- truncate.js | 11 +++++----- unescape.js | 5 ++--- union.js | 3 +-- unionBy.js | 5 ++--- unionWith.js | 5 ++--- uniq.js | 3 +-- uniqBy.js | 5 ++--- uniqWith.js | 5 ++--- uniqueId.js | 5 ++--- unset.js | 5 ++--- unzip.js | 7 +++---- unzipWith.js | 7 +++---- update.js | 9 ++++----- updateWith.js | 5 ++--- upperCase.js | 7 +++---- upperFirst.js | 5 ++--- values.js | 5 ++--- valuesIn.js | 3 +-- without.js | 7 +++---- words.js | 7 +++---- xor.js | 5 ++--- xorBy.js | 5 ++--- xorWith.js | 5 ++--- zip.js | 3 +-- zipObject.js | 5 ++--- zipObjectDeep.js | 5 ++--- zipWith.js | 5 ++--- 410 files changed, 875 insertions(+), 1157 deletions(-) diff --git a/_arrayEach.js b/_arrayEach.js index 5c7b057ec..64e102b7b 100644 --- a/_arrayEach.js +++ b/_arrayEach.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.forEach` for arrays. + * A specialized version of `forEach` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayEachRight.js b/_arrayEachRight.js index fa885a744..fce2e67bb 100644 --- a/_arrayEachRight.js +++ b/_arrayEachRight.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.forEachRight` for arrays. + * A specialized version of `forEachRight` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayEvery.js b/_arrayEvery.js index aa2462269..d1dd7b004 100644 --- a/_arrayEvery.js +++ b/_arrayEvery.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.every` for arrays. + * A specialized version of `every` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayFilter.js b/_arrayFilter.js index 4a586f375..05e6c41e1 100644 --- a/_arrayFilter.js +++ b/_arrayFilter.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.filter` for arrays. + * A specialized version of `filter` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayIncludes.js b/_arrayIncludes.js index 894511a6a..ccdc5c60e 100644 --- a/_arrayIncludes.js +++ b/_arrayIncludes.js @@ -1,7 +1,7 @@ import baseIndexOf from './_baseIndexOf.js'; /** - * A specialized version of `_.includes` for arrays without support for + * A specialized version of `includes` for arrays without support for * specifying an index to search from. * * @private diff --git a/_arrayMap.js b/_arrayMap.js index 9f29ecb79..fff479783 100644 --- a/_arrayMap.js +++ b/_arrayMap.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.map` for arrays. + * A specialized version of `map` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayReduce.js b/_arrayReduce.js index f14a02e90..70d63df52 100644 --- a/_arrayReduce.js +++ b/_arrayReduce.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.reduce` for arrays. + * A specialized version of `reduce` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arrayReduceRight.js b/_arrayReduceRight.js index bd49f47bc..89a195029 100644 --- a/_arrayReduceRight.js +++ b/_arrayReduceRight.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.reduceRight` for arrays. + * A specialized version of `reduceRight` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_arraySample.js b/_arraySample.js index d91b3a43d..285da23b6 100644 --- a/_arraySample.js +++ b/_arraySample.js @@ -1,7 +1,7 @@ import baseRandom from './_baseRandom.js'; /** - * A specialized version of `_.sample` for arrays. + * A specialized version of `sample` for arrays. * * @private * @param {Array} array The array to sample. diff --git a/_arraySampleSize.js b/_arraySampleSize.js index d5c9474b5..6a6ce653f 100644 --- a/_arraySampleSize.js +++ b/_arraySampleSize.js @@ -3,7 +3,7 @@ import copyArray from './_copyArray.js'; import shuffleSelf from './_shuffleSelf.js'; /** - * A specialized version of `_.sampleSize` for arrays. + * A specialized version of `sampleSize` for arrays. * * @private * @param {Array} array The array to sample. diff --git a/_arrayShuffle.js b/_arrayShuffle.js index 493e65b57..b77e3e95c 100644 --- a/_arrayShuffle.js +++ b/_arrayShuffle.js @@ -2,7 +2,7 @@ import copyArray from './_copyArray.js'; import shuffleSelf from './_shuffleSelf.js'; /** - * A specialized version of `_.shuffle` for arrays. + * A specialized version of `shuffle` for arrays. * * @private * @param {Array} array The array to shuffle. diff --git a/_arraySome.js b/_arraySome.js index 73be88a5e..c6459c223 100644 --- a/_arraySome.js +++ b/_arraySome.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.some` for arrays. + * A specialized version of `some` for arrays. * * @private * @param {Array} [array] The array to iterate over. diff --git a/_baseAssign.js b/_baseAssign.js index 81ae5a5b9..b9aff6ef0 100644 --- a/_baseAssign.js +++ b/_baseAssign.js @@ -2,7 +2,7 @@ import copyObject from './_copyObject.js'; import keys from './keys.js'; /** - * The base implementation of `_.assign` without support for multiple sources + * The base implementation of `assign` without support for multiple sources * or `customizer` functions. * * @private diff --git a/_baseAssignIn.js b/_baseAssignIn.js index 83c6e83e2..c53caefc0 100644 --- a/_baseAssignIn.js +++ b/_baseAssignIn.js @@ -2,7 +2,7 @@ import copyObject from './_copyObject.js'; import keysIn from './keysIn.js'; /** - * The base implementation of `_.assignIn` without support for multiple sources + * The base implementation of `assignIn` without support for multiple sources * or `customizer` functions. * * @private diff --git a/_baseAt.js b/_baseAt.js index ce1e3f204..f9c90f5ab 100644 --- a/_baseAt.js +++ b/_baseAt.js @@ -1,7 +1,7 @@ import get from './get.js'; /** - * The base implementation of `_.at` without support for individual paths. + * The base implementation of `at` without support for individual paths. * * @private * @param {Object} object The object to iterate over. diff --git a/_baseClamp.js b/_baseClamp.js index bf9a927c7..055b7091b 100644 --- a/_baseClamp.js +++ b/_baseClamp.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.clamp` which doesn't coerce arguments. + * The base implementation of `clamp` which doesn't coerce arguments. * * @private * @param {number} number The number to clamp. diff --git a/_baseClone.js b/_baseClone.js index 61eb27c1c..f30c68fe2 100644 --- a/_baseClone.js +++ b/_baseClone.js @@ -52,7 +52,7 @@ const uint8ClampedTag = '[object Uint8ClampedArray]'; const uint16Tag = '[object Uint16Array]'; const uint32Tag = '[object Uint32Array]'; -/** Used to identify `toStringTag` values supported by `_.clone`. */ +/** Used to identify `toStringTag` values supported by `clone`. */ const cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = @@ -69,7 +69,7 @@ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** - * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * The base implementation of `clone` and `cloneDeep` which tracks * traversed objects. * * @private diff --git a/_baseConforms.js b/_baseConforms.js index bd59720bc..4a12f54be 100644 --- a/_baseConforms.js +++ b/_baseConforms.js @@ -2,7 +2,7 @@ import baseConformsTo from './_baseConformsTo.js'; import keys from './keys.js'; /** - * The base implementation of `_.conforms` which doesn't clone `source`. + * The base implementation of `conforms` which doesn't clone `source`. * * @private * @param {Object} source The object of property predicates to conform to. diff --git a/_baseConformsTo.js b/_baseConformsTo.js index c002b023b..7f5c61af7 100644 --- a/_baseConformsTo.js +++ b/_baseConformsTo.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.conformsTo` which accepts `props` to check. + * The base implementation of `conformsTo` which accepts `props` to check. * * @private * @param {Object} object The object to inspect. diff --git a/_baseCreate.js b/_baseCreate.js index 19b057a4f..ca4dd1195 100644 --- a/_baseCreate.js +++ b/_baseCreate.js @@ -4,7 +4,7 @@ import isObject from './isObject.js'; const objectCreate = Object.create; /** - * The base implementation of `_.create` without support for assigning + * The base implementation of `create` without support for assigning * properties to the created object. * * @private diff --git a/_baseDelay.js b/_baseDelay.js index 23ca7afbe..ca675ef9d 100644 --- a/_baseDelay.js +++ b/_baseDelay.js @@ -2,7 +2,7 @@ const FUNC_ERROR_TEXT = 'Expected a function'; /** - * The base implementation of `_.delay` and `_.defer` which accepts `args` + * The base implementation of `delay` and `defer` which accepts `args` * to provide to `func`. * * @private diff --git a/_baseDifference.js b/_baseDifference.js index f1bda043c..f018fa48e 100644 --- a/_baseDifference.js +++ b/_baseDifference.js @@ -8,7 +8,7 @@ import cacheHas from './_cacheHas.js'; const LARGE_ARRAY_SIZE = 200; /** - * The base implementation of methods like `_.difference` without support + * The base implementation of methods like `difference` without support * for excluding multiple arrays. * * @private diff --git a/_baseEach.js b/_baseEach.js index f7ab97790..a28e6580b 100644 --- a/_baseEach.js +++ b/_baseEach.js @@ -2,7 +2,7 @@ import baseForOwn from './_baseForOwn.js'; import createBaseEach from './_createBaseEach.js'; /** - * The base implementation of `_.forEach`. + * The base implementation of `forEach`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseEachRight.js b/_baseEachRight.js index a4112929d..2fe9b8627 100644 --- a/_baseEachRight.js +++ b/_baseEachRight.js @@ -2,7 +2,7 @@ import baseForOwnRight from './_baseForOwnRight.js'; import createBaseEach from './_createBaseEach.js'; /** - * The base implementation of `_.forEachRight`. + * The base implementation of `forEachRight`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseEvery.js b/_baseEvery.js index f417be0c7..da269e2d4 100644 --- a/_baseEvery.js +++ b/_baseEvery.js @@ -1,7 +1,7 @@ import baseEach from './_baseEach.js'; /** - * The base implementation of `_.every`. + * The base implementation of `every`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseExtremum.js b/_baseExtremum.js index 5164f19a6..7455bf561 100644 --- a/_baseExtremum.js +++ b/_baseExtremum.js @@ -1,7 +1,7 @@ import isSymbol from './isSymbol.js'; /** - * The base implementation of methods like `_.max` and `_.min` which accepts a + * The base implementation of methods like `max` and `min` which accepts a * `comparator` to determine the extremum value. * * @private diff --git a/_baseFill.js b/_baseFill.js index de407866d..f611ce524 100644 --- a/_baseFill.js +++ b/_baseFill.js @@ -2,7 +2,7 @@ import toInteger from './toInteger.js'; import toLength from './toLength.js'; /** - * The base implementation of `_.fill` without an iteratee call guard. + * The base implementation of `fill` without an iteratee call guard. * * @private * @param {Array} array The array to fill. diff --git a/_baseFilter.js b/_baseFilter.js index 7c282c082..95b3e3e04 100644 --- a/_baseFilter.js +++ b/_baseFilter.js @@ -1,7 +1,7 @@ import baseEach from './_baseEach.js'; /** - * The base implementation of `_.filter`. + * The base implementation of `filter`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseFindIndex.js b/_baseFindIndex.js index a5e810a22..59e66a2bb 100644 --- a/_baseFindIndex.js +++ b/_baseFindIndex.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.findIndex` and `_.findLastIndex`. + * The base implementation of `findIndex` and `findLastIndex`. * * @private * @param {Array} array The array to inspect. diff --git a/_baseFindKey.js b/_baseFindKey.js index c4ebfb084..5fed9ba27 100644 --- a/_baseFindKey.js +++ b/_baseFindKey.js @@ -1,5 +1,5 @@ /** - * The base implementation of methods like `_.findKey` and `_.findLastKey` + * The base implementation of methods like `findKey` and `findLastKey` * which iterates over `collection` using `eachFunc`. * * @private diff --git a/_baseFlatten.js b/_baseFlatten.js index 1330b6d4e..ac716e611 100644 --- a/_baseFlatten.js +++ b/_baseFlatten.js @@ -2,7 +2,7 @@ import arrayPush from './_arrayPush.js'; import isFlattenable from './_isFlattenable.js'; /** - * The base implementation of `_.flatten` with support for restricting flattening. + * The base implementation of `flatten` with support for restricting flattening. * * @private * @param {Array} array The array to flatten. diff --git a/_baseForOwn.js b/_baseForOwn.js index e560a9b76..5cfda3777 100644 --- a/_baseForOwn.js +++ b/_baseForOwn.js @@ -2,7 +2,7 @@ import baseFor from './_baseFor.js'; import keys from './keys.js'; /** - * The base implementation of `_.forOwn`. + * The base implementation of `forOwn`. * * @private * @param {Object} object The object to iterate over. diff --git a/_baseForOwnRight.js b/_baseForOwnRight.js index c44d69e56..e88ef5817 100644 --- a/_baseForOwnRight.js +++ b/_baseForOwnRight.js @@ -2,7 +2,7 @@ import baseForRight from './_baseForRight.js'; import keys from './keys.js'; /** - * The base implementation of `_.forOwnRight`. + * The base implementation of `forOwnRight`. * * @private * @param {Object} object The object to iterate over. diff --git a/_baseFunctions.js b/_baseFunctions.js index c109f0ba4..4c47082bb 100644 --- a/_baseFunctions.js +++ b/_baseFunctions.js @@ -2,7 +2,7 @@ import arrayFilter from './_arrayFilter.js'; import isFunction from './isFunction.js'; /** - * The base implementation of `_.functions` which creates an array of + * The base implementation of `functions` which creates an array of * `object` function property names filtered from `props`. * * @private diff --git a/_baseGet.js b/_baseGet.js index 75e1ab06b..ad40ea65b 100644 --- a/_baseGet.js +++ b/_baseGet.js @@ -2,7 +2,7 @@ import castPath from './_castPath.js'; import toKey from './_toKey.js'; /** - * The base implementation of `_.get` without support for default values. + * The base implementation of `get` without support for default values. * * @private * @param {Object} object The object to query. diff --git a/_baseGt.js b/_baseGt.js index 998cf158c..040061d7b 100644 --- a/_baseGt.js +++ b/_baseGt.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.gt` which doesn't coerce arguments. + * The base implementation of `gt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. diff --git a/_baseHas.js b/_baseHas.js index 6838b7bcc..2b7e091b0 100644 --- a/_baseHas.js +++ b/_baseHas.js @@ -5,7 +5,7 @@ const objectProto = Object.prototype; const hasOwnProperty = objectProto.hasOwnProperty; /** - * The base implementation of `_.has` without support for deep paths. + * The base implementation of `has` without support for deep paths. * * @private * @param {Object} [object] The object to query. diff --git a/_baseHasIn.js b/_baseHasIn.js index ee48bc131..e456040c0 100644 --- a/_baseHasIn.js +++ b/_baseHasIn.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.hasIn` without support for deep paths. + * The base implementation of `hasIn` without support for deep paths. * * @private * @param {Object} [object] The object to query. diff --git a/_baseInRange.js b/_baseInRange.js index 1b11989bf..fa922d56d 100644 --- a/_baseInRange.js +++ b/_baseInRange.js @@ -3,7 +3,7 @@ const nativeMax = Math.max; const nativeMin = Math.min; /** - * The base implementation of `_.inRange` which doesn't coerce arguments. + * The base implementation of `inRange` which doesn't coerce arguments. * * @private * @param {number} number The number to check. diff --git a/_baseIndexOf.js b/_baseIndexOf.js index 027e11dfd..8b5634885 100644 --- a/_baseIndexOf.js +++ b/_baseIndexOf.js @@ -3,7 +3,7 @@ import baseIsNaN from './_baseIsNaN.js'; import strictIndexOf from './_strictIndexOf.js'; /** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * The base implementation of `indexOf` without `fromIndex` bounds checks. * * @private * @param {Array} array The array to inspect. diff --git a/_baseIntersection.js b/_baseIntersection.js index 3fb8f0af3..51d87800d 100644 --- a/_baseIntersection.js +++ b/_baseIntersection.js @@ -8,7 +8,7 @@ import cacheHas from './_cacheHas.js'; const nativeMin = Math.min; /** - * The base implementation of methods like `_.intersection` that accepts an + * The base implementation of methods like `intersection` that accepts an * array of arrays to inspect. * * @private diff --git a/_baseInverter.js b/_baseInverter.js index f42aa7ce1..190af034d 100644 --- a/_baseInverter.js +++ b/_baseInverter.js @@ -1,7 +1,7 @@ import baseForOwn from './_baseForOwn.js'; /** - * The base implementation of `_.invert` and `_.invertBy` which inverts + * The base implementation of `invert` and `invertBy` which inverts * `object` with values transformed by `iteratee` and set by `setter`. * * @private diff --git a/_baseInvoke.js b/_baseInvoke.js index 48a1c5bb4..1c2751eb2 100644 --- a/_baseInvoke.js +++ b/_baseInvoke.js @@ -5,7 +5,7 @@ import parent from './_parent.js'; import toKey from './_toKey.js'; /** - * The base implementation of `_.invoke` without support for individual + * The base implementation of `invoke` without support for individual * method arguments. * * @private diff --git a/_baseIsArguments.js b/_baseIsArguments.js index 7116586f0..6c5a01796 100644 --- a/_baseIsArguments.js +++ b/_baseIsArguments.js @@ -5,7 +5,7 @@ import isObjectLike from './isObjectLike.js'; const argsTag = '[object Arguments]'; /** - * The base implementation of `_.isArguments`. + * The base implementation of `isArguments`. * * @private * @param {*} value The value to check. diff --git a/_baseIsArrayBuffer.js b/_baseIsArrayBuffer.js index 248536240..377632dc5 100644 --- a/_baseIsArrayBuffer.js +++ b/_baseIsArrayBuffer.js @@ -4,7 +4,7 @@ import isObjectLike from './isObjectLike.js'; const arrayBufferTag = '[object ArrayBuffer]'; /** - * The base implementation of `_.isArrayBuffer` without Node.js optimizations. + * The base implementation of `isArrayBuffer` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseIsDate.js b/_baseIsDate.js index ce5883296..565ca7405 100644 --- a/_baseIsDate.js +++ b/_baseIsDate.js @@ -5,7 +5,7 @@ import isObjectLike from './isObjectLike.js'; const dateTag = '[object Date]'; /** - * The base implementation of `_.isDate` without Node.js optimizations. + * The base implementation of `isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseIsEqual.js b/_baseIsEqual.js index 3b5aba815..1f89c9b2d 100644 --- a/_baseIsEqual.js +++ b/_baseIsEqual.js @@ -2,7 +2,7 @@ import baseIsEqualDeep from './_baseIsEqualDeep.js'; import isObjectLike from './isObjectLike.js'; /** - * The base implementation of `_.isEqual` which supports partial comparisons + * The base implementation of `isEqual` which supports partial comparisons * and tracks traversed objects. * * @private diff --git a/_baseIsMap.js b/_baseIsMap.js index 87ff3f36d..f214fb88e 100644 --- a/_baseIsMap.js +++ b/_baseIsMap.js @@ -5,7 +5,7 @@ import isObjectLike from './isObjectLike.js'; const mapTag = '[object Map]'; /** - * The base implementation of `_.isMap` without Node.js optimizations. + * The base implementation of `isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseIsMatch.js b/_baseIsMatch.js index c70054185..85a905244 100644 --- a/_baseIsMatch.js +++ b/_baseIsMatch.js @@ -6,7 +6,7 @@ const COMPARE_PARTIAL_FLAG = 1; const COMPARE_UNORDERED_FLAG = 2; /** - * The base implementation of `_.isMatch`. + * The base implementation of `isMatch`. * * @private * @param {Object} object The object to inspect. diff --git a/_baseIsNaN.js b/_baseIsNaN.js index 7a36d0ee3..ee166ec5a 100644 --- a/_baseIsNaN.js +++ b/_baseIsNaN.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.isNaN` without support for number objects. + * The base implementation of `isNaN` without support for number objects. * * @private * @param {*} value The value to check. diff --git a/_baseIsNative.js b/_baseIsNative.js index c80830c7b..fa955efd6 100644 --- a/_baseIsNative.js +++ b/_baseIsNative.js @@ -30,7 +30,7 @@ const reIsNative = RegExp(`^${ }$`); /** - * The base implementation of `_.isNative` without bad shim checks. + * The base implementation of `isNative` without bad shim checks. * * @private * @param {*} value The value to check. diff --git a/_baseIsRegExp.js b/_baseIsRegExp.js index 2a8f21f85..530a5a387 100644 --- a/_baseIsRegExp.js +++ b/_baseIsRegExp.js @@ -5,7 +5,7 @@ import isObjectLike from './isObjectLike.js'; const regexpTag = '[object RegExp]'; /** - * The base implementation of `_.isRegExp` without Node.js optimizations. + * The base implementation of `isRegExp` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseIsSet.js b/_baseIsSet.js index 4e953b30c..324db446e 100644 --- a/_baseIsSet.js +++ b/_baseIsSet.js @@ -5,7 +5,7 @@ import isObjectLike from './isObjectLike.js'; const setTag = '[object Set]'; /** - * The base implementation of `_.isSet` without Node.js optimizations. + * The base implementation of `isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseIsTypedArray.js b/_baseIsTypedArray.js index 806887e01..dc11da108 100644 --- a/_baseIsTypedArray.js +++ b/_baseIsTypedArray.js @@ -46,7 +46,7 @@ typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** - * The base implementation of `_.isTypedArray` without Node.js optimizations. + * The base implementation of `isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. diff --git a/_baseKeys.js b/_baseKeys.js index 8d71d6c6d..a9ff23034 100644 --- a/_baseKeys.js +++ b/_baseKeys.js @@ -8,7 +8,7 @@ const objectProto = Object.prototype; const hasOwnProperty = objectProto.hasOwnProperty; /** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * The base implementation of `keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. diff --git a/_baseKeysIn.js b/_baseKeysIn.js index f7bca0392..8ede5b552 100644 --- a/_baseKeysIn.js +++ b/_baseKeysIn.js @@ -9,7 +9,7 @@ const objectProto = Object.prototype; const hasOwnProperty = objectProto.hasOwnProperty; /** - * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * The base implementation of `keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. diff --git a/_baseLt.js b/_baseLt.js index e70ad2d55..f66a47f21 100644 --- a/_baseLt.js +++ b/_baseLt.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.lt` which doesn't coerce arguments. + * The base implementation of `lt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. diff --git a/_baseMap.js b/_baseMap.js index 3e9b16d0e..f67c5973a 100644 --- a/_baseMap.js +++ b/_baseMap.js @@ -2,7 +2,7 @@ import baseEach from './_baseEach.js'; import isArrayLike from './isArrayLike.js'; /** - * The base implementation of `_.map`. + * The base implementation of `map`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseMatches.js b/_baseMatches.js index 5486c11f2..b63f49ff6 100644 --- a/_baseMatches.js +++ b/_baseMatches.js @@ -3,7 +3,7 @@ import getMatchData from './_getMatchData.js'; import matchesStrictComparable from './_matchesStrictComparable.js'; /** - * The base implementation of `_.matches` which doesn't clone `source`. + * The base implementation of `matches` which doesn't clone `source`. * * @private * @param {Object} source The object of property values to match. diff --git a/_baseMatchesProperty.js b/_baseMatchesProperty.js index f6e6b36dc..fe41d2fd2 100644 --- a/_baseMatchesProperty.js +++ b/_baseMatchesProperty.js @@ -11,7 +11,7 @@ const COMPARE_PARTIAL_FLAG = 1; const COMPARE_UNORDERED_FLAG = 2; /** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * The base implementation of `matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. diff --git a/_baseMerge.js b/_baseMerge.js index 844736406..a5fca1ff0 100644 --- a/_baseMerge.js +++ b/_baseMerge.js @@ -6,7 +6,7 @@ import isObject from './isObject.js'; import keysIn from './keysIn.js'; /** - * The base implementation of `_.merge` without support for multiple sources. + * The base implementation of `merge` without support for multiple sources. * * @private * @param {Object} object The destination object. diff --git a/_baseNth.js b/_baseNth.js index c4f5bde4c..91b903fb9 100644 --- a/_baseNth.js +++ b/_baseNth.js @@ -1,7 +1,7 @@ import isIndex from './_isIndex.js'; /** - * The base implementation of `_.nth` which doesn't coerce arguments. + * The base implementation of `nth` which doesn't coerce arguments. * * @private * @param {Array} array The array to query. diff --git a/_baseOrderBy.js b/_baseOrderBy.js index a45eac894..55b7bb2fc 100644 --- a/_baseOrderBy.js +++ b/_baseOrderBy.js @@ -5,7 +5,7 @@ import compareMultiple from './_compareMultiple.js'; import identity from './identity.js'; /** - * The base implementation of `_.orderBy` without param guards. + * The base implementation of `orderBy` without param guards. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_basePick.js b/_basePick.js index ac5198963..ab445d160 100644 --- a/_basePick.js +++ b/_basePick.js @@ -2,7 +2,7 @@ import basePickBy from './_basePickBy.js'; import hasIn from './hasIn.js'; /** - * The base implementation of `_.pick` without support for individual + * The base implementation of `pick` without support for individual * property identifiers. * * @private diff --git a/_basePickBy.js b/_basePickBy.js index e2cafb0c8..43a56d479 100644 --- a/_basePickBy.js +++ b/_basePickBy.js @@ -3,7 +3,7 @@ import baseSet from './_baseSet.js'; import castPath from './_castPath.js'; /** - * The base implementation of `_.pickBy`. + * The base implementation of `pickBy`. * * @private * @param {Object} object The source object. diff --git a/_baseProperty.js b/_baseProperty.js index a4d2efa35..21714557b 100644 --- a/_baseProperty.js +++ b/_baseProperty.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.property` without support for deep paths. + * The base implementation of `property` without support for deep paths. * * @private * @param {string} key The key of the property to get. diff --git a/_basePropertyOf.js b/_basePropertyOf.js index a0ab3a5e3..368ab065f 100644 --- a/_basePropertyOf.js +++ b/_basePropertyOf.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.propertyOf` without support for deep paths. + * The base implementation of `propertyOf` without support for deep paths. * * @private * @param {Object} object The object to query. diff --git a/_basePullAll.js b/_basePullAll.js index 57dd0c3a7..f8dd5a881 100644 --- a/_basePullAll.js +++ b/_basePullAll.js @@ -10,7 +10,7 @@ const arrayProto = Array.prototype; const splice = arrayProto.splice; /** - * The base implementation of `_.pullAllBy`. + * The base implementation of `pullAllBy`. * * @private * @param {Array} array The array to modify. diff --git a/_basePullAt.js b/_basePullAt.js index 6a262ee82..70b4cf86d 100644 --- a/_basePullAt.js +++ b/_basePullAt.js @@ -8,7 +8,7 @@ const arrayProto = Array.prototype; const splice = arrayProto.splice; /** - * The base implementation of `_.pullAt` without support for individual + * The base implementation of `pullAt` without support for individual * indexes or capturing the removed elements. * * @private diff --git a/_baseRandom.js b/_baseRandom.js index d6a63f525..8c4e7652a 100644 --- a/_baseRandom.js +++ b/_baseRandom.js @@ -3,7 +3,7 @@ const nativeFloor = Math.floor; const nativeRandom = Math.random; /** - * The base implementation of `_.random` without support for returning + * The base implementation of `random` without support for returning * floating-point numbers. * * @private diff --git a/_baseRange.js b/_baseRange.js index a3bb76bb9..6899a47e4 100644 --- a/_baseRange.js +++ b/_baseRange.js @@ -3,7 +3,7 @@ const nativeCeil = Math.ceil; const nativeMax = Math.max; /** - * The base implementation of `_.range` and `_.rangeRight` which doesn't + * The base implementation of `range` and `rangeRight` which doesn't * coerce arguments. * * @private diff --git a/_baseReduce.js b/_baseReduce.js index 1d559b719..39596da3e 100644 --- a/_baseReduce.js +++ b/_baseReduce.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.reduce` and `_.reduceRight` which iterates + * The base implementation of `reduce` and `reduceRight` which iterates * over `collection` using `eachFunc`. * * @private diff --git a/_baseRepeat.js b/_baseRepeat.js index 5e7c35a6d..10216f7ae 100644 --- a/_baseRepeat.js +++ b/_baseRepeat.js @@ -5,7 +5,7 @@ const MAX_SAFE_INTEGER = 9007199254740991; const nativeFloor = Math.floor; /** - * The base implementation of `_.repeat` which doesn't coerce arguments. + * The base implementation of `repeat` which doesn't coerce arguments. * * @private * @param {string} string The string to repeat. diff --git a/_baseSample.js b/_baseSample.js index 7b96c062f..76ac6f000 100644 --- a/_baseSample.js +++ b/_baseSample.js @@ -2,7 +2,7 @@ import arraySample from './_arraySample.js'; import values from './values.js'; /** - * The base implementation of `_.sample`. + * The base implementation of `sample`. * * @private * @param {Array|Object} collection The collection to sample. diff --git a/_baseSampleSize.js b/_baseSampleSize.js index c693c6f5a..da2b48c8f 100644 --- a/_baseSampleSize.js +++ b/_baseSampleSize.js @@ -3,7 +3,7 @@ import shuffleSelf from './_shuffleSelf.js'; import values from './values.js'; /** - * The base implementation of `_.sampleSize` without param guards. + * The base implementation of `sampleSize` without param guards. * * @private * @param {Array|Object} collection The collection to sample. diff --git a/_baseSet.js b/_baseSet.js index 6e905081a..2075b467d 100644 --- a/_baseSet.js +++ b/_baseSet.js @@ -5,7 +5,7 @@ import isObject from './isObject.js'; import toKey from './_toKey.js'; /** - * The base implementation of `_.set`. + * The base implementation of `set`. * * @private * @param {Object} object The object to modify. diff --git a/_baseShuffle.js b/_baseShuffle.js index f5617bbda..ab91577da 100644 --- a/_baseShuffle.js +++ b/_baseShuffle.js @@ -2,7 +2,7 @@ import shuffleSelf from './_shuffleSelf.js'; import values from './values.js'; /** - * The base implementation of `_.shuffle`. + * The base implementation of `shuffle`. * * @private * @param {Array|Object} collection The collection to shuffle. diff --git a/_baseSlice.js b/_baseSlice.js index da21c248c..c7a613be0 100644 --- a/_baseSlice.js +++ b/_baseSlice.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.slice` without an iteratee call guard. + * The base implementation of `slice` without an iteratee call guard. * * @private * @param {Array} array The array to slice. diff --git a/_baseSome.js b/_baseSome.js index 7b1b5246b..407ee9139 100644 --- a/_baseSome.js +++ b/_baseSome.js @@ -1,7 +1,7 @@ import baseEach from './_baseEach.js'; /** - * The base implementation of `_.some`. + * The base implementation of `some`. * * @private * @param {Array|Object} collection The collection to iterate over. diff --git a/_baseSortBy.js b/_baseSortBy.js index 682bc88fa..e96d2d9a9 100644 --- a/_baseSortBy.js +++ b/_baseSortBy.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.sortBy` which uses `comparer` to define the + * The base implementation of `sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * diff --git a/_baseSortedIndex.js b/_baseSortedIndex.js index 00598f98e..ca19e9277 100644 --- a/_baseSortedIndex.js +++ b/_baseSortedIndex.js @@ -7,7 +7,7 @@ const MAX_ARRAY_LENGTH = 4294967295; const HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; /** - * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which + * The base implementation of `sortedIndex` and `sortedLastIndex` which * performs a binary search of `array` to determine the index at which `value` * should be inserted into `array` in order to maintain its sort order. * diff --git a/_baseSortedIndexBy.js b/_baseSortedIndexBy.js index c5df85d21..9d019006a 100644 --- a/_baseSortedIndexBy.js +++ b/_baseSortedIndexBy.js @@ -8,7 +8,7 @@ const MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1; const nativeFloor = Math.floor, nativeMin = Math.min; /** - * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` + * The base implementation of `sortedIndexBy` and `sortedLastIndexBy` * which invokes `iteratee` for `value` and each element of `array` to compute * their sort ranking. The iteratee is invoked with one argument; (value). * diff --git a/_baseSortedUniq.js b/_baseSortedUniq.js index fe00745bc..8e0b549f1 100644 --- a/_baseSortedUniq.js +++ b/_baseSortedUniq.js @@ -1,7 +1,7 @@ import eq from './eq.js'; /** - * The base implementation of `_.sortedUniq` and `_.sortedUniqBy`. + * The base implementation of `sortedUniq` and `sortedUniqBy`. * * @private * @param {Array} array The array to inspect. diff --git a/_baseSum.js b/_baseSum.js index b82fc04be..ae20dfdb3 100644 --- a/_baseSum.js +++ b/_baseSum.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.sum` and `_.sumBy`. + * The base implementation of `sum` and `sumBy`. * * @private * @param {Array} array The array to iterate over. diff --git a/_baseTimes.js b/_baseTimes.js index 09c1c447e..360e58518 100644 --- a/_baseTimes.js +++ b/_baseTimes.js @@ -1,5 +1,5 @@ /** - * The base implementation of `_.times` without support for max array length checks. + * The base implementation of `times` without support for max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. diff --git a/_baseToNumber.js b/_baseToNumber.js index 167108ef5..70ab3034d 100644 --- a/_baseToNumber.js +++ b/_baseToNumber.js @@ -4,7 +4,7 @@ import isSymbol from './isSymbol.js'; const NAN = 0 / 0; /** - * The base implementation of `_.toNumber` which doesn't ensure correct + * The base implementation of `toNumber` which doesn't ensure correct * conversions of binary, hexadecimal, or octal string values. * * @private diff --git a/_baseToPairs.js b/_baseToPairs.js index c4609ca13..1d00496aa 100644 --- a/_baseToPairs.js +++ b/_baseToPairs.js @@ -1,7 +1,7 @@ import arrayMap from './_arrayMap.js'; /** - * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array + * The base implementation of `toPairs` and `toPairsIn` which creates an array * of key-value pairs for `object` corresponding to the property names of `props`. * * @private diff --git a/_baseToString.js b/_baseToString.js index caf61fddf..43af79e95 100644 --- a/_baseToString.js +++ b/_baseToString.js @@ -11,7 +11,7 @@ const symbolProto = Symbol ? Symbol.prototype : undefined; const symbolToString = symbolProto ? symbolProto.toString : undefined; /** - * The base implementation of `_.toString` which doesn't convert nullish + * The base implementation of `toString` which doesn't convert nullish * values to empty strings. * * @private diff --git a/_baseUniq.js b/_baseUniq.js index acf3c6736..5fb10378a 100644 --- a/_baseUniq.js +++ b/_baseUniq.js @@ -9,7 +9,7 @@ import setToArray from './_setToArray.js'; const LARGE_ARRAY_SIZE = 200; /** - * The base implementation of `_.uniqBy`. + * The base implementation of `uniqBy`. * * @private * @param {Array} array The array to inspect. diff --git a/_baseUnset.js b/_baseUnset.js index 64b7b9cb9..46c21d5d5 100644 --- a/_baseUnset.js +++ b/_baseUnset.js @@ -4,7 +4,7 @@ import parent from './_parent.js'; import toKey from './_toKey.js'; /** - * The base implementation of `_.unset`. + * The base implementation of `unset`. * * @private * @param {Object} object The object to modify. diff --git a/_baseUpdate.js b/_baseUpdate.js index 70dd150f4..ea177ce84 100644 --- a/_baseUpdate.js +++ b/_baseUpdate.js @@ -2,7 +2,7 @@ import baseGet from './_baseGet.js'; import baseSet from './_baseSet.js'; /** - * The base implementation of `_.update`. + * The base implementation of `update`. * * @private * @param {Object} object The object to modify. diff --git a/_baseValues.js b/_baseValues.js index 5f20bbf55..2af4345a8 100644 --- a/_baseValues.js +++ b/_baseValues.js @@ -1,7 +1,7 @@ import arrayMap from './_arrayMap.js'; /** - * The base implementation of `_.values` and `_.valuesIn` which creates an + * The base implementation of `values` and `valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * diff --git a/_baseWhile.js b/_baseWhile.js index 3adb8ace6..936e1244b 100644 --- a/_baseWhile.js +++ b/_baseWhile.js @@ -1,7 +1,7 @@ import baseSlice from './_baseSlice.js'; /** - * The base implementation of methods like `_.dropWhile` and `_.takeWhile`. + * The base implementation of methods like `dropWhile` and `takeWhile`. * * @private * @param {Array} array The array to query. diff --git a/_baseXor.js b/_baseXor.js index 5fd3f68b1..dfc6cfd7c 100644 --- a/_baseXor.js +++ b/_baseXor.js @@ -3,7 +3,7 @@ import baseFlatten from './_baseFlatten.js'; import baseUniq from './_baseUniq.js'; /** - * The base implementation of methods like `_.xor` which accepts an array of + * The base implementation of methods like `xor` which accepts an array of * arrays to inspect. * * @private diff --git a/_baseZipObject.js b/_baseZipObject.js index e3f840ac6..723384d06 100644 --- a/_baseZipObject.js +++ b/_baseZipObject.js @@ -1,5 +1,5 @@ /** - * This base implementation of `_.zipObject` which assigns values using `assignFunc`. + * This base implementation of `zipObject` which assigns values using `assignFunc`. * * @private * @param {Array} props The property identifiers. diff --git a/_charsEndIndex.js b/_charsEndIndex.js index 92ba6411a..f58b0e46b 100644 --- a/_charsEndIndex.js +++ b/_charsEndIndex.js @@ -1,7 +1,7 @@ import baseIndexOf from './_baseIndexOf.js'; /** - * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * Used by `trim` and `trimEnd` to get the index of the last string symbol * that is not found in the character symbols. * * @private diff --git a/_charsStartIndex.js b/_charsStartIndex.js index 816310067..0206f9b15 100644 --- a/_charsStartIndex.js +++ b/_charsStartIndex.js @@ -1,7 +1,7 @@ import baseIndexOf from './_baseIndexOf.js'; /** - * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol + * Used by `trim` and `trimStart` to get the index of the first string symbol * that is not found in the character symbols. * * @private diff --git a/_compareMultiple.js b/_compareMultiple.js index 4ef8281e2..f06285132 100644 --- a/_compareMultiple.js +++ b/_compareMultiple.js @@ -1,7 +1,7 @@ import compareAscending from './_compareAscending.js'; /** - * Used by `_.orderBy` to compare multiple properties of a value to another + * Used by `orderBy` to compare multiple properties of a value to another * and stable sort them. * * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, diff --git a/_composeArgsRight.js b/_composeArgsRight.js index 34f1bc421..5c3660d37 100644 --- a/_composeArgsRight.js +++ b/_composeArgsRight.js @@ -3,7 +3,7 @@ const nativeMax = Math.max; /** * This function is like `composeArgs` except that the arguments composition - * is tailored for `_.partialRight`. + * is tailored for `partialRight`. * * @private * @param {Array} args The provided arguments. diff --git a/_createAggregator.js b/_createAggregator.js index b35b374d8..a5e151cb0 100644 --- a/_createAggregator.js +++ b/_createAggregator.js @@ -3,7 +3,7 @@ import baseAggregator from './_baseAggregator.js'; import isArray from './isArray.js'; /** - * Creates a function like `_.groupBy`. + * Creates a function like `groupBy`. * * @private * @param {Function} setter The function to set accumulator values. diff --git a/_createAssigner.js b/_createAssigner.js index 1d691ba46..cd8a63d7b 100644 --- a/_createAssigner.js +++ b/_createAssigner.js @@ -1,7 +1,7 @@ import isIterateeCall from './_isIterateeCall.js'; /** - * Creates a function like `_.assign`. + * Creates a function like `assign`. * * @private * @param {Function} assigner The function to assign values. diff --git a/_createBaseFor.js b/_createBaseFor.js index 254283a5d..d17e5ea6e 100644 --- a/_createBaseFor.js +++ b/_createBaseFor.js @@ -1,5 +1,5 @@ /** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * Creates a base function for methods like `forIn` and `forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. diff --git a/_createCaseFirst.js b/_createCaseFirst.js index 43af01d52..9ee2ed09b 100644 --- a/_createCaseFirst.js +++ b/_createCaseFirst.js @@ -4,7 +4,7 @@ import stringToArray from './_stringToArray.js'; import toString from './toString.js'; /** - * Creates a function like `_.lowerFirst`. + * Creates a function like `lowerFirst`. * * @private * @param {string} methodName The name of the `String` case method to use. diff --git a/_createCompounder.js b/_createCompounder.js index 5154f58a4..44e36b5ce 100644 --- a/_createCompounder.js +++ b/_createCompounder.js @@ -9,7 +9,7 @@ const rsApos = "['\u2019]"; const reApos = RegExp(rsApos, 'g'); /** - * Creates a function like `_.camelCase`. + * Creates a function like `camelCase`. * * @private * @param {Function} callback The function to combine each word. diff --git a/_createFind.js b/_createFind.js index eb31fed6a..3266d63c7 100644 --- a/_createFind.js +++ b/_createFind.js @@ -2,7 +2,7 @@ import isArrayLike from './isArrayLike.js'; import keys from './keys.js'; /** - * Creates a `_.find` or `_.findLast` function. + * Creates a `find` or `findLast` function. * * @private * @param {Function} findIndexFunc The function to find the collection index. diff --git a/_createFlow.js b/_createFlow.js index 6cabc3b27..b2ca01125 100644 --- a/_createFlow.js +++ b/_createFlow.js @@ -14,7 +14,7 @@ const WRAP_ARY_FLAG = 128; const WRAP_REARG_FLAG = 256; /** - * Creates a `_.flow` or `_.flowRight` function. + * Creates a `flow` or `flowRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. diff --git a/_createInverter.js b/_createInverter.js index 0f2d181d2..f9ca7594a 100644 --- a/_createInverter.js +++ b/_createInverter.js @@ -1,7 +1,7 @@ import baseInverter from './_baseInverter.js'; /** - * Creates a function like `_.invertBy`. + * Creates a function like `invertBy`. * * @private * @param {Function} setter The function to set accumulator values. diff --git a/_createOver.js b/_createOver.js index 35c32f061..c8182085c 100644 --- a/_createOver.js +++ b/_createOver.js @@ -1,7 +1,7 @@ import apply from './_apply.js'; /** - * Creates a function like `_.over`. + * Creates a function like `over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. diff --git a/_createRange.js b/_createRange.js index 2dbdeb6c5..8e07a8844 100644 --- a/_createRange.js +++ b/_createRange.js @@ -3,7 +3,7 @@ import isIterateeCall from './_isIterateeCall.js'; import toFinite from './toFinite.js'; /** - * Creates a `_.range` or `_.rangeRight` function. + * Creates a `range` or `rangeRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. diff --git a/_createRound.js b/_createRound.js index ec2f21df1..3e0ddeca6 100644 --- a/_createRound.js +++ b/_createRound.js @@ -6,7 +6,7 @@ import toString from './toString.js'; const nativeMin = Math.min; /** - * Creates a function like `_.round`. + * Creates a function like `round`. * * @private * @param {string} methodName The name of the `Math` method to use when rounding. diff --git a/_createToPairs.js b/_createToPairs.js index 72b370973..44b7fe7b5 100644 --- a/_createToPairs.js +++ b/_createToPairs.js @@ -8,7 +8,7 @@ const mapTag = '[object Map]'; const setTag = '[object Set]'; /** - * Creates a `_.toPairs` or `_.toPairsIn` function. + * Creates a `toPairs` or `toPairsIn` function. * * @private * @param {Function} keysFunc The function to get the keys of a given object. diff --git a/_createWrap.js b/_createWrap.js index b45ebdaa9..e9bef444f 100644 --- a/_createWrap.js +++ b/_createWrap.js @@ -30,16 +30,16 @@ const nativeMax = Math.max; * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` or `_.curryRight` of a bound function - * 8 - `_.curry` - * 16 - `_.curryRight` - * 32 - `_.partial` - * 64 - `_.partialRight` - * 128 - `_.rearg` - * 256 - `_.ary` - * 512 - `_.flip` + * 1 - `bind` + * 2 - `bindKey` + * 4 - `curry` or `curryRight` of a bound function + * 8 - `curry` + * 16 - `curryRight` + * 32 - `partial` + * 64 - `partialRight` + * 128 - `rearg` + * 256 - `ary` + * 512 - `flip` * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to be partially applied. * @param {Array} [holders] The `partials` placeholder indexes. diff --git a/_customDefaultsAssignIn.js b/_customDefaultsAssignIn.js index f15495f72..c1ec7da40 100644 --- a/_customDefaultsAssignIn.js +++ b/_customDefaultsAssignIn.js @@ -7,7 +7,7 @@ const objectProto = Object.prototype; const hasOwnProperty = objectProto.hasOwnProperty; /** - * Used by `_.defaults` to customize its `_.assignIn` use to assign properties + * Used by `defaults` to customize its `assignIn` use to assign properties * of source objects to the destination object for all destination properties * that resolve to `undefined`. * diff --git a/_customDefaultsMerge.js b/_customDefaultsMerge.js index 63c21c88b..bc7003094 100644 --- a/_customDefaultsMerge.js +++ b/_customDefaultsMerge.js @@ -2,7 +2,7 @@ import baseMerge from './_baseMerge.js'; import isObject from './isObject.js'; /** - * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source + * Used by `defaultsDeep` to customize its `merge` use to merge source * objects into destination objects that are passed thru. * * @private diff --git a/_deburrLetter.js b/_deburrLetter.js index b89e776e3..3c16ecded 100644 --- a/_deburrLetter.js +++ b/_deburrLetter.js @@ -59,7 +59,7 @@ const deburredLetters = { }; /** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * Used by `deburr` to convert Latin-1 Supplement and Latin Extended-A * letters to basic Latin letters. * * @private diff --git a/_escapeHtmlChar.js b/_escapeHtmlChar.js index ab600d1db..853f07c40 100644 --- a/_escapeHtmlChar.js +++ b/_escapeHtmlChar.js @@ -10,7 +10,7 @@ const htmlEscapes = { }; /** - * Used by `_.escape` to convert characters to HTML entities. + * Used by `escape` to convert characters to HTML entities. * * @private * @param {string} chr The matched character to escape. diff --git a/_escapeStringChar.js b/_escapeStringChar.js index 80f1b1a66..6835aea72 100644 --- a/_escapeStringChar.js +++ b/_escapeStringChar.js @@ -9,7 +9,7 @@ const stringEscapes = { }; /** - * Used by `_.template` to escape characters for inclusion in compiled string literals. + * Used by `template` to escape characters for inclusion in compiled string literals. * * @private * @param {string} chr The matched character to escape. diff --git a/_memoizeCapped.js b/_memoizeCapped.js index 011716eb0..01fdca2aa 100644 --- a/_memoizeCapped.js +++ b/_memoizeCapped.js @@ -4,7 +4,7 @@ import memoize from './memoize.js'; const MAX_MEMOIZE_SIZE = 500; /** - * A specialized version of `_.memoize` which clears the memoized function's + * A specialized version of `memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private diff --git a/_mergeData.js b/_mergeData.js index 9829fe7fc..5ef15eb37 100644 --- a/_mergeData.js +++ b/_mergeData.js @@ -20,12 +20,12 @@ const nativeMin = Math.min; * Merges the function metadata of `source` into `data`. * * Merging metadata reduces the number of wrappers used to invoke a function. - * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` - * may be applied regardless of execution order. Methods like `_.ary` and - * `_.rearg` modify function arguments, making the order in which they are + * This is possible because methods like `bind`, `curry`, and `partial` + * may be applied regardless of execution order. Methods like `ary` and + * `rearg` modify function arguments, making the order in which they are * executed important, preventing the merging of metadata. However, we make - * an exception for a safe combined case where curried functions have `_.ary` - * and or `_.rearg` applied. + * an exception for a safe combined case where curried functions have `ary` + * and or `rearg` applied. * * @private * @param {Array} data The destination metadata. diff --git a/_setCacheAdd.js b/_setCacheAdd.js index 23065e878..e3fe0bbf9 100644 --- a/_setCacheAdd.js +++ b/_setCacheAdd.js @@ -12,7 +12,7 @@ const HASH_UNDEFINED = '__lodash_hash_undefined__'; * @returns {Object} Returns the cache instance. */ function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); + this.__data_set(value, HASH_UNDEFINED); return this; } diff --git a/_setCacheHas.js b/_setCacheHas.js index 67f4c8ae2..d394d6152 100644 --- a/_setCacheHas.js +++ b/_setCacheHas.js @@ -8,7 +8,7 @@ * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { - return this.__data__.has(value); + return this.__data_has(value); } export default setCacheHas; diff --git a/_shuffleSelf.js b/_shuffleSelf.js index 431dee6bd..811f4daad 100644 --- a/_shuffleSelf.js +++ b/_shuffleSelf.js @@ -1,7 +1,7 @@ import baseRandom from './_baseRandom.js'; /** - * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * A specialized version of `shuffle` which mutates and sets the size of `array`. * * @private * @param {Array} array The array to shuffle. diff --git a/_stackGet.js b/_stackGet.js index 139b9acc1..327f198a2 100644 --- a/_stackGet.js +++ b/_stackGet.js @@ -8,7 +8,7 @@ * @returns {*} Returns the entry value. */ function stackGet(key) { - return this.__data__.get(key); + return this.__data_get(key); } export default stackGet; diff --git a/_stackHas.js b/_stackHas.js index bc25f5a7e..78ff361f1 100644 --- a/_stackHas.js +++ b/_stackHas.js @@ -8,7 +8,7 @@ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { - return this.__data__.has(key); + return this.__data_has(key); } export default stackHas; diff --git a/_strictIndexOf.js b/_strictIndexOf.js index 6dd3b9791..705acf66d 100644 --- a/_strictIndexOf.js +++ b/_strictIndexOf.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.indexOf` which performs strict equality + * A specialized version of `indexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private diff --git a/_strictLastIndexOf.js b/_strictLastIndexOf.js index e2f38a428..64fbe3f18 100644 --- a/_strictLastIndexOf.js +++ b/_strictLastIndexOf.js @@ -1,5 +1,5 @@ /** - * A specialized version of `_.lastIndexOf` which performs strict equality + * A specialized version of `lastIndexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private diff --git a/_unescapeHtmlChar.js b/_unescapeHtmlChar.js index 1991b6246..24f191407 100644 --- a/_unescapeHtmlChar.js +++ b/_unescapeHtmlChar.js @@ -10,7 +10,7 @@ const htmlUnescapes = { }; /** - * Used by `_.unescape` to convert HTML entities to characters. + * Used by `unescape` to convert HTML entities to characters. * * @private * @param {string} chr The matched character to unescape. diff --git a/_updateWrapDetails.js b/_updateWrapDetails.js index 2dacc0b31..f6b986b6a 100644 --- a/_updateWrapDetails.js +++ b/_updateWrapDetails.js @@ -35,7 +35,7 @@ const wrapFlags = [ */ function updateWrapDetails(details, bitmask) { arrayEach(wrapFlags, pair => { - const value = `_.${ pair[0] }`; + const value = `${ pair[0] }`; if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { details.push(value); } diff --git a/add.js b/add.js index 4df7996c9..229af66dd 100644 --- a/add.js +++ b/add.js @@ -4,7 +4,6 @@ import createMathOperation from './_createMathOperation.js'; * Adds two numbers. * * @static - * @memberOf _ * @since 3.4.0 * @category Math * @param {number} augend The first number in an addition. @@ -12,7 +11,7 @@ import createMathOperation from './_createMathOperation.js'; * @returns {number} Returns the total. * @example * - * _.add(6, 4); + * add(6, 4); * // => 10 */ const add = createMathOperation((augend, addend) => augend + addend, 0); diff --git a/after.js b/after.js index b6b246160..01a312f22 100644 --- a/after.js +++ b/after.js @@ -4,11 +4,10 @@ import toInteger from './toInteger.js'; const FUNC_ERROR_TEXT = 'Expected a function'; /** - * The opposite of `_.before`; this method creates a function that invokes + * The opposite of `before`; this method creates a function that invokes * `func` once it's called `n` or more times. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {number} n The number of calls before `func` is invoked. @@ -18,11 +17,11 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * * var saves = ['profile', 'settings']; * - * var done = _.after(saves.length, function() { + * var done = after(saves.length, function() { * console.log('done saving!'); * }); * - * _.forEach(saves, function(type) { + * forEach(saves, function(type) { * asyncSave({ 'type': type, 'complete': done }); * }); * // => Logs 'done saving!' after the two async saves have completed. diff --git a/ary.js b/ary.js index 48b124ba4..639455b1b 100644 --- a/ary.js +++ b/ary.js @@ -8,16 +8,15 @@ const WRAP_ARY_FLAG = 128; * ignoring any additional arguments. * * @static - * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to cap arguments for. * @param {number} [n=func.length] The arity cap. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Function} Returns the new capped function. * @example * - * _.map(['6', '8', '10'], _.ary(parseInt, 1)); + * map(['6', '8', '10'], ary(parseInt, 1)); * // => [6, 8, 10] */ function ary(func, n, guard) { diff --git a/assignIn.js b/assignIn.js index 205004511..1a45071dd 100644 --- a/assignIn.js +++ b/assignIn.js @@ -3,20 +3,19 @@ import createAssigner from './_createAssigner.js'; import keysIn from './keysIn.js'; /** - * This method is like `_.assign` except that it iterates over own and + * This method is like `assign` except that it iterates over own and * inherited source properties. * * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 4.0.0 * @alias extend * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. - * @see _.assign + * @see assign * @example * * function Foo() { @@ -30,7 +29,7 @@ import keysIn from './keysIn.js'; * Foo.prototype.b = 2; * Bar.prototype.d = 4; * - * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * assignIn({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } */ const assignIn = createAssigner((object, source) => { diff --git a/assignInWith.js b/assignInWith.js index 5ca2b8577..73c52fe07 100644 --- a/assignInWith.js +++ b/assignInWith.js @@ -3,7 +3,7 @@ import createAssigner from './_createAssigner.js'; import keysIn from './keysIn.js'; /** - * This method is like `_.assignIn` except that it accepts `customizer` + * This method is like `assignIn` except that it accepts `customizer` * which is invoked to produce the assigned values. If `customizer` returns * `undefined`, assignment is handled by the method instead. The `customizer` * is invoked with five arguments: (objValue, srcValue, key, object, source). @@ -11,7 +11,6 @@ import keysIn from './keysIn.js'; * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 4.0.0 * @alias extendWith * @category Object @@ -19,14 +18,14 @@ import keysIn from './keysIn.js'; * @param {...Object} sources The source objects. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. - * @see _.assignWith + * @see assignWith * @example * * function customizer(objValue, srcValue) { - * return _.isUndefined(objValue) ? srcValue : objValue; + * return isUndefined(objValue) ? srcValue : objValue; * } * - * var defaults = _.partialRight(_.assignInWith, customizer); + * var defaults = partialRight(assignInWith, customizer); * * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } diff --git a/assignWith.js b/assignWith.js index 5cc76397a..c7665b4d0 100644 --- a/assignWith.js +++ b/assignWith.js @@ -3,7 +3,7 @@ import createAssigner from './_createAssigner.js'; import keys from './keys.js'; /** - * This method is like `_.assign` except that it accepts `customizer` + * This method is like `assign` except that it accepts `customizer` * which is invoked to produce the assigned values. If `customizer` returns * `undefined`, assignment is handled by the method instead. The `customizer` * is invoked with five arguments: (objValue, srcValue, key, object, source). @@ -11,21 +11,20 @@ import keys from './keys.js'; * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. - * @see _.assignInWith + * @see assignInWith * @example * * function customizer(objValue, srcValue) { - * return _.isUndefined(objValue) ? srcValue : objValue; + * return isUndefined(objValue) ? srcValue : objValue; * } * - * var defaults = _.partialRight(_.assignWith, customizer); + * var defaults = partialRight(assignWith, customizer); * * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } diff --git a/at.js b/at.js index 387ac1a46..6117bbcdf 100644 --- a/at.js +++ b/at.js @@ -4,7 +4,6 @@ import baseAt from './_baseAt.js'; * Creates an array of values corresponding to `paths` of `object`. * * @static - * @memberOf _ * @since 1.0.0 * @category Object * @param {Object} object The object to iterate over. @@ -14,7 +13,7 @@ import baseAt from './_baseAt.js'; * * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; * - * _.at(object, ['a[0].b.c', 'a[1]']); + * at(object, ['a[0].b.c', 'a[1]']); * // => [3, 4] */ function at(...paths) { diff --git a/attempt.js b/attempt.js index 6a39e99f0..81cee2e36 100644 --- a/attempt.js +++ b/attempt.js @@ -6,7 +6,6 @@ import isError from './isError.js'; * object. Any additional arguments are provided to `func` when it's invoked. * * @static - * @memberOf _ * @since 3.0.0 * @category Util * @param {Function} func The function to attempt. @@ -15,11 +14,11 @@ import isError from './isError.js'; * @example * * // Avoid throwing errors for invalid selectors. - * var elements = _.attempt(function(selector) { + * var elements = attempt(function(selector) { * return document.querySelectorAll(selector); * }, '>_>'); * - * if (_.isError(elements)) { + * if (isError(elements)) { * elements = []; * } */ diff --git a/before.js b/before.js index d4391c165..8bdb0e797 100644 --- a/before.js +++ b/before.js @@ -9,7 +9,6 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * calls to the created function return the result of the last `func` invocation. * * @static - * @memberOf _ * @since 3.0.0 * @category Function * @param {number} n The number of calls at which `func` is no longer invoked. @@ -17,7 +16,7 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * @returns {Function} Returns the new restricted function. * @example * - * jQuery(element).on('click', _.before(5, addContactToList)); + * jQuery(element).on('click', before(5, addContactToList)); * // => Allows adding up to 4 contacts to the list. */ function before(n, func) { diff --git a/bind.js b/bind.js index c7b6dea22..eda01542c 100644 --- a/bind.js +++ b/bind.js @@ -10,14 +10,13 @@ const WRAP_PARTIAL_FLAG = 32; * Creates a function that invokes `func` with the `this` binding of `thisArg` * and `partials` prepended to the arguments it receives. * - * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * The `bind.placeholder` value, which defaults to `_` in monolithic builds, * may be used as a placeholder for partially applied arguments. * * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" * property of bound functions. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to bind. @@ -32,12 +31,12 @@ const WRAP_PARTIAL_FLAG = 32; * * var object = { 'user': 'fred' }; * - * var bound = _.bind(greet, object, 'hi'); + * var bound = bind(greet, object, 'hi'); * bound('!'); * // => 'hi fred!' * * // Bound with placeholders. - * var bound = _.bind(greet, object, _, '!'); + * var bound = bind(greet, object, _, '!'); * bound('hi'); * // => 'hi fred!' */ diff --git a/bindAll.js b/bindAll.js index ba9f07f40..4e7d0f300 100644 --- a/bindAll.js +++ b/bindAll.js @@ -11,7 +11,6 @@ import toKey from './_toKey.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Util * @param {Object} object The object to bind and assign the bound methods to. * @param {...(string|string[])} methodNames The object method names to bind. @@ -25,7 +24,7 @@ import toKey from './_toKey.js'; * } * }; * - * _.bindAll(view, ['click']); + * bindAll(view, ['click']); * jQuery(element).on('click', view.click); * // => Logs 'clicked docs' when clicked. */ diff --git a/bindKey.js b/bindKey.js index ac9cec172..9d6a3be13 100644 --- a/bindKey.js +++ b/bindKey.js @@ -11,16 +11,15 @@ const WRAP_PARTIAL_FLAG = 32; * Creates a function that invokes the method at `object[key]` with `partials` * prepended to the arguments it receives. * - * This method differs from `_.bind` by allowing bound functions to reference + * This method differs from `bind` by allowing bound functions to reference * methods that may be redefined or don't yet exist. See * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) * for more details. * - * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic + * The `bindKey.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for partially applied arguments. * * @static - * @memberOf _ * @since 0.10.0 * @category Function * @param {Object} object The object to invoke the method on. @@ -36,7 +35,7 @@ const WRAP_PARTIAL_FLAG = 32; * } * }; * - * var bound = _.bindKey(object, 'greet', 'hi'); + * var bound = bindKey(object, 'greet', 'hi'); * bound('!'); * // => 'hi fred!' * @@ -48,7 +47,7 @@ const WRAP_PARTIAL_FLAG = 32; * // => 'hiya fred!' * * // Bound with placeholders. - * var bound = _.bindKey(object, 'greet', _, '!'); + * var bound = bindKey(object, 'greet', _, '!'); * bound('hi'); * // => 'hiya fred!' */ diff --git a/camelCase.js b/camelCase.js index ed00b9528..e2044b4b5 100644 --- a/camelCase.js +++ b/camelCase.js @@ -5,20 +5,19 @@ import createCompounder from './_createCompounder.js'; * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the camel cased string. * @example * - * _.camelCase('Foo Bar'); + * camelCase('Foo Bar'); * // => 'fooBar' * - * _.camelCase('--foo-bar--'); + * camelCase('--foo-bar--'); * // => 'fooBar' * - * _.camelCase('__FOO_BAR__'); + * camelCase('__FOO_BAR__'); * // => 'fooBar' */ const camelCase = createCompounder((result, word, index) => { diff --git a/capitalize.js b/capitalize.js index 557673b7f..683dd46f5 100644 --- a/capitalize.js +++ b/capitalize.js @@ -6,14 +6,13 @@ import upperFirst from './upperFirst.js'; * to lower case. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to capitalize. * @returns {string} Returns the capitalized string. * @example * - * _.capitalize('FRED'); + * capitalize('FRED'); * // => 'Fred' */ function capitalize(string) { diff --git a/castArray.js b/castArray.js index db52122a7..85579eb8b 100644 --- a/castArray.js +++ b/castArray.js @@ -4,33 +4,32 @@ import isArray from './isArray.js'; * Casts `value` as an array if it's not one. * * @static - * @memberOf _ * @since 4.4.0 * @category Lang * @param {*} value The value to inspect. * @returns {Array} Returns the cast array. * @example * - * _.castArray(1); + * castArray(1); * // => [1] * - * _.castArray({ 'a': 1 }); + * castArray({ 'a': 1 }); * // => [{ 'a': 1 }] * - * _.castArray('abc'); + * castArray('abc'); * // => ['abc'] * - * _.castArray(null); + * castArray(null); * // => [null] * - * _.castArray(undefined); + * castArray(undefined); * // => [undefined] * - * _.castArray(); + * castArray(); * // => [] * * var array = [1, 2, 3]; - * console.log(_.castArray(array) === array); + * console.log(castArray(array) === array); * // => true */ function castArray(...args) { diff --git a/ceil.js b/ceil.js index bd91b9db8..80bd88023 100644 --- a/ceil.js +++ b/ceil.js @@ -4,7 +4,6 @@ import createRound from './_createRound.js'; * Computes `number` rounded up to `precision`. * * @static - * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round up. @@ -12,13 +11,13 @@ import createRound from './_createRound.js'; * @returns {number} Returns the rounded up number. * @example * - * _.ceil(4.006); + * ceil(4.006); * // => 5 * - * _.ceil(6.004, 2); + * ceil(6.004, 2); * // => 6.01 * - * _.ceil(6040, -2); + * ceil(6040, -2); * // => 6100 */ const ceil = createRound('ceil'); diff --git a/chunk.js b/chunk.js index c240e3605..ef5e3ecc4 100644 --- a/chunk.js +++ b/chunk.js @@ -12,19 +12,18 @@ const nativeMax = Math.max; * elements. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to process. * @param {number} [size=1] The length of each chunk - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the new array of chunks. * @example * - * _.chunk(['a', 'b', 'c', 'd'], 2); + * chunk(['a', 'b', 'c', 'd'], 2); * // => [['a', 'b'], ['c', 'd']] * - * _.chunk(['a', 'b', 'c', 'd'], 3); + * chunk(['a', 'b', 'c', 'd'], 3); * // => [['a', 'b', 'c'], ['d']] */ function chunk(array, size, guard) { diff --git a/clamp.js b/clamp.js index fbb51164d..ff9017ca7 100644 --- a/clamp.js +++ b/clamp.js @@ -5,7 +5,6 @@ import toNumber from './toNumber.js'; * Clamps `number` within the inclusive `lower` and `upper` bounds. * * @static - * @memberOf _ * @since 4.0.0 * @category Number * @param {number} number The number to clamp. @@ -14,10 +13,10 @@ import toNumber from './toNumber.js'; * @returns {number} Returns the clamped number. * @example * - * _.clamp(-10, -5, 5); + * clamp(-10, -5, 5); * // => -5 * - * _.clamp(10, -5, 5); + * clamp(10, -5, 5); * // => 5 */ function clamp(number, lower, upper) { diff --git a/clone.js b/clone.js index 6efe5ac6f..47c4d8ab5 100644 --- a/clone.js +++ b/clone.js @@ -15,17 +15,16 @@ const CLONE_SYMBOLS_FLAG = 4; * as error objects, functions, DOM nodes, and WeakMaps. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to clone. * @returns {*} Returns the cloned value. - * @see _.cloneDeep + * @see cloneDeep * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * - * var shallow = _.clone(objects); + * var shallow = clone(objects); * console.log(shallow[0] === objects[0]); * // => true */ diff --git a/cloneDeep.js b/cloneDeep.js index c124cb7fe..79ce0814e 100644 --- a/cloneDeep.js +++ b/cloneDeep.js @@ -5,20 +5,19 @@ const CLONE_DEEP_FLAG = 1; const CLONE_SYMBOLS_FLAG = 4; /** - * This method is like `_.clone` except that it recursively clones `value`. + * This method is like `clone` except that it recursively clones `value`. * * @static - * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. - * @see _.clone + * @see clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * - * var deep = _.cloneDeep(objects); + * var deep = cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ diff --git a/cloneDeepWith.js b/cloneDeepWith.js index 45373861f..e06076444 100644 --- a/cloneDeepWith.js +++ b/cloneDeepWith.js @@ -5,25 +5,24 @@ const CLONE_DEEP_FLAG = 1; const CLONE_SYMBOLS_FLAG = 4; /** - * This method is like `_.cloneWith` except that it recursively clones `value`. + * This method is like `cloneWith` except that it recursively clones `value`. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to recursively clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} Returns the deep cloned value. - * @see _.cloneWith + * @see cloneWith * @example * * function customizer(value) { - * if (_.isElement(value)) { + * if (isElement(value)) { * return value.cloneNode(true); * } * } * - * var el = _.cloneDeepWith(document.body, customizer); + * var el = cloneDeepWith(document.body, customizer); * * console.log(el === document.body); * // => false diff --git a/cloneWith.js b/cloneWith.js index 326a3d2a4..b0464638a 100644 --- a/cloneWith.js +++ b/cloneWith.js @@ -4,28 +4,27 @@ import baseClone from './_baseClone.js'; const CLONE_SYMBOLS_FLAG = 4; /** - * This method is like `_.clone` except that it accepts `customizer` which + * This method is like `clone` except that it accepts `customizer` which * is invoked to produce the cloned value. If `customizer` returns `undefined`, * cloning is handled by the method instead. The `customizer` is invoked with * up to four arguments; (value [, index|key, object, stack]). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} Returns the cloned value. - * @see _.cloneDeepWith + * @see cloneDeepWith * @example * * function customizer(value) { - * if (_.isElement(value)) { + * if (isElement(value)) { * return value.cloneNode(false); * } * } * - * var el = _.cloneWith(document.body, customizer); + * var el = cloneWith(document.body, customizer); * * console.log(el === document.body); * // => false diff --git a/compact.js b/compact.js index d6596680b..de3f75925 100644 --- a/compact.js +++ b/compact.js @@ -3,14 +3,13 @@ * `0`, `""`, `undefined`, and `NaN` are falsey. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to compact. * @returns {Array} Returns the new array of filtered values. * @example * - * _.compact([0, 1, false, 2, '', 3]); + * compact([0, 1, false, 2, '', 3]); * // => [1, 2, 3] */ function compact(array) { diff --git a/concat.js b/concat.js index b1cff51e9..70dfa769d 100644 --- a/concat.js +++ b/concat.js @@ -8,7 +8,6 @@ import isArray from './isArray.js'; * and/or values. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to concatenate. @@ -17,7 +16,7 @@ import isArray from './isArray.js'; * @example * * var array = [1]; - * var other = _.concat(array, 2, [3], [[4]]); + * var other = concat(array, 2, [3], [[4]]); * * console.log(other); * // => [1, 2, 3, [4]] diff --git a/cond.js b/cond.js index 00f217d25..03545f077 100644 --- a/cond.js +++ b/cond.js @@ -11,17 +11,16 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * function. * * @static - * @memberOf _ * @since 4.0.0 * @category Util * @param {Array} pairs The predicate-function pairs. * @returns {Function} Returns the new composite function. * @example * - * var func = _.cond([ - * [_.matches({ 'a': 1 }), _.constant('matches A')], - * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], - * [_.stubTrue, _.constant('no match')] + * var func = cond([ + * [matches({ 'a': 1 }), constant('matches A')], + * [conforms({ 'b': isNumber }), constant('matches B')], + * [stubTrue, constant('no match')] * ]); * * func({ 'a': 1, 'b': 2 }); diff --git a/conforms.js b/conforms.js index 8cdf350ce..5fd1a6bc8 100644 --- a/conforms.js +++ b/conforms.js @@ -9,11 +9,10 @@ const CLONE_DEEP_FLAG = 1; * the corresponding property values of a given object, returning `true` if * all predicates return truthy, else `false`. * - * **Note:** The created function is equivalent to `_.conformsTo` with + * **Note:** The created function is equivalent to `conformsTo` with * `source` partially applied. * * @static - * @memberOf _ * @since 4.0.0 * @category Util * @param {Object} source The object of property predicates to conform to. @@ -25,7 +24,7 @@ const CLONE_DEEP_FLAG = 1; * { 'a': 1, 'b': 2 } * ]; * - * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } })); + * filter(objects, conforms({ 'b': function(n) { return n > 1; } })); * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { diff --git a/conformsTo.js b/conformsTo.js index 6f011ba93..0ddb91eb9 100644 --- a/conformsTo.js +++ b/conformsTo.js @@ -5,11 +5,10 @@ import keys from './keys.js'; * Checks if `object` conforms to `source` by invoking the predicate * properties of `source` with the corresponding property values of `object`. * - * **Note:** This method is equivalent to `_.conforms` when `source` is + * **Note:** This method is equivalent to `conforms` when `source` is * partially applied. * * @static - * @memberOf _ * @since 4.14.0 * @category Lang * @param {Object} object The object to inspect. @@ -19,10 +18,10 @@ import keys from './keys.js'; * * var object = { 'a': 1, 'b': 2 }; * - * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * conformsTo(object, { 'b': function(n) { return n > 1; } }); * // => true * - * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * conformsTo(object, { 'b': function(n) { return n > 2; } }); * // => false */ function conformsTo(object, source) { diff --git a/constant.js b/constant.js index 885f1c22c..02fa196fc 100644 --- a/constant.js +++ b/constant.js @@ -2,14 +2,13 @@ * Creates a function that returns `value`. * * @static - * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * - * var objects = _.times(2, _.constant({ 'a': 1 })); + * var objects = times(2, constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] diff --git a/countBy.js b/countBy.js index 66f198e35..d308cd153 100644 --- a/countBy.js +++ b/countBy.js @@ -14,7 +14,6 @@ const hasOwnProperty = objectProto.hasOwnProperty; * iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -22,7 +21,7 @@ const hasOwnProperty = objectProto.hasOwnProperty; * @returns {Object} Returns the composed aggregate object. * @example * - * _.countBy([6.1, 4.2, 6.3], Math.floor); + * countBy([6.1, 4.2, 6.3], Math.floor); * // => { '4': 1, '6': 2 } */ const countBy = createAggregator((result, value, key) => { diff --git a/create.js b/create.js index 5585d35e3..d1ba8d4a6 100644 --- a/create.js +++ b/create.js @@ -7,7 +7,6 @@ import baseCreate from './_baseCreate.js'; * are assigned to the created object. * * @static - * @memberOf _ * @since 2.3.0 * @category Object * @param {Object} prototype The object to inherit from. @@ -24,7 +23,7 @@ import baseCreate from './_baseCreate.js'; * Shape.call(this); * } * - * Circle.prototype = _.create(Shape.prototype, { + * Circle.prototype = create(Shape.prototype, { * 'constructor': Circle * }); * diff --git a/curry.js b/curry.js index 45bec872f..78608ff5e 100644 --- a/curry.js +++ b/curry.js @@ -10,18 +10,17 @@ const WRAP_CURRY_FLAG = 8; * arguments, and so on. The arity of `func` may be specified if `func.length` * is not sufficient. * - * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, + * The `curry.placeholder` value, which defaults to `_` in monolithic builds, * may be used as a placeholder for provided arguments. * * **Note:** This method doesn't set the "length" property of curried functions. * * @static - * @memberOf _ * @since 2.0.0 * @category Function * @param {Function} func The function to curry. * @param {number} [arity=func.length] The arity of `func`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Function} Returns the new curried function. * @example * @@ -29,7 +28,7 @@ const WRAP_CURRY_FLAG = 8; * return [a, b, c]; * }; * - * var curried = _.curry(abc); + * var curried = curry(abc); * * curried(1)(2)(3); * // => [1, 2, 3] diff --git a/curryRight.js b/curryRight.js index 99e30f6ff..fc277ac28 100644 --- a/curryRight.js +++ b/curryRight.js @@ -4,21 +4,20 @@ import createWrap from './_createWrap.js'; const WRAP_CURRY_RIGHT_FLAG = 16; /** - * This method is like `_.curry` except that arguments are applied to `func` - * in the manner of `_.partialRight` instead of `_.partial`. + * This method is like `curry` except that arguments are applied to `func` + * in the manner of `partialRight` instead of `partial`. * - * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic + * The `curryRight.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for provided arguments. * * **Note:** This method doesn't set the "length" property of curried functions. * * @static - * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to curry. * @param {number} [arity=func.length] The arity of `func`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Function} Returns the new curried function. * @example * @@ -26,7 +25,7 @@ const WRAP_CURRY_RIGHT_FLAG = 16; * return [a, b, c]; * }; * - * var curried = _.curryRight(abc); + * var curried = curryRight(abc); * * curried(3)(2)(1); * // => [1, 2, 3] diff --git a/debounce.js b/debounce.js index 222a1e6ad..9949f17d3 100644 --- a/debounce.js +++ b/debounce.js @@ -28,10 +28,9 @@ const nativeMin = Math.min; * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) - * for details over the differences between `_.debounce` and `_.throttle`. + * for details over the differences between `debounce` and `throttle`. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to debounce. @@ -47,16 +46,16 @@ const nativeMin = Math.min; * @example * * // Avoid costly calculations while the window size is in flux. - * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * jQuery(window).on('resize', debounce(calculateLayout, 150)); * * // Invoke `sendMail` when clicked, debouncing subsequent calls. - * jQuery(element).on('click', _.debounce(sendMail, 300, { + * jQuery(element).on('click', debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * })); * * // Ensure `batchLog` is invoked once after 1 second of debounced calls. - * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var debounced = debounce(batchLog, 250, { 'maxWait': 1000 }); * var source = new EventSource('/stream'); * jQuery(source).on('message', debounced); * diff --git a/deburr.js b/deburr.js index 636fc4739..dc0618149 100644 --- a/deburr.js +++ b/deburr.js @@ -27,14 +27,13 @@ const reComboMark = RegExp(rsCombo, 'g'); * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to deburr. * @returns {string} Returns the deburred string. * @example * - * _.deburr('déjà vu'); + * deburr('déjà vu'); * // => 'deja vu' */ function deburr(string) { diff --git a/defaultTo.js b/defaultTo.js index 2fafeacb5..5151f548a 100644 --- a/defaultTo.js +++ b/defaultTo.js @@ -4,7 +4,6 @@ * or `undefined`. * * @static - * @memberOf _ * @since 4.14.0 * @category Util * @param {*} value The value to check. @@ -12,10 +11,10 @@ * @returns {*} Returns the resolved value. * @example * - * _.defaultTo(1, 10); + * defaultTo(1, 10); * // => 1 * - * _.defaultTo(undefined, 10); + * defaultTo(undefined, 10); * // => 10 */ function defaultTo(value, defaultValue) { diff --git a/defaults.js b/defaults.js index 1e41a4750..aebead2bd 100644 --- a/defaults.js +++ b/defaults.js @@ -12,15 +12,14 @@ import customDefaultsAssignIn from './_customDefaultsAssignIn.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. - * @see _.defaultsDeep + * @see defaultsDeep * @example * - * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } */ function defaults(...args) { diff --git a/defaultsDeep.js b/defaultsDeep.js index 6ca434407..97e8b3d3b 100644 --- a/defaultsDeep.js +++ b/defaultsDeep.js @@ -3,22 +3,21 @@ import customDefaultsMerge from './_customDefaultsMerge.js'; import mergeWith from './mergeWith.js'; /** - * This method is like `_.defaults` except that it recursively assigns + * This method is like `defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. - * @see _.defaults + * @see defaults * @example * - * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); + * defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ function defaultsDeep(...args) { diff --git a/defer.js b/defer.js index e08dece0f..353898f6d 100644 --- a/defer.js +++ b/defer.js @@ -5,7 +5,6 @@ import baseDelay from './_baseDelay.js'; * additional arguments are provided to `func` when it's invoked. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to defer. @@ -13,7 +12,7 @@ import baseDelay from './_baseDelay.js'; * @returns {number} Returns the timer id. * @example * - * _.defer(function(text) { + * defer(function(text) { * console.log(text); * }, 'deferred'); * // => Logs 'deferred' after one millisecond. diff --git a/delay.js b/delay.js index 9356a90b8..3de92ef9d 100644 --- a/delay.js +++ b/delay.js @@ -6,7 +6,6 @@ import toNumber from './toNumber.js'; * provided to `func` when it's invoked. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to delay. @@ -15,7 +14,7 @@ import toNumber from './toNumber.js'; * @returns {number} Returns the timer id. * @example * - * _.delay(function(text) { + * delay(function(text) { * console.log(text); * }, 1000, 'later'); * // => Logs 'later' after one second. diff --git a/difference.js b/difference.js index 49547686e..9335c16f4 100644 --- a/difference.js +++ b/difference.js @@ -8,19 +8,18 @@ import isArrayLikeObject from './isArrayLikeObject.js'; * for equality comparisons. The order and references of result values are * determined by the first array. * - * **Note:** Unlike `_.pullAll`, this method returns a new array. + * **Note:** Unlike `pullAll`, this method returns a new array. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. - * @see _.without, _.xor + * @see without, xor * @example * - * _.difference([2, 1], [2, 3]); + * difference([2, 1], [2, 3]); * // => [1] */ function difference(array, ...values) { diff --git a/differenceBy.js b/differenceBy.js index 28a9ae20f..bc0e54cf6 100644 --- a/differenceBy.js +++ b/differenceBy.js @@ -4,16 +4,15 @@ import isArrayLikeObject from './isArrayLikeObject.js'; import last from './last.js'; /** - * This method is like `_.difference` except that it accepts `iteratee` which + * This method is like `difference` except that it accepts `iteratee` which * is invoked for each element of `array` and `values` to generate the criterion * by which they're compared. The order and references of result values are * determined by the first array. The iteratee is invoked with one argument: * (value). * - * **Note:** Unlike `_.pullAllBy`, this method returns a new array. + * **Note:** Unlike `pullAllBy`, this method returns a new array. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. @@ -22,7 +21,7 @@ import last from './last.js'; * @returns {Array} Returns the new array of filtered values. * @example * - * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [1.2] */ function differenceBy(array, ...values) { diff --git a/differenceWith.js b/differenceWith.js index 0cd048c77..97651ec95 100644 --- a/differenceWith.js +++ b/differenceWith.js @@ -4,15 +4,14 @@ import isArrayLikeObject from './isArrayLikeObject.js'; import last from './last.js'; /** - * This method is like `_.difference` except that it accepts `comparator` + * This method is like `difference` except that it accepts `comparator` * which is invoked to compare elements of `array` to `values`. The order and * references of result values are determined by the first array. The comparator * is invoked with two arguments: (arrVal, othVal). * - * **Note:** Unlike `_.pullAllWith`, this method returns a new array. + * **Note:** Unlike `pullAllWith`, this method returns a new array. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. @@ -23,7 +22,7 @@ import last from './last.js'; * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * - * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * differenceWith(objects, [{ 'x': 1, 'y': 2 }], isEqual); * // => [{ 'x': 2, 'y': 1 }] */ function differenceWith(array, ...values) { diff --git a/divide.js b/divide.js index b86a6acea..354b30d85 100644 --- a/divide.js +++ b/divide.js @@ -4,7 +4,6 @@ import createMathOperation from './_createMathOperation.js'; * Divide two numbers. * * @static - * @memberOf _ * @since 4.7.0 * @category Math * @param {number} dividend The first number in a division. @@ -12,7 +11,7 @@ import createMathOperation from './_createMathOperation.js'; * @returns {number} Returns the quotient. * @example * - * _.divide(6, 4); + * divide(6, 4); * // => 1.5 */ const divide = createMathOperation((dividend, divisor) => dividend / divisor, 1); diff --git a/drop.js b/drop.js index 26c430a7e..1deb75584 100644 --- a/drop.js +++ b/drop.js @@ -5,25 +5,24 @@ import toInteger from './toInteger.js'; * Creates a slice of `array` with `n` elements dropped from the beginning. * * @static - * @memberOf _ * @since 0.5.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to drop. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the slice of `array`. * @example * - * _.drop([1, 2, 3]); + * drop([1, 2, 3]); * // => [2, 3] * - * _.drop([1, 2, 3], 2); + * drop([1, 2, 3], 2); * // => [3] * - * _.drop([1, 2, 3], 5); + * drop([1, 2, 3], 5); * // => [] * - * _.drop([1, 2, 3], 0); + * drop([1, 2, 3], 0); * // => [1, 2, 3] */ function drop(array, n, guard) { diff --git a/dropRight.js b/dropRight.js index 1814fda48..766cd9322 100644 --- a/dropRight.js +++ b/dropRight.js @@ -5,25 +5,24 @@ import toInteger from './toInteger.js'; * Creates a slice of `array` with `n` elements dropped from the end. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to drop. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the slice of `array`. * @example * - * _.dropRight([1, 2, 3]); + * dropRight([1, 2, 3]); * // => [1, 2] * - * _.dropRight([1, 2, 3], 2); + * dropRight([1, 2, 3], 2); * // => [1] * - * _.dropRight([1, 2, 3], 5); + * dropRight([1, 2, 3], 5); * // => [] * - * _.dropRight([1, 2, 3], 0); + * dropRight([1, 2, 3], 0); * // => [1, 2, 3] */ function dropRight(array, n, guard) { diff --git a/dropRightWhile.js b/dropRightWhile.js index 8d9814f59..770fb1ed5 100644 --- a/dropRightWhile.js +++ b/dropRightWhile.js @@ -6,7 +6,6 @@ import baseWhile from './_baseWhile.js'; * invoked with three arguments: (value, index, array). * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. @@ -20,7 +19,7 @@ import baseWhile from './_baseWhile.js'; * { 'user': 'pebbles', 'active': false } * ]; * - * _.dropRightWhile(users, function(o) { return !o.active; }); + * dropRightWhile(users, function(o) { return !o.active; }); * // => objects for ['barney'] */ function dropRightWhile(array, predicate) { diff --git a/dropWhile.js b/dropWhile.js index 62d058f31..c8738ff32 100644 --- a/dropWhile.js +++ b/dropWhile.js @@ -6,7 +6,6 @@ import baseWhile from './_baseWhile.js'; * invoked with three arguments: (value, index, array). * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. @@ -20,7 +19,7 @@ import baseWhile from './_baseWhile.js'; * { 'user': 'pebbles', 'active': true } * ]; * - * _.dropWhile(users, function(o) { return !o.active; }); + * dropWhile(users, function(o) { return !o.active; }); * // => objects for ['pebbles'] */ function dropWhile(array, predicate) { diff --git a/endsWith.js b/endsWith.js index c3dba1628..75f532b99 100644 --- a/endsWith.js +++ b/endsWith.js @@ -7,7 +7,6 @@ import toString from './toString.js'; * Checks if `string` ends with the given target string. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. @@ -17,13 +16,13 @@ import toString from './toString.js'; * else `false`. * @example * - * _.endsWith('abc', 'c'); + * endsWith('abc', 'c'); * // => true * - * _.endsWith('abc', 'b'); + * endsWith('abc', 'b'); * // => false * - * _.endsWith('abc', 'b', 2); + * endsWith('abc', 'b', 2); * // => true */ function endsWith(string, target, position) { diff --git a/eq.js b/eq.js index c3206c684..27e274678 100644 --- a/eq.js +++ b/eq.js @@ -4,7 +4,6 @@ * comparison between two values to determine if they are equivalent. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. @@ -15,19 +14,19 @@ * var object = { 'a': 1 }; * var other = { 'a': 1 }; * - * _.eq(object, object); + * eq(object, object); * // => true * - * _.eq(object, other); + * eq(object, other); * // => false * - * _.eq('a', 'a'); + * eq('a', 'a'); * // => true * - * _.eq('a', Object('a')); + * eq('a', Object('a')); * // => false * - * _.eq(NaN, NaN); + * eq(NaN, NaN); * // => true */ function eq(value, other) { diff --git a/escape.js b/escape.js index e0219fee8..0b7882833 100644 --- a/escape.js +++ b/escape.js @@ -24,13 +24,12 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source); * * @static * @since 0.1.0 - * @memberOf _ * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns the escaped string. * @example * - * _.escape('fred, barney, & pebbles'); + * escape('fred, barney, & pebbles'); * // => 'fred, barney, & pebbles' */ function escape(string) { diff --git a/escapeRegExp.js b/escapeRegExp.js index 6021a2181..fb77310d8 100644 --- a/escapeRegExp.js +++ b/escapeRegExp.js @@ -12,14 +12,13 @@ const reHasRegExpChar = RegExp(reRegExpChar.source); * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns the escaped string. * @example * - * _.escapeRegExp('[lodash](https://lodash.com/)'); + * escapeRegExp('[lodash](https://lodash.com/)'); * // => '\[lodash\]\(https://lodash\.com/\)' */ function escapeRegExp(string) { diff --git a/every.js b/every.js index 1cc28cde7..b683d1624 100644 --- a/every.js +++ b/every.js @@ -14,17 +14,16 @@ import isIterateeCall from './_isIterateeCall.js'; * elements of empty collections. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. * @example * - * _.every([true, 1, null, 'yes'], Boolean); + * every([true, 1, null, 'yes'], Boolean); * // => false */ function every(collection, predicate, guard) { diff --git a/fill.js b/fill.js index 11fa6af52..e9b8c777e 100644 --- a/fill.js +++ b/fill.js @@ -8,7 +8,6 @@ import isIterateeCall from './_isIterateeCall.js'; * **Note:** This method mutates `array`. * * @static - * @memberOf _ * @since 3.2.0 * @category Array * @param {Array} array The array to fill. @@ -20,14 +19,14 @@ import isIterateeCall from './_isIterateeCall.js'; * * var array = [1, 2, 3]; * - * _.fill(array, 'a'); + * fill(array, 'a'); * console.log(array); * // => ['a', 'a', 'a'] * - * _.fill(Array(3), 2); + * fill(Array(3), 2); * // => [2, 2, 2] * - * _.fill([4, 6, 8, 10], '*', 1, 3); + * fill([4, 6, 8, 10], '*', 1, 3); * // => [4, '*', '*', 10] */ function fill(array, value, start, end) { diff --git a/filter.js b/filter.js index fc5aa3d93..556bf82d8 100644 --- a/filter.js +++ b/filter.js @@ -7,16 +7,15 @@ import isArray from './isArray.js'; * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * - * **Note:** Unlike `_.remove`, this method returns a new array. + * **Note:** Unlike `remove`, this method returns a new array. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. - * @see _.reject + * @see reject * @example * * var users = [ @@ -24,7 +23,7 @@ import isArray from './isArray.js'; * { 'user': 'fred', 'age': 40, 'active': false } * ]; * - * _.filter(users, function(o) { return !o.active; }); + * filter(users, function(o) { return !o.active; }); * // => objects for ['fred'] */ function filter(collection, predicate) { diff --git a/find.js b/find.js index 42767ba28..c6bababad 100644 --- a/find.js +++ b/find.js @@ -7,7 +7,6 @@ import findIndex from './findIndex.js'; * arguments: (value, index|key, collection). * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. @@ -22,7 +21,7 @@ import findIndex from './findIndex.js'; * { 'user': 'pebbles', 'age': 1, 'active': true } * ]; * - * _.find(users, function(o) { return o.age < 40; }); + * find(users, function(o) { return o.age < 40; }); * // => object for 'barney' */ const find = createFind(findIndex); diff --git a/findIndex.js b/findIndex.js index 2223959f9..471766ea2 100644 --- a/findIndex.js +++ b/findIndex.js @@ -5,11 +5,10 @@ import toInteger from './toInteger.js'; const nativeMax = Math.max; /** - * This method is like `_.find` except that it returns the index of the first + * This method is like `find` except that it returns the index of the first * element `predicate` returns truthy for instead of the element itself. * * @static - * @memberOf _ * @since 1.1.0 * @category Array * @param {Array} array The array to inspect. @@ -24,7 +23,7 @@ const nativeMax = Math.max; * { 'user': 'pebbles', 'active': true } * ]; * - * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * findIndex(users, function(o) { return o.user == 'barney'; }); * // => 0 */ function findIndex(array, predicate, fromIndex) { diff --git a/findKey.js b/findKey.js index caf489712..7308c8d8f 100644 --- a/findKey.js +++ b/findKey.js @@ -2,11 +2,10 @@ import baseFindKey from './_baseFindKey.js'; import baseForOwn from './_baseForOwn.js'; /** - * This method is like `_.find` except that it returns the key of the first + * This method is like `find` except that it returns the key of the first * element `predicate` returns truthy for instead of the element itself. * * @static - * @memberOf _ * @since 1.1.0 * @category Object * @param {Object} object The object to inspect. @@ -21,7 +20,7 @@ import baseForOwn from './_baseForOwn.js'; * 'pebbles': { 'age': 1, 'active': true } * }; * - * _.findKey(users, function(o) { return o.age < 40; }); + * findKey(users, function(o) { return o.age < 40; }); * // => 'barney' (iteration order is not guaranteed) */ function findKey(object, predicate) { diff --git a/findLast.js b/findLast.js index b80f36e1f..1e216eaa6 100644 --- a/findLast.js +++ b/findLast.js @@ -2,11 +2,10 @@ import createFind from './_createFind.js'; import findLastIndex from './findLastIndex.js'; /** - * This method is like `_.find` except that it iterates over elements of + * This method is like `find` except that it iterates over elements of * `collection` from right to left. * * @static - * @memberOf _ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to inspect. @@ -15,7 +14,7 @@ import findLastIndex from './findLastIndex.js'; * @returns {*} Returns the matched element, else `undefined`. * @example * - * _.findLast([1, 2, 3, 4], function(n) { + * findLast([1, 2, 3, 4], function(n) { * return n % 2 == 1; * }); * // => 3 diff --git a/findLastIndex.js b/findLastIndex.js index 877dd3e29..72add09a6 100644 --- a/findLastIndex.js +++ b/findLastIndex.js @@ -6,11 +6,10 @@ const nativeMax = Math.max; const nativeMin = Math.min; /** - * This method is like `_.findIndex` except that it iterates over elements + * This method is like `findIndex` except that it iterates over elements * of `collection` from right to left. * * @static - * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to inspect. @@ -25,7 +24,7 @@ const nativeMin = Math.min; * { 'user': 'pebbles', 'active': false } * ]; * - * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); + * findLastIndex(users, function(o) { return o.user == 'pebbles'; }); * // => 2 */ function findLastIndex(array, predicate, fromIndex) { diff --git a/findLastKey.js b/findLastKey.js index 95022ffd6..37e72d6a7 100644 --- a/findLastKey.js +++ b/findLastKey.js @@ -2,11 +2,10 @@ import baseFindKey from './_baseFindKey.js'; import baseForOwnRight from './_baseForOwnRight.js'; /** - * This method is like `_.findKey` except that it iterates over elements of + * This method is like `findKey` except that it iterates over elements of * a collection in the opposite order. * * @static - * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to inspect. @@ -21,8 +20,8 @@ import baseForOwnRight from './_baseForOwnRight.js'; * 'pebbles': { 'age': 1, 'active': true } * }; * - * _.findLastKey(users, function(o) { return o.age < 40; }); - * // => returns 'pebbles' assuming `_.findKey` returns 'barney' + * findLastKey(users, function(o) { return o.age < 40; }); + * // => returns 'pebbles' assuming `findKey` returns 'barney' */ function findLastKey(object, predicate) { return baseFindKey(object, predicate, baseForOwnRight); diff --git a/flatMap.js b/flatMap.js index 8e6b56643..b68c38187 100644 --- a/flatMap.js +++ b/flatMap.js @@ -7,7 +7,6 @@ import map from './map.js'; * with three arguments: (value, index|key, collection). * * @static - * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -19,7 +18,7 @@ import map from './map.js'; * return [n, n]; * } * - * _.flatMap([1, 2], duplicate); + * flatMap([1, 2], duplicate); * // => [1, 1, 2, 2] */ function flatMap(collection, iteratee) { diff --git a/flatMapDeep.js b/flatMapDeep.js index 3e292a4b1..6cadcae2c 100644 --- a/flatMapDeep.js +++ b/flatMapDeep.js @@ -5,11 +5,10 @@ import map from './map.js'; const INFINITY = 1 / 0; /** - * This method is like `_.flatMap` except that it recursively flattens the + * This method is like `flatMap` except that it recursively flattens the * mapped results. * * @static - * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -21,7 +20,7 @@ const INFINITY = 1 / 0; * return [[[n, n]]]; * } * - * _.flatMapDeep([1, 2], duplicate); + * flatMapDeep([1, 2], duplicate); * // => [1, 1, 2, 2] */ function flatMapDeep(collection, iteratee) { diff --git a/flatMapDepth.js b/flatMapDepth.js index 6200b6bd1..05b86a4b1 100644 --- a/flatMapDepth.js +++ b/flatMapDepth.js @@ -3,11 +3,10 @@ import map from './map.js'; import toInteger from './toInteger.js'; /** - * This method is like `_.flatMap` except that it recursively flattens the + * This method is like `flatMap` except that it recursively flattens the * mapped results up to `depth` times. * * @static - * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -20,7 +19,7 @@ import toInteger from './toInteger.js'; * return [[[n, n]]]; * } * - * _.flatMapDepth([1, 2], duplicate, 2); + * flatMapDepth([1, 2], duplicate, 2); * // => [[1, 1], [2, 2]] */ function flatMapDepth(collection, iteratee, depth) { diff --git a/flatten.js b/flatten.js index 2ed713269..83879f321 100644 --- a/flatten.js +++ b/flatten.js @@ -4,14 +4,13 @@ import baseFlatten from './_baseFlatten.js'; * Flattens `array` a single level deep. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * - * _.flatten([1, [2, [3, [4]], 5]]); + * flatten([1, [2, [3, [4]], 5]]); * // => [1, 2, [3, [4]], 5] */ function flatten(array) { diff --git a/flattenDeep.js b/flattenDeep.js index 29dd5a401..837756360 100644 --- a/flattenDeep.js +++ b/flattenDeep.js @@ -7,14 +7,13 @@ const INFINITY = 1 / 0; * Recursively flattens `array`. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * - * _.flattenDeep([1, [2, [3, [4]], 5]]); + * flattenDeep([1, [2, [3, [4]], 5]]); * // => [1, 2, 3, 4, 5] */ function flattenDeep(array) { diff --git a/flattenDepth.js b/flattenDepth.js index 62fcccfd6..35530b3a2 100644 --- a/flattenDepth.js +++ b/flattenDepth.js @@ -5,7 +5,6 @@ import toInteger from './toInteger.js'; * Recursively flatten `array` up to `depth` times. * * @static - * @memberOf _ * @since 4.4.0 * @category Array * @param {Array} array The array to flatten. @@ -15,10 +14,10 @@ import toInteger from './toInteger.js'; * * var array = [1, [2, [3, [4]], 5]]; * - * _.flattenDepth(array, 1); + * flattenDepth(array, 1); * // => [1, 2, [3, [4]], 5] * - * _.flattenDepth(array, 2); + * flattenDepth(array, 2); * // => [1, 2, 3, [4], 5] */ function flattenDepth(array, depth) { diff --git a/flip.js b/flip.js index fa520e5b1..2c24c3783 100644 --- a/flip.js +++ b/flip.js @@ -7,15 +7,14 @@ const WRAP_FLIP_FLAG = 512; * Creates a function that invokes `func` with arguments reversed. * * @static - * @memberOf _ * @since 4.0.0 * @category Function * @param {Function} func The function to flip arguments for. * @returns {Function} Returns the new flipped function. * @example * - * var flipped = _.flip(function() { - * return _.toArray(arguments); + * var flipped = flip(function() { + * return toArray(arguments); * }); * * flipped('a', 'b', 'c', 'd'); diff --git a/floor.js b/floor.js index 56ae18d9f..1b73145af 100644 --- a/floor.js +++ b/floor.js @@ -4,7 +4,6 @@ import createRound from './_createRound.js'; * Computes `number` rounded down to `precision`. * * @static - * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round down. @@ -12,13 +11,13 @@ import createRound from './_createRound.js'; * @returns {number} Returns the rounded down number. * @example * - * _.floor(4.006); + * floor(4.006); * // => 4 * - * _.floor(0.046, 2); + * floor(0.046, 2); * // => 0.04 * - * _.floor(4060, -2); + * floor(4060, -2); * // => 4000 */ const floor = createRound('floor'); diff --git a/flow.js b/flow.js index 3c87a8774..61168a7c7 100644 --- a/flow.js +++ b/flow.js @@ -6,19 +6,18 @@ import createFlow from './_createFlow.js'; * invocation is supplied the return value of the previous. * * @static - * @memberOf _ * @since 3.0.0 * @category Util * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. - * @see _.flowRight + * @see flowRight * @example * * function square(n) { * return n * n; * } * - * var addSquare = _.flow([_.add, square]); + * var addSquare = flow([add, square]); * addSquare(1, 2); * // => 9 */ diff --git a/flowRight.js b/flowRight.js index a69c06852..ae4f7a796 100644 --- a/flowRight.js +++ b/flowRight.js @@ -1,23 +1,22 @@ import createFlow from './_createFlow.js'; /** - * This method is like `_.flow` except that it creates a function that + * This method is like `flow` except that it creates a function that * invokes the given functions from right to left. * * @static * @since 3.0.0 - * @memberOf _ * @category Util * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. - * @see _.flow + * @see flow * @example * * function square(n) { * return n * n; * } * - * var addSquare = _.flowRight([square, _.add]); + * var addSquare = flowRight([square, add]); * addSquare(1, 2); * // => 9 */ diff --git a/forEach.js b/forEach.js index 19fe274f0..5df13d1c7 100644 --- a/forEach.js +++ b/forEach.js @@ -8,26 +8,25 @@ import isArray from './isArray.js'; * Iteratee functions may exit iteration early by explicitly returning `false`. * * **Note:** As with other "Collections" methods, objects with a "length" - * property are iterated like arrays. To avoid this behavior use `_.forIn` - * or `_.forOwn` for object iteration. + * property are iterated like arrays. To avoid this behavior use `forIn` + * or `forOwn` for object iteration. * * @static - * @memberOf _ * @since 0.1.0 * @alias each * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object} Returns `collection`. - * @see _.forEachRight + * @see forEachRight * @example * - * _.forEach([1, 2], function(value) { + * forEach([1, 2], function(value) { * console.log(value); * }); * // => Logs `1` then `2`. * - * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * forEach({ 'a': 1, 'b': 2 }, function(value, key) { * console.log(key); * }); * // => Logs 'a' then 'b' (iteration order is not guaranteed). diff --git a/forEachRight.js b/forEachRight.js index 7b1191376..637c1ec8f 100644 --- a/forEachRight.js +++ b/forEachRight.js @@ -3,21 +3,20 @@ import baseEachRight from './_baseEachRight.js'; import isArray from './isArray.js'; /** - * This method is like `_.forEach` except that it iterates over elements of + * This method is like `forEach` except that it iterates over elements of * `collection` from right to left. * * @static - * @memberOf _ * @since 2.0.0 * @alias eachRight * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object} Returns `collection`. - * @see _.forEach + * @see forEach * @example * - * _.forEachRight([1, 2], function(value) { + * forEachRight([1, 2], function(value) { * console.log(value); * }); * // => Logs `2` then `1`. diff --git a/forIn.js b/forIn.js index 0fac23bad..69e14515d 100644 --- a/forIn.js +++ b/forIn.js @@ -8,13 +8,12 @@ import keysIn from './keysIn.js'; * iteration early by explicitly returning `false`. * * @static - * @memberOf _ * @since 0.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @see _.forInRight + * @see forInRight * @example * * function Foo() { @@ -24,7 +23,7 @@ import keysIn from './keysIn.js'; * * Foo.prototype.c = 3; * - * _.forIn(new Foo, function(value, key) { + * forIn(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). diff --git a/forInRight.js b/forInRight.js index 3b68d768a..cb3a761de 100644 --- a/forInRight.js +++ b/forInRight.js @@ -2,17 +2,16 @@ import baseForRight from './_baseForRight.js'; import keysIn from './keysIn.js'; /** - * This method is like `_.forIn` except that it iterates over properties of + * This method is like `forIn` except that it iterates over properties of * `object` in the opposite order. * * @static - * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @see _.forIn + * @see forIn * @example * * function Foo() { @@ -22,10 +21,10 @@ import keysIn from './keysIn.js'; * * Foo.prototype.c = 3; * - * _.forInRight(new Foo, function(value, key) { + * forInRight(new Foo, function(value, key) { * console.log(key); * }); - * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. + * // => Logs 'c', 'b', then 'a' assuming `forIn` logs 'a', 'b', then 'c'. */ function forInRight(object, iteratee) { return object == null ? object : baseForRight(object, iteratee, keysIn); diff --git a/forOwn.js b/forOwn.js index 71b98b340..973625b20 100644 --- a/forOwn.js +++ b/forOwn.js @@ -7,13 +7,12 @@ import baseForOwn from './_baseForOwn.js'; * early by explicitly returning `false`. * * @static - * @memberOf _ * @since 0.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @see _.forOwnRight + * @see forOwnRight * @example * * function Foo() { @@ -23,7 +22,7 @@ import baseForOwn from './_baseForOwn.js'; * * Foo.prototype.c = 3; * - * _.forOwn(new Foo, function(value, key) { + * forOwn(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'a' then 'b' (iteration order is not guaranteed). diff --git a/forOwnRight.js b/forOwnRight.js index f93234de4..74cc86af0 100644 --- a/forOwnRight.js +++ b/forOwnRight.js @@ -1,17 +1,16 @@ import baseForOwnRight from './_baseForOwnRight.js'; /** - * This method is like `_.forOwn` except that it iterates over properties of + * This method is like `forOwn` except that it iterates over properties of * `object` in the opposite order. * * @static - * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @see _.forOwn + * @see forOwn * @example * * function Foo() { @@ -21,10 +20,10 @@ import baseForOwnRight from './_baseForOwnRight.js'; * * Foo.prototype.c = 3; * - * _.forOwnRight(new Foo, function(value, key) { + * forOwnRight(new Foo, function(value, key) { * console.log(key); * }); - * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. + * // => Logs 'b' then 'a' assuming `forOwn` logs 'a' then 'b'. */ function forOwnRight(object, iteratee) { return object && baseForOwnRight(object, iteratee); diff --git a/fromPairs.js b/fromPairs.js index 94e1d071c..d959149de 100644 --- a/fromPairs.js +++ b/fromPairs.js @@ -1,16 +1,15 @@ /** - * The inverse of `_.toPairs`; this method returns an object composed + * The inverse of `toPairs`; this method returns an object composed * from key-value `pairs`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} pairs The key-value pairs. * @returns {Object} Returns the new object. * @example * - * _.fromPairs([['a', 1], ['b', 2]]); + * fromPairs([['a', 1], ['b', 2]]); * // => { 'a': 1, 'b': 2 } */ function fromPairs(pairs) { diff --git a/functions.js b/functions.js index b9ea4de05..65174fe1a 100644 --- a/functions.js +++ b/functions.js @@ -7,21 +7,20 @@ import keys from './keys.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. - * @see _.functionsIn + * @see functionsIn * @example * * function Foo() { - * this.a = _.constant('a'); - * this.b = _.constant('b'); + * this.a = constant('a'); + * this.b = constant('b'); * } * - * Foo.prototype.c = _.constant('c'); + * Foo.prototype.c = constant('c'); * - * _.functions(new Foo); + * functions(new Foo); * // => ['a', 'b'] */ function functions(object) { diff --git a/functionsIn.js b/functionsIn.js index fb727f179..5e395dd63 100644 --- a/functionsIn.js +++ b/functionsIn.js @@ -6,22 +6,21 @@ import keysIn from './keysIn.js'; * enumerable properties of `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. - * @see _.functions + * @see functions * @example * * function Foo() { - * this.a = _.constant('a'); - * this.b = _.constant('b'); + * this.a = constant('a'); + * this.b = constant('b'); * } * - * Foo.prototype.c = _.constant('c'); + * Foo.prototype.c = constant('c'); * - * _.functionsIn(new Foo); + * functionsIn(new Foo); * // => ['a', 'b', 'c'] */ function functionsIn(object) { diff --git a/get.js b/get.js index cbd772676..628fbb70f 100644 --- a/get.js +++ b/get.js @@ -5,7 +5,6 @@ import baseGet from './_baseGet.js'; * `undefined`, the `defaultValue` is returned in its place. * * @static - * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. @@ -16,13 +15,13 @@ import baseGet from './_baseGet.js'; * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * - * _.get(object, 'a[0].b.c'); + * get(object, 'a[0].b.c'); * // => 3 * - * _.get(object, ['a', '0', 'b', 'c']); + * get(object, ['a', '0', 'b', 'c']); * // => 3 * - * _.get(object, 'a.b.c', 'default'); + * get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { diff --git a/groupBy.js b/groupBy.js index 5fa8bf87c..a4c8ff97c 100644 --- a/groupBy.js +++ b/groupBy.js @@ -15,7 +15,6 @@ const hasOwnProperty = objectProto.hasOwnProperty; * key. The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -23,7 +22,7 @@ const hasOwnProperty = objectProto.hasOwnProperty; * @returns {Object} Returns the composed aggregate object. * @example * - * _.groupBy([6.1, 4.2, 6.3], Math.floor); + * groupBy([6.1, 4.2, 6.3], Math.floor); * // => { '4': [4.2], '6': [6.1, 6.3] } */ const groupBy = createAggregator((result, value, key) => { diff --git a/gt.js b/gt.js index f546999f0..5ca78fc2e 100644 --- a/gt.js +++ b/gt.js @@ -5,23 +5,22 @@ import createRelationalOperation from './_createRelationalOperation.js'; * Checks if `value` is greater than `other`. * * @static - * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is greater than `other`, * else `false`. - * @see _.lt + * @see lt * @example * - * _.gt(3, 1); + * gt(3, 1); * // => true * - * _.gt(3, 3); + * gt(3, 3); * // => false * - * _.gt(1, 3); + * gt(1, 3); * // => false */ const gt = createRelationalOperation(baseGt); diff --git a/gte.js b/gte.js index af6dac147..7f6840ec8 100644 --- a/gte.js +++ b/gte.js @@ -4,23 +4,22 @@ import createRelationalOperation from './_createRelationalOperation.js'; * Checks if `value` is greater than or equal to `other`. * * @static - * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is greater than or equal to * `other`, else `false`. - * @see _.lte + * @see lte * @example * - * _.gte(3, 1); + * gte(3, 1); * // => true * - * _.gte(3, 3); + * gte(3, 3); * // => true * - * _.gte(1, 3); + * gte(1, 3); * // => false */ const gte = createRelationalOperation((value, other) => value >= other); diff --git a/has.js b/has.js index 83c8e49d9..28b80b7d9 100644 --- a/has.js +++ b/has.js @@ -6,7 +6,6 @@ import hasPath from './_hasPath.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. @@ -14,18 +13,18 @@ import hasPath from './_hasPath.js'; * @example * * var object = { 'a': { 'b': 2 } }; - * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * var other = create({ 'a': create({ 'b': 2 }) }); * - * _.has(object, 'a'); + * has(object, 'a'); * // => true * - * _.has(object, 'a.b'); + * has(object, 'a.b'); * // => true * - * _.has(object, ['a', 'b']); + * has(object, ['a', 'b']); * // => true * - * _.has(other, 'a'); + * has(other, 'a'); * // => false */ function has(object, path) { diff --git a/hasIn.js b/hasIn.js index c02eb1f43..cfa2a5e44 100644 --- a/hasIn.js +++ b/hasIn.js @@ -5,7 +5,6 @@ import hasPath from './_hasPath.js'; * Checks if `path` is a direct or inherited property of `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. @@ -13,18 +12,18 @@ import hasPath from './_hasPath.js'; * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * var object = create({ 'a': create({ 'b': 2 }) }); * - * _.hasIn(object, 'a'); + * hasIn(object, 'a'); * // => true * - * _.hasIn(object, 'a.b'); + * hasIn(object, 'a.b'); * // => true * - * _.hasIn(object, ['a', 'b']); + * hasIn(object, ['a', 'b']); * // => true * - * _.hasIn(object, 'b'); + * hasIn(object, 'b'); * // => false */ function hasIn(object, path) { diff --git a/head.js b/head.js index 0a62691c3..fcfa28bef 100644 --- a/head.js +++ b/head.js @@ -2,7 +2,6 @@ * Gets the first element of `array`. * * @static - * @memberOf _ * @since 0.1.0 * @alias first * @category Array @@ -10,10 +9,10 @@ * @returns {*} Returns the first element of `array`. * @example * - * _.head([1, 2, 3]); + * head([1, 2, 3]); * // => 1 * - * _.head([]); + * head([]); * // => undefined */ function head(array) { diff --git a/identity.js b/identity.js index ed074d8c8..fb65e09ee 100644 --- a/identity.js +++ b/identity.js @@ -3,7 +3,6 @@ * * @static * @since 0.1.0 - * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. @@ -11,7 +10,7 @@ * * var object = { 'a': 1 }; * - * console.log(_.identity(object) === object); + * console.log(identity(object) === object); * // => true */ function identity(value) { diff --git a/inRange.js b/inRange.js index 0e130ab96..fe43085ba 100644 --- a/inRange.js +++ b/inRange.js @@ -9,35 +9,34 @@ import toNumber from './toNumber.js'; * negative ranges. * * @static - * @memberOf _ * @since 3.3.0 * @category Number * @param {number} number The number to check. * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @returns {boolean} Returns `true` if `number` is in the range, else `false`. - * @see _.range, _.rangeRight + * @see range, rangeRight * @example * - * _.inRange(3, 2, 4); + * inRange(3, 2, 4); * // => true * - * _.inRange(4, 8); + * inRange(4, 8); * // => true * - * _.inRange(4, 2); + * inRange(4, 2); * // => false * - * _.inRange(2, 2); + * inRange(2, 2); * // => false * - * _.inRange(1.2, 2); + * inRange(1.2, 2); * // => true * - * _.inRange(5.2, 4); + * inRange(5.2, 4); * // => false * - * _.inRange(-3, -2, -6); + * inRange(-3, -2, -6); * // => true */ function inRange(number, start, end) { diff --git a/includes.js b/includes.js index 07019243f..ad0f2bb9e 100644 --- a/includes.js +++ b/includes.js @@ -15,26 +15,25 @@ const nativeMax = Math.max; * the offset from the end of `collection`. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `reduce`. * @returns {boolean} Returns `true` if `value` is found, else `false`. * @example * - * _.includes([1, 2, 3], 1); + * includes([1, 2, 3], 1); * // => true * - * _.includes([1, 2, 3], 1, 2); + * includes([1, 2, 3], 1, 2); * // => false * - * _.includes({ 'a': 1, 'b': 2 }, 1); + * includes({ 'a': 1, 'b': 2 }, 1); * // => true * - * _.includes('abcd', 'bc'); + * includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { diff --git a/indexOf.js b/indexOf.js index 52303c80f..375f1178b 100644 --- a/indexOf.js +++ b/indexOf.js @@ -11,7 +11,6 @@ const nativeMax = Math.max; * offset from the end of `array`. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. @@ -20,11 +19,11 @@ const nativeMax = Math.max; * @returns {number} Returns the index of the matched value, else `-1`. * @example * - * _.indexOf([1, 2, 1, 2], 2); + * indexOf([1, 2, 1, 2], 2); * // => 1 * * // Search from the `fromIndex`. - * _.indexOf([1, 2, 1, 2], 2, 2); + * indexOf([1, 2, 1, 2], 2, 2); * // => 3 */ function indexOf(array, value, fromIndex) { diff --git a/initial.js b/initial.js index 890e2ca7d..754f351ea 100644 --- a/initial.js +++ b/initial.js @@ -4,14 +4,13 @@ import baseSlice from './_baseSlice.js'; * Gets all but the last element of `array`. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * - * _.initial([1, 2, 3]); + * initial([1, 2, 3]); * // => [1, 2] */ function initial(array) { diff --git a/intersection.js b/intersection.js index d7b4da858..23a7e3dc1 100644 --- a/intersection.js +++ b/intersection.js @@ -9,14 +9,13 @@ import castArrayLikeObject from './_castArrayLikeObject.js'; * determined by the first array. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @returns {Array} Returns the new array of intersecting values. * @example * - * _.intersection([2, 1], [2, 3]); + * intersection([2, 1], [2, 3]); * // => [2] */ function intersection(...arrays) { diff --git a/intersectionBy.js b/intersectionBy.js index f81d1382f..e4fa65256 100644 --- a/intersectionBy.js +++ b/intersectionBy.js @@ -4,14 +4,13 @@ import castArrayLikeObject from './_castArrayLikeObject.js'; import last from './last.js'; /** - * This method is like `_.intersection` except that it accepts `iteratee` + * This method is like `intersection` except that it accepts `iteratee` * which is invoked for each element of each `arrays` to generate the criterion * by which they're compared. The order and references of result values are * determined by the first array. The iteratee is invoked with one argument: * (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. @@ -19,7 +18,7 @@ import last from './last.js'; * @returns {Array} Returns the new array of intersecting values. * @example * - * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [2.1] */ function intersectionBy(...arrays) { diff --git a/intersectionWith.js b/intersectionWith.js index a498fec2f..6b1efde0f 100644 --- a/intersectionWith.js +++ b/intersectionWith.js @@ -4,13 +4,12 @@ import castArrayLikeObject from './_castArrayLikeObject.js'; import last from './last.js'; /** - * This method is like `_.intersection` except that it accepts `comparator` + * This method is like `intersection` except that it accepts `comparator` * which is invoked to compare elements of `arrays`. The order and references * of result values are determined by the first array. The comparator is * invoked with two arguments: (arrVal, othVal). * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. @@ -21,7 +20,7 @@ import last from './last.js'; * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; * - * _.intersectionWith(objects, others, _.isEqual); + * intersectionWith(objects, others, isEqual); * // => [{ 'x': 1, 'y': 2 }] */ function intersectionWith(...arrays) { diff --git a/invert.js b/invert.js index ccc08fe34..0aa5b04cb 100644 --- a/invert.js +++ b/invert.js @@ -8,7 +8,6 @@ import identity from './identity.js'; * property assignments of previous values. * * @static - * @memberOf _ * @since 0.7.0 * @category Object * @param {Object} object The object to invert. @@ -17,7 +16,7 @@ import identity from './identity.js'; * * var object = { 'a': 1, 'b': 2, 'c': 1 }; * - * _.invert(object); + * invert(object); * // => { '1': 'c', '2': 'b' } */ const invert = createInverter((result, value, key) => { diff --git a/invertBy.js b/invertBy.js index eabae038a..ac3ef7a2b 100644 --- a/invertBy.js +++ b/invertBy.js @@ -7,14 +7,13 @@ const objectProto = Object.prototype; const hasOwnProperty = objectProto.hasOwnProperty; /** - * This method is like `_.invert` except that the inverted object is generated + * This method is like `invert` except that the inverted object is generated * from the results of running each element of `object` thru `iteratee`. The * corresponding inverted value of each inverted key is an array of keys * responsible for generating the inverted value. The iteratee is invoked * with one argument: (value). * * @static - * @memberOf _ * @since 4.1.0 * @category Object * @param {Object} object The object to invert. @@ -24,7 +23,7 @@ const hasOwnProperty = objectProto.hasOwnProperty; * * var object = { 'a': 1, 'b': 2, 'c': 1 }; * - * _.invertBy(object, function(value) { + * invertBy(object, function(value) { * return 'group' + value; * }); * // => { 'group1': ['a', 'c'], 'group2': ['b'] } diff --git a/invoke.js b/invoke.js index 5cf47595e..c30c94c03 100644 --- a/invoke.js +++ b/invoke.js @@ -4,7 +4,6 @@ import baseInvoke from './_baseInvoke.js'; * Invokes the method at `path` of `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. @@ -15,7 +14,7 @@ import baseInvoke from './_baseInvoke.js'; * * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; * - * _.invoke(object, 'a[0].b.c.slice', 1, 3); + * invoke(object, 'a[0].b.c.slice', 1, 3); * // => [2, 3] */ function invoke(object, path, ...args) { diff --git a/invokeMap.js b/invokeMap.js index 675418c08..85a276fcd 100644 --- a/invokeMap.js +++ b/invokeMap.js @@ -10,7 +10,6 @@ import isArrayLike from './isArrayLike.js'; * for, and `this` bound to, each element in `collection`. * * @static - * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -20,10 +19,10 @@ import isArrayLike from './isArrayLike.js'; * @returns {Array} Returns the array of results. * @example * - * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); + * invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); * // => [[1, 5, 7], [1, 2, 3]] * - * _.invokeMap([123, 456], String.prototype.split, ''); + * invokeMap([123, 456], String.prototype.split, ''); * // => [['1', '2', '3'], ['4', '5', '6']] */ function invokeMap(collection, path, ...args) { diff --git a/isArguments.js b/isArguments.js index ed2ce23d3..70fe0aa93 100644 --- a/isArguments.js +++ b/isArguments.js @@ -14,7 +14,6 @@ const propertyIsEnumerable = objectProto.propertyIsEnumerable; * Checks if `value` is likely an `arguments` object. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. @@ -22,10 +21,10 @@ const propertyIsEnumerable = objectProto.propertyIsEnumerable; * else `false`. * @example * - * _.isArguments(function() { return arguments; }()); + * isArguments(function() { return arguments; }()); * // => true * - * _.isArguments([1, 2, 3]); + * isArguments([1, 2, 3]); * // => false */ const isArguments = baseIsArguments(function(...args) { return args; }()) ? baseIsArguments : value => isObjectLike(value) && hasOwnProperty.call(value, 'callee') && diff --git a/isArrayBuffer.js b/isArrayBuffer.js index 93887450d..950738f4e 100644 --- a/isArrayBuffer.js +++ b/isArrayBuffer.js @@ -8,17 +8,16 @@ const nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer; * Checks if `value` is classified as an `ArrayBuffer` object. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. * @example * - * _.isArrayBuffer(new ArrayBuffer(2)); + * isArrayBuffer(new ArrayBuffer(2)); * // => true * - * _.isArrayBuffer(new Array(2)); + * isArrayBuffer(new Array(2)); * // => false */ const isArrayBuffer = nodeIsArrayBuffer diff --git a/isArrayLike.js b/isArrayLike.js index f763abd34..973f22ac2 100644 --- a/isArrayLike.js +++ b/isArrayLike.js @@ -7,23 +7,22 @@ import isLength from './isLength.js'; * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * - * _.isArrayLike([1, 2, 3]); + * isArrayLike([1, 2, 3]); * // => true * - * _.isArrayLike(document.body.children); + * isArrayLike(document.body.children); * // => true * - * _.isArrayLike('abc'); + * isArrayLike('abc'); * // => true * - * _.isArrayLike(_.noop); + * isArrayLike(noop); * // => false */ function isArrayLike(value) { diff --git a/isArrayLikeObject.js b/isArrayLikeObject.js index 0332da45f..d8f8b21a6 100644 --- a/isArrayLikeObject.js +++ b/isArrayLikeObject.js @@ -2,11 +2,10 @@ import isArrayLike from './isArrayLike.js'; import isObjectLike from './isObjectLike.js'; /** - * This method is like `_.isArrayLike` except that it also checks if `value` + * This method is like `isArrayLike` except that it also checks if `value` * is an object. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. @@ -14,16 +13,16 @@ import isObjectLike from './isObjectLike.js'; * else `false`. * @example * - * _.isArrayLikeObject([1, 2, 3]); + * isArrayLikeObject([1, 2, 3]); * // => true * - * _.isArrayLikeObject(document.body.children); + * isArrayLikeObject(document.body.children); * // => true * - * _.isArrayLikeObject('abc'); + * isArrayLikeObject('abc'); * // => false * - * _.isArrayLikeObject(_.noop); + * isArrayLikeObject(noop); * // => false */ function isArrayLikeObject(value) { diff --git a/isBoolean.js b/isBoolean.js index eae258f51..68290e453 100644 --- a/isBoolean.js +++ b/isBoolean.js @@ -8,17 +8,16 @@ const boolTag = '[object Boolean]'; * Checks if `value` is classified as a boolean primitive or object. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. * @example * - * _.isBoolean(false); + * isBoolean(false); * // => true * - * _.isBoolean(null); + * isBoolean(null); * // => false */ function isBoolean(value) { diff --git a/isBuffer.js b/isBuffer.js index 803e994d5..c79108361 100644 --- a/isBuffer.js +++ b/isBuffer.js @@ -20,17 +20,16 @@ const nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; * Checks if `value` is a buffer. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * - * _.isBuffer(new Buffer(2)); + * isBuffer(new Buffer(2)); * // => true * - * _.isBuffer(new Uint8Array(2)); + * isBuffer(new Uint8Array(2)); * // => false */ const isBuffer = nativeIsBuffer || stubFalse; diff --git a/isDate.js b/isDate.js index 4c28e1254..aeea0a509 100644 --- a/isDate.js +++ b/isDate.js @@ -8,17 +8,16 @@ const nodeIsDate = nodeUtil && nodeUtil.isDate; * Checks if `value` is classified as a `Date` object. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * - * _.isDate(new Date); + * isDate(new Date); * // => true * - * _.isDate('Mon April 23 2012'); + * isDate('Mon April 23 2012'); * // => false */ const isDate = nodeIsDate diff --git a/isElement.js b/isElement.js index c79ba5b03..1fe321c8a 100644 --- a/isElement.js +++ b/isElement.js @@ -5,17 +5,16 @@ import isPlainObject from './isPlainObject.js'; * Checks if `value` is likely a DOM element. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. * @example * - * _.isElement(document.body); + * isElement(document.body); * // => true * - * _.isElement(''); + * isElement(''); * // => false */ function isElement(value) { diff --git a/isEmpty.js b/isEmpty.js index 496f769c6..cd7446fbe 100644 --- a/isEmpty.js +++ b/isEmpty.js @@ -28,26 +28,25 @@ const hasOwnProperty = objectProto.hasOwnProperty; * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * - * _.isEmpty(null); + * isEmpty(null); * // => true * - * _.isEmpty(true); + * isEmpty(true); * // => true * - * _.isEmpty(1); + * isEmpty(1); * // => true * - * _.isEmpty([1, 2, 3]); + * isEmpty([1, 2, 3]); * // => false * - * _.isEmpty({ 'a': 1 }); + * isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { diff --git a/isEqual.js b/isEqual.js index 8be0e2ce5..9cdae6cbd 100644 --- a/isEqual.js +++ b/isEqual.js @@ -11,7 +11,6 @@ import baseIsEqual from './_baseIsEqual.js'; * nodes are compared by strict equality, i.e. `===`. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to compare. @@ -22,7 +21,7 @@ import baseIsEqual from './_baseIsEqual.js'; * var object = { 'a': 1 }; * var other = { 'a': 1 }; * - * _.isEqual(object, other); + * isEqual(object, other); * // => true * * object === other; diff --git a/isEqualWith.js b/isEqualWith.js index b92232987..afda267dd 100644 --- a/isEqualWith.js +++ b/isEqualWith.js @@ -1,13 +1,12 @@ import baseIsEqual from './_baseIsEqual.js'; /** - * This method is like `_.isEqual` except that it accepts `customizer` which + * This method is like `isEqual` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with up to * six arguments: (objValue, othValue [, index|key, object, other, stack]). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. @@ -29,7 +28,7 @@ import baseIsEqual from './_baseIsEqual.js'; * var array = ['hello', 'goodbye']; * var other = ['hi', 'goodbye']; * - * _.isEqualWith(array, other, customizer); + * isEqualWith(array, other, customizer); * // => true */ function isEqualWith(value, other, customizer) { diff --git a/isError.js b/isError.js index 78140891a..13fc8ae2d 100644 --- a/isError.js +++ b/isError.js @@ -11,17 +11,16 @@ const errorTag = '[object Error]'; * `SyntaxError`, `TypeError`, or `URIError` object. * * @static - * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an error object, else `false`. * @example * - * _.isError(new Error); + * isError(new Error); * // => true * - * _.isError(Error); + * isError(Error); * // => false */ function isError(value) { diff --git a/isFinite.js b/isFinite.js index 16cf17306..6c5e1a6c8 100644 --- a/isFinite.js +++ b/isFinite.js @@ -10,23 +10,22 @@ const nativeIsFinite = root.isFinite; * [`Number.isFinite`](https://mdn.io/Number/isFinite). * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. * @example * - * _.isFinite(3); + * isFinite(3); * // => true * - * _.isFinite(Number.MIN_VALUE); + * isFinite(Number.MIN_VALUE); * // => true * - * _.isFinite(Infinity); + * isFinite(Infinity); * // => false * - * _.isFinite('3'); + * isFinite('3'); * // => false */ function isFinite(value) { diff --git a/isFunction.js b/isFunction.js index aeed5dca3..23fb76f5a 100644 --- a/isFunction.js +++ b/isFunction.js @@ -11,17 +11,16 @@ const proxyTag = '[object Proxy]'; * Checks if `value` is classified as a `Function` object. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * - * _.isFunction(_); + * isFunction(_); * // => true * - * _.isFunction(/abc/); + * isFunction(/abc/); * // => false */ function isFunction(value) { diff --git a/isInteger.js b/isInteger.js index 8284ac0bf..353ce34ae 100644 --- a/isInteger.js +++ b/isInteger.js @@ -7,23 +7,22 @@ import toInteger from './toInteger.js'; * [`Number.isInteger`](https://mdn.io/Number/isInteger). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an integer, else `false`. * @example * - * _.isInteger(3); + * isInteger(3); * // => true * - * _.isInteger(Number.MIN_VALUE); + * isInteger(Number.MIN_VALUE); * // => false * - * _.isInteger(Infinity); + * isInteger(Infinity); * // => false * - * _.isInteger('3'); + * isInteger('3'); * // => false */ function isInteger(value) { diff --git a/isLength.js b/isLength.js index 3a03a82ac..758196d98 100644 --- a/isLength.js +++ b/isLength.js @@ -8,23 +8,22 @@ const MAX_SAFE_INTEGER = 9007199254740991; * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * - * _.isLength(3); + * isLength(3); * // => true * - * _.isLength(Number.MIN_VALUE); + * isLength(Number.MIN_VALUE); * // => false * - * _.isLength(Infinity); + * isLength(Infinity); * // => false * - * _.isLength('3'); + * isLength('3'); * // => false */ function isLength(value) { diff --git a/isMap.js b/isMap.js index d1192ffd6..15e8119fb 100644 --- a/isMap.js +++ b/isMap.js @@ -8,17 +8,16 @@ const nodeIsMap = nodeUtil && nodeUtil.isMap; * Checks if `value` is classified as a `Map` object. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * - * _.isMap(new Map); + * isMap(new Map); * // => true * - * _.isMap(new WeakMap); + * isMap(new WeakMap); * // => false */ const isMap = nodeIsMap diff --git a/isMatch.js b/isMatch.js index 4872ebfc2..e3b50acfe 100644 --- a/isMatch.js +++ b/isMatch.js @@ -5,15 +5,14 @@ import getMatchData from './_getMatchData.js'; * Performs a partial deep comparison between `object` and `source` to * determine if `object` contains equivalent property values. * - * **Note:** This method is equivalent to `_.matches` when `source` is + * **Note:** This method is equivalent to `matches` when `source` is * partially applied. * * Partial comparisons will match empty array and empty object `source` - * values against any array or object value, respectively. See `_.isEqual` + * values against any array or object value, respectively. See `isEqual` * for a list of supported value comparisons. * * @static - * @memberOf _ * @since 3.0.0 * @category Lang * @param {Object} object The object to inspect. @@ -23,10 +22,10 @@ import getMatchData from './_getMatchData.js'; * * var object = { 'a': 1, 'b': 2 }; * - * _.isMatch(object, { 'b': 2 }); + * isMatch(object, { 'b': 2 }); * // => true * - * _.isMatch(object, { 'b': 1 }); + * isMatch(object, { 'b': 1 }); * // => false */ function isMatch(object, source) { diff --git a/isMatchWith.js b/isMatchWith.js index aeec8f57e..2a8d84b6d 100644 --- a/isMatchWith.js +++ b/isMatchWith.js @@ -2,13 +2,12 @@ import baseIsMatch from './_baseIsMatch.js'; import getMatchData from './_getMatchData.js'; /** - * This method is like `_.isMatch` except that it accepts `customizer` which + * This method is like `isMatch` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with five * arguments: (objValue, srcValue, index|key, object, source). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {Object} object The object to inspect. @@ -30,7 +29,7 @@ import getMatchData from './_getMatchData.js'; * var object = { 'greeting': 'hello' }; * var source = { 'greeting': 'hi' }; * - * _.isMatchWith(object, source, customizer); + * isMatchWith(object, source, customizer); * // => true */ function isMatchWith(object, source, customizer) { diff --git a/isNaN.js b/isNaN.js index c1747b369..b95d2b285 100644 --- a/isNaN.js +++ b/isNaN.js @@ -9,23 +9,22 @@ import isNumber from './isNumber.js'; * `undefined` and other non-number values. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. * @example * - * _.isNaN(NaN); + * isNaN(NaN); * // => true * - * _.isNaN(new Number(NaN)); + * isNaN(new Number(NaN)); * // => true * * isNaN(undefined); * // => true * - * _.isNaN(undefined); + * isNaN(undefined); * // => false */ function isNaN(value) { diff --git a/isNative.js b/isNative.js index d59999e9a..8f82ef92a 100644 --- a/isNative.js +++ b/isNative.js @@ -16,7 +16,6 @@ const CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=p * which rely on core-js. * * @static - * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. @@ -24,10 +23,10 @@ const CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=p * else `false`. * @example * - * _.isNative(Array.prototype.push); + * isNative(Array.prototype.push); * // => true * - * _.isNative(_); + * isNative(_); * // => false */ function isNative(value) { diff --git a/isNil.js b/isNil.js index 9c4a93c60..73ca36278 100644 --- a/isNil.js +++ b/isNil.js @@ -2,20 +2,19 @@ * Checks if `value` is `null` or `undefined`. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is nullish, else `false`. * @example * - * _.isNil(null); + * isNil(null); * // => true * - * _.isNil(void 0); + * isNil(void 0); * // => true * - * _.isNil(NaN); + * isNil(NaN); * // => false */ function isNil(value) { diff --git a/isNull.js b/isNull.js index 5d885981a..4de88a5db 100644 --- a/isNull.js +++ b/isNull.js @@ -2,17 +2,16 @@ * Checks if `value` is `null`. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `null`, else `false`. * @example * - * _.isNull(null); + * isNull(null); * // => true * - * _.isNull(void 0); + * isNull(void 0); * // => false */ function isNull(value) { diff --git a/isNumber.js b/isNumber.js index d36a02190..b063d129f 100644 --- a/isNumber.js +++ b/isNumber.js @@ -8,26 +8,25 @@ const numberTag = '[object Number]'; * Checks if `value` is classified as a `Number` primitive or object. * * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are - * classified as numbers, use the `_.isFinite` method. + * classified as numbers, use the `isFinite` method. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * - * _.isNumber(3); + * isNumber(3); * // => true * - * _.isNumber(Number.MIN_VALUE); + * isNumber(Number.MIN_VALUE); * // => true * - * _.isNumber(Infinity); + * isNumber(Infinity); * // => true * - * _.isNumber('3'); + * isNumber('3'); * // => false */ function isNumber(value) { diff --git a/isObject.js b/isObject.js index e1272f62d..3dba5809d 100644 --- a/isObject.js +++ b/isObject.js @@ -4,23 +4,22 @@ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * - * _.isObject({}); + * isObject({}); * // => true * - * _.isObject([1, 2, 3]); + * isObject([1, 2, 3]); * // => true * - * _.isObject(_.noop); + * isObject(noop); * // => true * - * _.isObject(null); + * isObject(null); * // => false */ function isObject(value) { diff --git a/isObjectLike.js b/isObjectLike.js index 0e931b172..045cbd1bb 100644 --- a/isObjectLike.js +++ b/isObjectLike.js @@ -3,23 +3,22 @@ * and has a `typeof` result of "object". * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * - * _.isObjectLike({}); + * isObjectLike({}); * // => true * - * _.isObjectLike([1, 2, 3]); + * isObjectLike([1, 2, 3]); * // => true * - * _.isObjectLike(_.noop); + * isObjectLike(noop); * // => false * - * _.isObjectLike(null); + * isObjectLike(null); * // => false */ function isObjectLike(value) { diff --git a/isPlainObject.js b/isPlainObject.js index 90efedb1a..d732559ab 100644 --- a/isPlainObject.js +++ b/isPlainObject.js @@ -23,7 +23,6 @@ const objectCtorString = funcToString.call(Object); * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static - * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. @@ -34,16 +33,16 @@ const objectCtorString = funcToString.call(Object); * this.a = 1; * } * - * _.isPlainObject(new Foo); + * isPlainObject(new Foo); * // => false * - * _.isPlainObject([1, 2, 3]); + * isPlainObject([1, 2, 3]); * // => false * - * _.isPlainObject({ 'x': 0, 'y': 0 }); + * isPlainObject({ 'x': 0, 'y': 0 }); * // => true * - * _.isPlainObject(Object.create(null)); + * isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { diff --git a/isRegExp.js b/isRegExp.js index d4b9aba2d..c973eacbe 100644 --- a/isRegExp.js +++ b/isRegExp.js @@ -8,17 +8,16 @@ const nodeIsRegExp = nodeUtil && nodeUtil.isRegExp; * Checks if `value` is classified as a `RegExp` object. * * @static - * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. * @example * - * _.isRegExp(/abc/); + * isRegExp(/abc/); * // => true * - * _.isRegExp('/abc/'); + * isRegExp('/abc/'); * // => false */ const isRegExp = nodeIsRegExp diff --git a/isSafeInteger.js b/isSafeInteger.js index 92145ba00..9078da183 100644 --- a/isSafeInteger.js +++ b/isSafeInteger.js @@ -11,23 +11,22 @@ const MAX_SAFE_INTEGER = 9007199254740991; * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. * @example * - * _.isSafeInteger(3); + * isSafeInteger(3); * // => true * - * _.isSafeInteger(Number.MIN_VALUE); + * isSafeInteger(Number.MIN_VALUE); * // => false * - * _.isSafeInteger(Infinity); + * isSafeInteger(Infinity); * // => false * - * _.isSafeInteger('3'); + * isSafeInteger('3'); * // => false */ function isSafeInteger(value) { diff --git a/isSet.js b/isSet.js index 83ed191a5..fbabfa539 100644 --- a/isSet.js +++ b/isSet.js @@ -8,17 +8,16 @@ const nodeIsSet = nodeUtil && nodeUtil.isSet; * Checks if `value` is classified as a `Set` object. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * - * _.isSet(new Set); + * isSet(new Set); * // => true * - * _.isSet(new WeakSet); + * isSet(new WeakSet); * // => false */ const isSet = nodeIsSet diff --git a/isString.js b/isString.js index 1360a5e4f..a724be5a8 100644 --- a/isString.js +++ b/isString.js @@ -10,16 +10,15 @@ const stringTag = '[object String]'; * * @static * @since 0.1.0 - * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * - * _.isString('abc'); + * isString('abc'); * // => true * - * _.isString(1); + * isString(1); * // => false */ function isString(value) { diff --git a/isSymbol.js b/isSymbol.js index 8cc0b5c2e..59ff92ec6 100644 --- a/isSymbol.js +++ b/isSymbol.js @@ -8,17 +8,16 @@ const symbolTag = '[object Symbol]'; * Checks if `value` is classified as a `Symbol` primitive or object. * * @static - * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * - * _.isSymbol(Symbol.iterator); + * isSymbol(Symbol.iterator); * // => true * - * _.isSymbol('abc'); + * isSymbol('abc'); * // => false */ function isSymbol(value) { diff --git a/isTypedArray.js b/isTypedArray.js index 95e3166be..1e623a65f 100644 --- a/isTypedArray.js +++ b/isTypedArray.js @@ -8,17 +8,16 @@ const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; * Checks if `value` is classified as a typed array. * * @static - * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * - * _.isTypedArray(new Uint8Array); + * isTypedArray(new Uint8Array); * // => true * - * _.isTypedArray([]); + * isTypedArray([]); * // => false */ const isTypedArray = nodeIsTypedArray diff --git a/isUndefined.js b/isUndefined.js index d4f97d5ea..215449a8f 100644 --- a/isUndefined.js +++ b/isUndefined.js @@ -3,16 +3,15 @@ * * @static * @since 0.1.0 - * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. * @example * - * _.isUndefined(void 0); + * isUndefined(void 0); * // => true * - * _.isUndefined(null); + * isUndefined(null); * // => false */ function isUndefined(value) { diff --git a/isWeakMap.js b/isWeakMap.js index d32588a20..1c4515413 100644 --- a/isWeakMap.js +++ b/isWeakMap.js @@ -8,17 +8,16 @@ const weakMapTag = '[object WeakMap]'; * Checks if `value` is classified as a `WeakMap` object. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. * @example * - * _.isWeakMap(new WeakMap); + * isWeakMap(new WeakMap); * // => true * - * _.isWeakMap(new Map); + * isWeakMap(new Map); * // => false */ function isWeakMap(value) { diff --git a/isWeakSet.js b/isWeakSet.js index 72930e7bf..907a3ce7c 100644 --- a/isWeakSet.js +++ b/isWeakSet.js @@ -8,17 +8,16 @@ const weakSetTag = '[object WeakSet]'; * Checks if `value` is classified as a `WeakSet` object. * * @static - * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * - * _.isWeakSet(new WeakSet); + * isWeakSet(new WeakSet); * // => true * - * _.isWeakSet(new Set); + * isWeakSet(new Set); * // => false */ function isWeakSet(value) { diff --git a/join.js b/join.js index e4633bbed..0462ef2e0 100644 --- a/join.js +++ b/join.js @@ -8,7 +8,6 @@ const nativeJoin = arrayProto.join; * Converts all elements in `array` into a string separated by `separator`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to convert. @@ -16,7 +15,7 @@ const nativeJoin = arrayProto.join; * @returns {string} Returns the joined string. * @example * - * _.join(['a', 'b', 'c'], '~'); + * join(['a', 'b', 'c'], '~'); * // => 'a~b~c' */ function join(array, separator) { diff --git a/kebabCase.js b/kebabCase.js index 463cb2066..46829e5df 100644 --- a/kebabCase.js +++ b/kebabCase.js @@ -5,20 +5,19 @@ import createCompounder from './_createCompounder.js'; * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the kebab cased string. * @example * - * _.kebabCase('Foo Bar'); + * kebabCase('Foo Bar'); * // => 'foo-bar' * - * _.kebabCase('fooBar'); + * kebabCase('fooBar'); * // => 'foo-bar' * - * _.kebabCase('__FOO_BAR__'); + * kebabCase('__FOO_BAR__'); * // => 'foo-bar' */ const kebabCase = createCompounder((result, word, index) => result + (index ? '-' : '') + word.toLowerCase()); diff --git a/keyBy.js b/keyBy.js index e64f7ec86..f3ddce0d4 100644 --- a/keyBy.js +++ b/keyBy.js @@ -8,7 +8,6 @@ import createAggregator from './_createAggregator.js'; * iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -21,12 +20,12 @@ import createAggregator from './_createAggregator.js'; * { 'dir': 'right', 'code': 100 } * ]; * - * _.keyBy(array, function(o) { + * keyBy(array, function(o) { * return String.fromCharCode(o.code); * }); * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } * - * _.keyBy(array, 'dir'); + * keyBy(array, 'dir'); * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } */ const keyBy = createAggregator((result, value, key) => { diff --git a/keys.js b/keys.js index fd7089b4f..1c1734356 100644 --- a/keys.js +++ b/keys.js @@ -11,7 +11,6 @@ import isArrayLike from './isArrayLike.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. @@ -24,10 +23,10 @@ import isArrayLike from './isArrayLike.js'; * * Foo.prototype.c = 3; * - * _.keys(new Foo); + * keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * - * _.keys('hi'); + * keys('hi'); * // => ['0', '1'] */ function keys(object) { diff --git a/keysIn.js b/keysIn.js index a77147a33..96017b058 100644 --- a/keysIn.js +++ b/keysIn.js @@ -8,7 +8,6 @@ import isArrayLike from './isArrayLike.js'; * **Note:** Non-object values are coerced to objects. * * @static - * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. @@ -22,7 +21,7 @@ import isArrayLike from './isArrayLike.js'; * * Foo.prototype.c = 3; * - * _.keysIn(new Foo); + * keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { diff --git a/last.js b/last.js index bd3931ba0..2c388619a 100644 --- a/last.js +++ b/last.js @@ -2,14 +2,13 @@ * Gets the last element of `array`. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * - * _.last([1, 2, 3]); + * last([1, 2, 3]); * // => 3 */ function last(array) { diff --git a/lastIndexOf.js b/lastIndexOf.js index dece6729a..e68978517 100644 --- a/lastIndexOf.js +++ b/lastIndexOf.js @@ -8,11 +8,10 @@ const nativeMax = Math.max; const nativeMin = Math.min; /** - * This method is like `_.indexOf` except that it iterates over elements of + * This method is like `indexOf` except that it iterates over elements of * `array` from right to left. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. @@ -21,11 +20,11 @@ const nativeMin = Math.min; * @returns {number} Returns the index of the matched value, else `-1`. * @example * - * _.lastIndexOf([1, 2, 1, 2], 2); + * lastIndexOf([1, 2, 1, 2], 2); * // => 3 * * // Search from the `fromIndex`. - * _.lastIndexOf([1, 2, 1, 2], 2, 2); + * lastIndexOf([1, 2, 1, 2], 2, 2); * // => 1 */ function lastIndexOf(array, value, fromIndex) { diff --git a/lowerCase.js b/lowerCase.js index 240c0825c..d061a79ec 100644 --- a/lowerCase.js +++ b/lowerCase.js @@ -4,20 +4,19 @@ import createCompounder from './_createCompounder.js'; * Converts `string`, as space separated words, to lower case. * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the lower cased string. * @example * - * _.lowerCase('--Foo-Bar--'); + * lowerCase('--Foo-Bar--'); * // => 'foo bar' * - * _.lowerCase('fooBar'); + * lowerCase('fooBar'); * // => 'foo bar' * - * _.lowerCase('__FOO_BAR__'); + * lowerCase('__FOO_BAR__'); * // => 'foo bar' */ const lowerCase = createCompounder((result, word, index) => result + (index ? ' ' : '') + word.toLowerCase()); diff --git a/lowerFirst.js b/lowerFirst.js index 47ba4204f..d92a6d252 100644 --- a/lowerFirst.js +++ b/lowerFirst.js @@ -4,17 +4,16 @@ import createCaseFirst from './_createCaseFirst.js'; * Converts the first character of `string` to lower case. * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the converted string. * @example * - * _.lowerFirst('Fred'); + * lowerFirst('Fred'); * // => 'fred' * - * _.lowerFirst('FRED'); + * lowerFirst('FRED'); * // => 'fRED' */ const lowerFirst = createCaseFirst('toLowerCase'); diff --git a/lt.js b/lt.js index e9504a201..0c9aa32ff 100644 --- a/lt.js +++ b/lt.js @@ -5,23 +5,22 @@ import createRelationalOperation from './_createRelationalOperation.js'; * Checks if `value` is less than `other`. * * @static - * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than `other`, * else `false`. - * @see _.gt + * @see gt * @example * - * _.lt(1, 3); + * lt(1, 3); * // => true * - * _.lt(3, 3); + * lt(3, 3); * // => false * - * _.lt(3, 1); + * lt(3, 1); * // => false */ const lt = createRelationalOperation(baseLt); diff --git a/lte.js b/lte.js index 5da4d37bc..aa9ff3e2f 100644 --- a/lte.js +++ b/lte.js @@ -4,23 +4,22 @@ import createRelationalOperation from './_createRelationalOperation.js'; * Checks if `value` is less than or equal to `other`. * * @static - * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than or equal to * `other`, else `false`. - * @see _.gte + * @see gte * @example * - * _.lte(1, 3); + * lte(1, 3); * // => true * - * _.lte(3, 3); + * lte(3, 3); * // => true * - * _.lte(3, 1); + * lte(3, 1); * // => false */ const lte = createRelationalOperation((value, other) => value <= other); diff --git a/map.js b/map.js index 9daf124b7..9e59bce8e 100644 --- a/map.js +++ b/map.js @@ -8,7 +8,7 @@ import isArray from './isArray.js'; * (value, index|key, collection). * * Many lodash methods are guarded to work as iteratees for methods like - * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * `every`, `filter`, `map`, `mapValues`, `reject`, and `some`. * * The guarded methods are: * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, @@ -17,7 +17,6 @@ import isArray from './isArray.js'; * `template`, `trim`, `trimEnd`, `trimStart`, and `words` * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -29,10 +28,10 @@ import isArray from './isArray.js'; * return n * n; * } * - * _.map([4, 8], square); + * map([4, 8], square); * // => [16, 64] * - * _.map({ 'a': 4, 'b': 8 }, square); + * map({ 'a': 4, 'b': 8 }, square); * // => [16, 64] (iteration order is not guaranteed) */ function map(collection, iteratee) { diff --git a/mapKeys.js b/mapKeys.js index f578519b9..1a5e85c0d 100644 --- a/mapKeys.js +++ b/mapKeys.js @@ -2,22 +2,21 @@ import baseAssignValue from './_baseAssignValue.js'; import baseForOwn from './_baseForOwn.js'; /** - * The opposite of `_.mapValues`; this method creates an object with the + * The opposite of `mapValues`; this method creates an object with the * same values as `object` and keys generated by running each own enumerable * string keyed property of `object` thru `iteratee`. The iteratee is invoked * with three arguments: (value, key, object). * * @static - * @memberOf _ * @since 3.8.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns the new mapped object. - * @see _.mapValues + * @see mapValues * @example * - * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { + * mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { * return key + value; * }); * // => { 'a1': 1, 'b2': 2 } diff --git a/mapValues.js b/mapValues.js index 102ba4d6d..249e04e38 100644 --- a/mapValues.js +++ b/mapValues.js @@ -8,13 +8,12 @@ import baseForOwn from './_baseForOwn.js'; * (value, key, object). * * @static - * @memberOf _ * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns the new mapped object. - * @see _.mapKeys + * @see mapKeys * @example * * var users = { @@ -22,7 +21,7 @@ import baseForOwn from './_baseForOwn.js'; * 'pebbles': { 'user': 'pebbles', 'age': 1 } * }; * - * _.mapValues(users, function(o) { return o.age; }); + * mapValues(users, function(o) { return o.age; }); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) */ function mapValues(object, iteratee) { diff --git a/matches.js b/matches.js index d99201086..40185d81e 100644 --- a/matches.js +++ b/matches.js @@ -9,15 +9,14 @@ const CLONE_DEEP_FLAG = 1; * object and `source`, returning `true` if the given object has equivalent * property values, else `false`. * - * **Note:** The created function is equivalent to `_.isMatch` with `source` + * **Note:** The created function is equivalent to `isMatch` with `source` * partially applied. * * Partial comparisons will match empty array and empty object `source` - * values against any array or object value, respectively. See `_.isEqual` + * values against any array or object value, respectively. See `isEqual` * for a list of supported value comparisons. * * @static - * @memberOf _ * @since 3.0.0 * @category Util * @param {Object} source The object of property values to match. @@ -29,7 +28,7 @@ const CLONE_DEEP_FLAG = 1; * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.filter(objects, _.matches({ 'a': 4, 'c': 6 })); + * filter(objects, matches({ 'a': 4, 'c': 6 })); * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { diff --git a/matchesProperty.js b/matchesProperty.js index 4ec6d7942..3cd7b7a50 100644 --- a/matchesProperty.js +++ b/matchesProperty.js @@ -11,10 +11,9 @@ const CLONE_DEEP_FLAG = 1; * * **Note:** Partial comparisons will match empty array and empty object * `srcValue` values against any array or object value, respectively. See - * `_.isEqual` for a list of supported value comparisons. + * `isEqual` for a list of supported value comparisons. * * @static - * @memberOf _ * @since 3.2.0 * @category Util * @param {Array|string} path The path of the property to get. @@ -27,7 +26,7 @@ const CLONE_DEEP_FLAG = 1; * { 'a': 4, 'b': 5, 'c': 6 } * ]; * - * _.find(objects, _.matchesProperty('a', 4)); + * find(objects, matchesProperty('a', 4)); * // => { 'a': 4, 'b': 5, 'c': 6 } */ function matchesProperty(path, srcValue) { diff --git a/max.js b/max.js index 339496943..f34f290cc 100644 --- a/max.js +++ b/max.js @@ -8,16 +8,15 @@ import identity from './identity.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the maximum value. * @example * - * _.max([4, 2, 8, 6]); + * max([4, 2, 8, 6]); * // => 8 * - * _.max([]); + * max([]); * // => undefined */ function max(array) { diff --git a/maxBy.js b/maxBy.js index e69ac9ac0..daf8a9040 100644 --- a/maxBy.js +++ b/maxBy.js @@ -2,12 +2,11 @@ import baseExtremum from './_baseExtremum.js'; import baseGt from './_baseGt.js'; /** - * This method is like `_.max` except that it accepts `iteratee` which is + * This method is like `max` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * the value is ranked. The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. @@ -17,7 +16,7 @@ import baseGt from './_baseGt.js'; * * var objects = [{ 'n': 1 }, { 'n': 2 }]; * - * _.maxBy(objects, function(o) { return o.n; }); + * maxBy(objects, function(o) { return o.n; }); * // => { 'n': 2 } */ function maxBy(array, iteratee) { diff --git a/mean.js b/mean.js index 26ee2a958..5f5ccc82c 100644 --- a/mean.js +++ b/mean.js @@ -5,14 +5,13 @@ import identity from './identity.js'; * Computes the mean of the values in `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the mean. * @example * - * _.mean([4, 2, 8, 6]); + * mean([4, 2, 8, 6]); * // => 5 */ function mean(array) { diff --git a/meanBy.js b/meanBy.js index d2a4173a5..8880bebfb 100644 --- a/meanBy.js +++ b/meanBy.js @@ -4,12 +4,11 @@ import baseSum from './_baseSum.js'; const NAN = 0 / 0; /** - * This method is like `_.mean` except that it accepts `iteratee` which is + * This method is like `mean` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the value to be averaged. * The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.7.0 * @category Math * @param {Array} array The array to iterate over. @@ -19,7 +18,7 @@ const NAN = 0 / 0; * * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]; * - * _.meanBy(objects, function(o) { return o.n; }); + * meanBy(objects, function(o) { return o.n; }); * // => 5 */ function meanBy(array, iteratee) { diff --git a/memoize.js b/memoize.js index 24157538f..cff4ca0b5 100644 --- a/memoize.js +++ b/memoize.js @@ -11,13 +11,12 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` + * function. Its creation may be customized by replacing the `memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. @@ -28,7 +27,7 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * - * var values = _.memoize(_.values); + * var values = memoize(values); * values(object); * // => [1, 2] * @@ -44,8 +43,8 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * values(object); * // => ['a', 'b'] * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; + * // Replace `memoize.Cache`. + * memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { diff --git a/merge.js b/merge.js index 165f43f6c..10d938e20 100644 --- a/merge.js +++ b/merge.js @@ -2,7 +2,7 @@ import baseMerge from './_baseMerge.js'; import createAssigner from './_createAssigner.js'; /** - * This method is like `_.assign` except that it recursively merges own and + * This method is like `assign` except that it recursively merges own and * inherited enumerable string keyed properties of source objects into the * destination object. Source properties that resolve to `undefined` are * skipped if a destination value exists. Array and plain object properties @@ -13,7 +13,6 @@ import createAssigner from './_createAssigner.js'; * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 0.5.0 * @category Object * @param {Object} object The destination object. @@ -29,7 +28,7 @@ import createAssigner from './_createAssigner.js'; * 'a': [{ 'c': 3 }, { 'e': 5 }] * }; * - * _.merge(object, other); + * merge(object, other); * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } */ const merge = createAssigner((object, source, srcIndex) => { diff --git a/mergeWith.js b/mergeWith.js index 3a1be0ff7..3ed4a1ccd 100644 --- a/mergeWith.js +++ b/mergeWith.js @@ -2,7 +2,7 @@ import baseMerge from './_baseMerge.js'; import createAssigner from './_createAssigner.js'; /** - * This method is like `_.merge` except that it accepts `customizer` which + * This method is like `merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: @@ -11,7 +11,6 @@ import createAssigner from './_createAssigner.js'; * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. @@ -21,7 +20,7 @@ import createAssigner from './_createAssigner.js'; * @example * * function customizer(objValue, srcValue) { - * if (_.isArray(objValue)) { + * if (isArray(objValue)) { * return objValue.concat(srcValue); * } * } @@ -29,7 +28,7 @@ import createAssigner from './_createAssigner.js'; * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * - * _.mergeWith(object, other, customizer); + * mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ const mergeWith = createAssigner((object, source, srcIndex, customizer) => { diff --git a/method.js b/method.js index d8725cae6..5064fcc20 100644 --- a/method.js +++ b/method.js @@ -5,7 +5,6 @@ import baseInvoke from './_baseInvoke.js'; * Any additional arguments are provided to the invoked method. * * @static - * @memberOf _ * @since 3.7.0 * @category Util * @param {Array|string} path The path of the method to invoke. @@ -14,14 +13,14 @@ import baseInvoke from './_baseInvoke.js'; * @example * * var objects = [ - * { 'a': { 'b': _.constant(2) } }, - * { 'a': { 'b': _.constant(1) } } + * { 'a': { 'b': constant(2) } }, + * { 'a': { 'b': constant(1) } } * ]; * - * _.map(objects, _.method('a.b')); + * map(objects, method('a.b')); * // => [2, 1] * - * _.map(objects, _.method(['a', 'b'])); + * map(objects, method(['a', 'b'])); * // => [2, 1] */ function method(path, ...args) { diff --git a/methodOf.js b/methodOf.js index 90eceecb3..0e39c8b07 100644 --- a/methodOf.js +++ b/methodOf.js @@ -1,12 +1,11 @@ import baseInvoke from './_baseInvoke.js'; /** - * The opposite of `_.method`; this method creates a function that invokes + * The opposite of `method`; this method creates a function that invokes * the method at a given path of `object`. Any additional arguments are * provided to the invoked method. * * @static - * @memberOf _ * @since 3.7.0 * @category Util * @param {Object} object The object to query. @@ -14,13 +13,13 @@ import baseInvoke from './_baseInvoke.js'; * @returns {Function} Returns the new invoker function. * @example * - * var array = _.times(3, _.constant), + * var array = times(3, constant), * object = { 'a': array, 'b': array, 'c': array }; * - * _.map(['a[2]', 'c[0]'], _.methodOf(object)); + * map(['a[2]', 'c[0]'], methodOf(object)); * // => [2, 0] * - * _.map([['a', '2'], ['c', '0']], _.methodOf(object)); + * map([['a', '2'], ['c', '0']], methodOf(object)); * // => [2, 0] */ function methodOf(object, ...args) { diff --git a/min.js b/min.js index c411e51a9..38e668e39 100644 --- a/min.js +++ b/min.js @@ -8,16 +8,15 @@ import identity from './identity.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the minimum value. * @example * - * _.min([4, 2, 8, 6]); + * min([4, 2, 8, 6]); * // => 2 * - * _.min([]); + * min([]); * // => undefined */ function min(array) { diff --git a/minBy.js b/minBy.js index 0e0e5515e..510c15751 100644 --- a/minBy.js +++ b/minBy.js @@ -2,12 +2,11 @@ import baseExtremum from './_baseExtremum.js'; import baseLt from './_baseLt.js'; /** - * This method is like `_.min` except that it accepts `iteratee` which is + * This method is like `min` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * the value is ranked. The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. @@ -17,7 +16,7 @@ import baseLt from './_baseLt.js'; * * var objects = [{ 'n': 1 }, { 'n': 2 }]; * - * _.minBy(objects, function(o) { return o.n; }); + * minBy(objects, function(o) { return o.n; }); * // => { 'n': 1 } */ function minBy(array, iteratee) { diff --git a/multiply.js b/multiply.js index 0831be953..d985242b1 100644 --- a/multiply.js +++ b/multiply.js @@ -4,7 +4,6 @@ import createMathOperation from './_createMathOperation.js'; * Multiply two numbers. * * @static - * @memberOf _ * @since 4.7.0 * @category Math * @param {number} multiplier The first number in a multiplication. @@ -12,7 +11,7 @@ import createMathOperation from './_createMathOperation.js'; * @returns {number} Returns the product. * @example * - * _.multiply(6, 4); + * multiply(6, 4); * // => 24 */ const multiply = createMathOperation((multiplier, multiplicand) => multiplier * multiplicand, 1); diff --git a/negate.js b/negate.js index 16eb8fa6e..76edd879a 100644 --- a/negate.js +++ b/negate.js @@ -7,7 +7,6 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * created function. * * @static - * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} predicate The predicate to negate. @@ -18,7 +17,7 @@ const FUNC_ERROR_TEXT = 'Expected a function'; * return n % 2 == 0; * } * - * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); + * filter([1, 2, 3, 4, 5, 6], negate(isEven)); * // => [1, 3, 5] */ function negate(predicate) { diff --git a/noop.js b/noop.js index 6b4847c11..3c14ee2df 100644 --- a/noop.js +++ b/noop.js @@ -2,12 +2,11 @@ * This method returns `undefined`. * * @static - * @memberOf _ * @since 2.3.0 * @category Util * @example * - * _.times(2, _.noop); + * times(2, noop); * // => [undefined, undefined] */ function noop() { diff --git a/now.js b/now.js index 3167edc80..7d337bb6c 100644 --- a/now.js +++ b/now.js @@ -5,15 +5,14 @@ import root from './_root.js'; * the Unix epoch (1 January 1970 00:00:00 UTC). * * @static - * @memberOf _ * @since 2.4.0 * @category Date * @returns {number} Returns the timestamp. * @example * - * _.defer(function(stamp) { - * console.log(_.now() - stamp); - * }, _.now()); + * defer(function(stamp) { + * console.log(now() - stamp); + * }, now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ const now = () => root.Date.now(); diff --git a/nth.js b/nth.js index 8ebf9498c..489715294 100644 --- a/nth.js +++ b/nth.js @@ -6,7 +6,6 @@ import toInteger from './toInteger.js'; * element from the end is returned. * * @static - * @memberOf _ * @since 4.11.0 * @category Array * @param {Array} array The array to query. @@ -16,10 +15,10 @@ import toInteger from './toInteger.js'; * * var array = ['a', 'b', 'c', 'd']; * - * _.nth(array, 1); + * nth(array, 1); * // => 'b' * - * _.nth(array, -2); + * nth(array, -2); * // => 'c'; */ function nth(array, n) { diff --git a/nthArg.js b/nthArg.js index 574e0719c..7fe1b514d 100644 --- a/nthArg.js +++ b/nthArg.js @@ -6,18 +6,17 @@ import toInteger from './toInteger.js'; * the nth argument from the end is returned. * * @static - * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [n=0] The index of the argument to return. * @returns {Function} Returns the new pass-thru function. * @example * - * var func = _.nthArg(1); + * var func = nthArg(1); * func('a', 'b', 'c', 'd'); * // => 'b' * - * var func = _.nthArg(-2); + * var func = nthArg(-2); * func('a', 'b', 'c', 'd'); * // => 'c' */ diff --git a/once.js b/once.js index 603c73ee3..3d16a66e0 100644 --- a/once.js +++ b/once.js @@ -6,14 +6,13 @@ import before from './before.js'; * invoked with the `this` binding and arguments of the created function. * * @static - * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to restrict. * @returns {Function} Returns the new restricted function. * @example * - * var initialize = _.once(createApplication); + * var initialize = once(createApplication); * initialize(); * initialize(); * // => `createApplication` is invoked once diff --git a/orderBy.js b/orderBy.js index 2f9e00e46..e008922ed 100644 --- a/orderBy.js +++ b/orderBy.js @@ -2,20 +2,19 @@ import baseOrderBy from './_baseOrderBy.js'; import isArray from './isArray.js'; /** - * This method is like `_.sortBy` except that it allows specifying the sort + * This method is like `sortBy` except that it allows specifying the sort * orders of the iteratees to sort by. If `orders` is unspecified, all values * are sorted in ascending order. Otherwise, specify an order of "desc" for * descending or "asc" for ascending sort order of corresponding values. * * @static - * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. - * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] + * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[identity]] * The iteratees to sort by. * @param {string[]} [orders] The sort orders of `iteratees`. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `reduce`. * @returns {Array} Returns the new sorted array. * @example * @@ -27,7 +26,7 @@ import isArray from './isArray.js'; * ]; * * // Sort by `user` in ascending order and by `age` in descending order. - * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); + * orderBy(users, ['user', 'age'], ['asc', 'desc']); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ function orderBy(collection, iteratees, orders, guard) { diff --git a/over.js b/over.js index 5313b2622..d126be939 100644 --- a/over.js +++ b/over.js @@ -6,15 +6,14 @@ import createOver from './_createOver.js'; * and returns their results. * * @static - * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Function|Function[])} [iteratees=[_.identity]] + * @param {...(Function|Function[])} [iteratees=[identity]] * The iteratees to invoke. * @returns {Function} Returns the new function. * @example * - * var func = _.over([Math.max, Math.min]); + * var func = over([Math.max, Math.min]); * * func(1, 2, 3, 4); * // => [4, 1] diff --git a/overArgs.js b/overArgs.js index f8942f991..a4ba1d3f6 100644 --- a/overArgs.js +++ b/overArgs.js @@ -9,10 +9,9 @@ const nativeMin = Math.min; * * @static * @since 4.0.0 - * @memberOf _ * @category Function * @param {Function} func The function to wrap. - * @param {...(Function|Function[])} [transforms=[_.identity]] + * @param {...(Function|Function[])} [transforms=[identity]] * The argument transforms. * @returns {Function} Returns the new function. * @example @@ -25,7 +24,7 @@ const nativeMin = Math.min; * return n * n; * } * - * var func = _.overArgs(function(x, y) { + * var func = overArgs(function(x, y) { * return [x, y]; * }, [square, doubled]); * diff --git a/overEvery.js b/overEvery.js index 448dd9b90..7a89b5679 100644 --- a/overEvery.js +++ b/overEvery.js @@ -6,15 +6,14 @@ import createOver from './_createOver.js'; * truthy when invoked with the arguments it receives. * * @static - * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Function|Function[])} [predicates=[_.identity]] + * @param {...(Function|Function[])} [predicates=[identity]] * The predicates to check. * @returns {Function} Returns the new function. * @example * - * var func = _.overEvery([Boolean, isFinite]); + * var func = overEvery([Boolean, isFinite]); * * func('1'); * // => true diff --git a/overSome.js b/overSome.js index f5fff5780..bc8af72c7 100644 --- a/overSome.js +++ b/overSome.js @@ -6,15 +6,14 @@ import createOver from './_createOver.js'; * truthy when invoked with the arguments it receives. * * @static - * @memberOf _ * @since 4.0.0 * @category Util - * @param {...(Function|Function[])} [predicates=[_.identity]] + * @param {...(Function|Function[])} [predicates=[identity]] * The predicates to check. * @returns {Function} Returns the new function. * @example * - * var func = _.overSome([Boolean, isFinite]); + * var func = overSome([Boolean, isFinite]); * * func('1'); * // => true diff --git a/pad.js b/pad.js index 663a0ddf8..656643d12 100644 --- a/pad.js +++ b/pad.js @@ -12,7 +12,6 @@ const nativeFloor = Math.floor; * Padding characters are truncated if they can't be evenly divided by `length`. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to pad. @@ -21,13 +20,13 @@ const nativeFloor = Math.floor; * @returns {string} Returns the padded string. * @example * - * _.pad('abc', 8); + * pad('abc', 8); * // => ' abc ' * - * _.pad('abc', 8, '_-'); + * pad('abc', 8, '_-'); * // => '_-abc_-_' * - * _.pad('abc', 3); + * pad('abc', 3); * // => 'abc' */ function pad(string, length, chars) { diff --git a/padEnd.js b/padEnd.js index 79db66097..efc7aa7e5 100644 --- a/padEnd.js +++ b/padEnd.js @@ -8,7 +8,6 @@ import toString from './toString.js'; * characters are truncated if they exceed `length`. * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to pad. @@ -17,13 +16,13 @@ import toString from './toString.js'; * @returns {string} Returns the padded string. * @example * - * _.padEnd('abc', 6); + * padEnd('abc', 6); * // => 'abc ' * - * _.padEnd('abc', 6, '_-'); + * padEnd('abc', 6, '_-'); * // => 'abc_-_' * - * _.padEnd('abc', 3); + * padEnd('abc', 3); * // => 'abc' */ function padEnd(string, length, chars) { diff --git a/padStart.js b/padStart.js index 072fc4d0f..974046a91 100644 --- a/padStart.js +++ b/padStart.js @@ -8,7 +8,6 @@ import toString from './toString.js'; * characters are truncated if they exceed `length`. * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to pad. @@ -17,13 +16,13 @@ import toString from './toString.js'; * @returns {string} Returns the padded string. * @example * - * _.padStart('abc', 6); + * padStart('abc', 6); * // => ' abc' * - * _.padStart('abc', 6, '_-'); + * padStart('abc', 6, '_-'); * // => '_-_abc' * - * _.padStart('abc', 3); + * padStart('abc', 3); * // => 'abc' */ function padStart(string, length, chars) { diff --git a/parseInt.js b/parseInt.js index d27ce1862..2021c1024 100644 --- a/parseInt.js +++ b/parseInt.js @@ -16,19 +16,18 @@ const nativeParseInt = root.parseInt; * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. * * @static - * @memberOf _ * @since 1.1.0 * @category String * @param {string} string The string to convert. * @param {number} [radix=10] The radix to interpret `value` by. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {number} Returns the converted integer. * @example * - * _.parseInt('08'); + * parseInt('08'); * // => 8 * - * _.map(['6', '08', '10'], _.parseInt); + * map(['6', '08', '10'], parseInt); * // => [6, 8, 10] */ function parseInt(string, radix, guard) { diff --git a/partition.js b/partition.js index f7babe6da..00368692e 100644 --- a/partition.js +++ b/partition.js @@ -7,7 +7,6 @@ import createAggregator from './_createAggregator.js'; * invoked with one argument: (value). * * @static - * @memberOf _ * @since 3.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. @@ -21,7 +20,7 @@ import createAggregator from './_createAggregator.js'; * { 'user': 'pebbles', 'age': 1, 'active': false } * ]; * - * _.partition(users, function(o) { return o.active; }); + * partition(users, function(o) { return o.active; }); * // => objects for [['fred'], ['barney', 'pebbles']] */ const partition = createAggregator((result, value, key) => diff --git a/pick.js b/pick.js index fa4ffae5a..5fe440d36 100644 --- a/pick.js +++ b/pick.js @@ -5,7 +5,6 @@ import basePick from './_basePick.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to pick. @@ -14,7 +13,7 @@ import basePick from './_basePick.js'; * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * - * _.pick(object, ['a', 'c']); + * pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ function pick(object, ...paths) { diff --git a/pickBy.js b/pickBy.js index 286e18c4b..688553a6d 100644 --- a/pickBy.js +++ b/pickBy.js @@ -7,7 +7,6 @@ import getAllKeysIn from './_getAllKeysIn.js'; * truthy for. The predicate is invoked with two arguments: (value, key). * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The source object. @@ -17,7 +16,7 @@ import getAllKeysIn from './_getAllKeysIn.js'; * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * - * _.pickBy(object, _.isNumber); + * pickBy(object, isNumber); * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { diff --git a/property.js b/property.js index 45152aa46..2645a61c4 100644 --- a/property.js +++ b/property.js @@ -7,7 +7,6 @@ import toKey from './_toKey.js'; * Creates a function that returns the value at `path` of a given object. * * @static - * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. @@ -19,10 +18,10 @@ import toKey from './_toKey.js'; * { 'a': { 'b': 1 } } * ]; * - * _.map(objects, _.property('a.b')); + * map(objects, property('a.b')); * // => [2, 1] * - * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); + * map(sortBy(objects, property(['a', 'b'])), 'a.b'); * // => [1, 2] */ function property(path) { diff --git a/propertyOf.js b/propertyOf.js index 2641b78e4..32b90fcb2 100644 --- a/propertyOf.js +++ b/propertyOf.js @@ -1,11 +1,10 @@ import baseGet from './_baseGet.js'; /** - * The opposite of `_.property`; this method creates a function that returns + * The opposite of `property`; this method creates a function that returns * the value at a given path of `object`. * * @static - * @memberOf _ * @since 3.0.0 * @category Util * @param {Object} object The object to query. @@ -15,10 +14,10 @@ import baseGet from './_baseGet.js'; * var array = [0, 1, 2], * object = { 'a': array, 'b': array, 'c': array }; * - * _.map(['a[2]', 'c[0]'], _.propertyOf(object)); + * map(['a[2]', 'c[0]'], propertyOf(object)); * // => [2, 0] * - * _.map([['a', '2'], ['c', '0']], _.propertyOf(object)); + * map([['a', '2'], ['c', '0']], propertyOf(object)); * // => [2, 0] */ function propertyOf(object) { diff --git a/pull.js b/pull.js index f4e1404ff..f2d0f3ddd 100644 --- a/pull.js +++ b/pull.js @@ -5,11 +5,10 @@ import pullAll from './pullAll.js'; * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * - * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` + * **Note:** Unlike `without`, this method mutates `array`. Use `remove` * to remove elements from an array by predicate. * * @static - * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. @@ -19,7 +18,7 @@ import pullAll from './pullAll.js'; * * var array = ['a', 'b', 'c', 'a', 'b', 'c']; * - * _.pull(array, 'a', 'c'); + * pull(array, 'a', 'c'); * console.log(array); * // => ['b', 'b'] */ diff --git a/pullAll.js b/pullAll.js index fe3a2b5af..94a23ef8e 100644 --- a/pullAll.js +++ b/pullAll.js @@ -1,12 +1,11 @@ import basePullAll from './_basePullAll.js'; /** - * This method is like `_.pull` except that it accepts an array of values to remove. + * This method is like `pull` except that it accepts an array of values to remove. * - * **Note:** Unlike `_.difference`, this method mutates `array`. + * **Note:** Unlike `difference`, this method mutates `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. @@ -16,7 +15,7 @@ import basePullAll from './_basePullAll.js'; * * var array = ['a', 'b', 'c', 'a', 'b', 'c']; * - * _.pullAll(array, ['a', 'c']); + * pullAll(array, ['a', 'c']); * console.log(array); * // => ['b', 'b'] */ diff --git a/pullAllBy.js b/pullAllBy.js index 142d5e7de..63b4256cd 100644 --- a/pullAllBy.js +++ b/pullAllBy.js @@ -1,14 +1,13 @@ import basePullAll from './_basePullAll.js'; /** - * This method is like `_.pullAll` except that it accepts `iteratee` which is + * This method is like `pullAll` except that it accepts `iteratee` which is * invoked for each element of `array` and `values` to generate the criterion * by which they're compared. The iteratee is invoked with one argument: (value). * - * **Note:** Unlike `_.differenceBy`, this method mutates `array`. + * **Note:** Unlike `differenceBy`, this method mutates `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. @@ -19,7 +18,7 @@ import basePullAll from './_basePullAll.js'; * * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * - * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); + * pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ diff --git a/pullAllWith.js b/pullAllWith.js index f60530dd4..16cd4af06 100644 --- a/pullAllWith.js +++ b/pullAllWith.js @@ -1,14 +1,13 @@ import basePullAll from './_basePullAll.js'; /** - * This method is like `_.pullAll` except that it accepts `comparator` which + * This method is like `pullAll` except that it accepts `comparator` which * is invoked to compare elements of `array` to `values`. The comparator is * invoked with two arguments: (arrVal, othVal). * - * **Note:** Unlike `_.differenceWith`, this method mutates `array`. + * **Note:** Unlike `differenceWith`, this method mutates `array`. * * @static - * @memberOf _ * @since 4.6.0 * @category Array * @param {Array} array The array to modify. @@ -19,7 +18,7 @@ import basePullAll from './_basePullAll.js'; * * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; * - * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); + * pullAllWith(array, [{ 'x': 3, 'y': 4 }], isEqual); * console.log(array); * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] */ diff --git a/pullAt.js b/pullAt.js index 727690085..c62f0566e 100644 --- a/pullAt.js +++ b/pullAt.js @@ -8,10 +8,9 @@ import isIndex from './_isIndex.js'; * Removes elements from `array` corresponding to `indexes` and returns an * array of removed elements. * - * **Note:** Unlike `_.at`, this method mutates `array`. + * **Note:** Unlike `at`, this method mutates `array`. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to modify. @@ -20,7 +19,7 @@ import isIndex from './_isIndex.js'; * @example * * var array = ['a', 'b', 'c', 'd']; - * var pulled = _.pullAt(array, [1, 3]); + * var pulled = pullAt(array, [1, 3]); * * console.log(array); * // => ['a', 'c'] diff --git a/random.js b/random.js index c332b9e37..2ca31e693 100644 --- a/random.js +++ b/random.js @@ -19,7 +19,6 @@ const nativeRandom = Math.random; * floating-point values which can produce unexpected results. * * @static - * @memberOf _ * @since 0.7.0 * @category Number * @param {number} [lower=0] The lower bound. @@ -28,16 +27,16 @@ const nativeRandom = Math.random; * @returns {number} Returns the random number. * @example * - * _.random(0, 5); + * random(0, 5); * // => an integer between 0 and 5 * - * _.random(5); + * random(5); * // => also an integer between 0 and 5 * - * _.random(5, true); + * random(5, true); * // => a floating-point number between 0 and 5 * - * _.random(1.2, 5.2); + * random(1.2, 5.2); * // => a floating-point number between 1.2 and 5.2 */ function random(lower, upper, floating) { diff --git a/range.js b/range.js index cacdd108c..a6fe29e0c 100644 --- a/range.js +++ b/range.js @@ -11,34 +11,33 @@ import createRange from './_createRange.js'; * * @static * @since 0.1.0 - * @memberOf _ * @category Util * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @param {number} [step=1] The value to increment or decrement by. * @returns {Array} Returns the range of numbers. - * @see _.inRange, _.rangeRight + * @see inRange, rangeRight * @example * - * _.range(4); + * range(4); * // => [0, 1, 2, 3] * - * _.range(-4); + * range(-4); * // => [0, -1, -2, -3] * - * _.range(1, 5); + * range(1, 5); * // => [1, 2, 3, 4] * - * _.range(0, 20, 5); + * range(0, 20, 5); * // => [0, 5, 10, 15] * - * _.range(0, -4, -1); + * range(0, -4, -1); * // => [0, -1, -2, -3] * - * _.range(1, 4, 0); + * range(1, 4, 0); * // => [1, 1, 1] * - * _.range(0); + * range(0); * // => [] */ const range = createRange(); diff --git a/rangeRight.js b/rangeRight.js index 5fac26e9e..e8f982180 100644 --- a/rangeRight.js +++ b/rangeRight.js @@ -1,39 +1,38 @@ import createRange from './_createRange.js'; /** - * This method is like `_.range` except that it populates values in + * This method is like `range` except that it populates values in * descending order. * * @static - * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @param {number} [step=1] The value to increment or decrement by. * @returns {Array} Returns the range of numbers. - * @see _.inRange, _.range + * @see inRange, range * @example * - * _.rangeRight(4); + * rangeRight(4); * // => [3, 2, 1, 0] * - * _.rangeRight(-4); + * rangeRight(-4); * // => [-3, -2, -1, 0] * - * _.rangeRight(1, 5); + * rangeRight(1, 5); * // => [4, 3, 2, 1] * - * _.rangeRight(0, 20, 5); + * rangeRight(0, 20, 5); * // => [15, 10, 5, 0] * - * _.rangeRight(0, -4, -1); + * rangeRight(0, -4, -1); * // => [-3, -2, -1, 0] * - * _.rangeRight(1, 4, 0); + * rangeRight(1, 4, 0); * // => [1, 1, 1] * - * _.rangeRight(0); + * rangeRight(0); * // => [] */ const rangeRight = createRange(true); diff --git a/rearg.js b/rearg.js index 36c7147b6..917bdecc7 100644 --- a/rearg.js +++ b/rearg.js @@ -10,7 +10,6 @@ const WRAP_REARG_FLAG = 256; * provided as the second argument, and so on. * * @static - * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to rearrange arguments for. @@ -18,7 +17,7 @@ const WRAP_REARG_FLAG = 256; * @returns {Function} Returns the new function. * @example * - * var rearged = _.rearg(function(a, b, c) { + * var rearged = rearg(function(a, b, c) { * return [a, b, c]; * }, [2, 0, 1]); * diff --git a/reduce.js b/reduce.js index 645dfce81..d29e5a309 100644 --- a/reduce.js +++ b/reduce.js @@ -12,29 +12,28 @@ import isArray from './isArray.js'; * (accumulator, value, index|key, collection). * * Many lodash methods are guarded to work as iteratees for methods like - * `_.reduce`, `_.reduceRight`, and `_.transform`. + * `reduce`, `reduceRight`, and `transform`. * * The guarded methods are: * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, * and `sortBy` * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @returns {*} Returns the accumulated value. - * @see _.reduceRight + * @see reduceRight * @example * - * _.reduce([1, 2], function(sum, n) { + * reduce([1, 2], function(sum, n) { * return sum + n; * }, 0); * // => 3 * - * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { * (result[value] || (result[value] = [])).push(key); * return result; * }, {}); diff --git a/reduceRight.js b/reduceRight.js index 241adf6d2..4eb029110 100644 --- a/reduceRight.js +++ b/reduceRight.js @@ -4,23 +4,22 @@ import baseReduce from './_baseReduce.js'; import isArray from './isArray.js'; /** - * This method is like `_.reduce` except that it iterates over elements of + * This method is like `reduce` except that it iterates over elements of * `collection` from right to left. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @returns {*} Returns the accumulated value. - * @see _.reduce + * @see reduce * @example * * var array = [[0, 1], [2, 3], [4, 5]]; * - * _.reduceRight(array, function(flattened, other) { + * reduceRight(array, function(flattened, other) { * return flattened.concat(other); * }, []); * // => [4, 5, 2, 3, 0, 1] diff --git a/reject.js b/reject.js index d3452b055..127323784 100644 --- a/reject.js +++ b/reject.js @@ -4,17 +4,16 @@ import isArray from './isArray.js'; import negate from './negate.js'; /** - * The opposite of `_.filter`; this method returns the elements of `collection` + * The opposite of `filter`; this method returns the elements of `collection` * that `predicate` does **not** return truthy for. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. - * @see _.filter + * @see filter * @example * * var users = [ @@ -22,7 +21,7 @@ import negate from './negate.js'; * { 'user': 'fred', 'age': 40, 'active': true } * ]; * - * _.reject(users, function(o) { return !o.active; }); + * reject(users, function(o) { return !o.active; }); * // => objects for ['fred'] */ function reject(collection, predicate) { diff --git a/remove.js b/remove.js index cf9e12dca..aea6c687c 100644 --- a/remove.js +++ b/remove.js @@ -5,11 +5,10 @@ import basePullAt from './_basePullAt.js'; * and returns an array of the removed elements. The predicate is invoked * with three arguments: (value, index, array). * - * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull` + * **Note:** Unlike `filter`, this method mutates `array`. Use `pull` * to pull elements from an array by value. * * @static - * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. @@ -18,7 +17,7 @@ import basePullAt from './_basePullAt.js'; * @example * * var array = [1, 2, 3, 4]; - * var evens = _.remove(array, function(n) { + * var evens = remove(array, function(n) { * return n % 2 == 0; * }); * diff --git a/repeat.js b/repeat.js index 353e98cc7..4a0a40e27 100644 --- a/repeat.js +++ b/repeat.js @@ -7,22 +7,21 @@ import toString from './toString.js'; * Repeats the given string `n` times. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to repeat. * @param {number} [n=1] The number of times to repeat the string. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {string} Returns the repeated string. * @example * - * _.repeat('*', 3); + * repeat('*', 3); * // => '***' * - * _.repeat('abc', 2); + * repeat('abc', 2); * // => 'abcabc' * - * _.repeat('abc', 0); + * repeat('abc', 0); * // => '' */ function repeat(string, n, guard) { diff --git a/replace.js b/replace.js index 9a714e0f5..39f95e024 100644 --- a/replace.js +++ b/replace.js @@ -7,7 +7,6 @@ import toString from './toString.js'; * [`String#replace`](https://mdn.io/String/replace). * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to modify. @@ -16,7 +15,7 @@ import toString from './toString.js'; * @returns {string} Returns the modified string. * @example * - * _.replace('Hi Fred', 'Fred', 'Barney'); + * replace('Hi Fred', 'Fred', 'Barney'); * // => 'Hi Barney' */ function replace() { diff --git a/result.js b/result.js index 7628f5c2d..ffb7116ba 100644 --- a/result.js +++ b/result.js @@ -3,13 +3,12 @@ import isFunction from './isFunction.js'; import toKey from './_toKey.js'; /** - * This method is like `_.get` except that if the resolved value is a + * This method is like `get` except that if the resolved value is a * function it's invoked with the `this` binding of its parent object and * its result is returned. * * @static * @since 0.1.0 - * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to resolve. @@ -17,18 +16,18 @@ import toKey from './_toKey.js'; * @returns {*} Returns the resolved value. * @example * - * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; + * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': constant(4) } }] }; * - * _.result(object, 'a[0].b.c1'); + * result(object, 'a[0].b.c1'); * // => 3 * - * _.result(object, 'a[0].b.c2'); + * result(object, 'a[0].b.c2'); * // => 4 * - * _.result(object, 'a[0].b.c3', 'default'); + * result(object, 'a[0].b.c3', 'default'); * // => 'default' * - * _.result(object, 'a[0].b.c3', _.constant('default')); + * result(object, 'a[0].b.c3', constant('default')); * // => 'default' */ function result(object, path, defaultValue) { diff --git a/reverse.js b/reverse.js index 178abbbd7..8c00fc1ae 100644 --- a/reverse.js +++ b/reverse.js @@ -12,7 +12,6 @@ const nativeReverse = arrayProto.reverse; * [`Array#reverse`](https://mdn.io/Array/reverse). * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. @@ -21,7 +20,7 @@ const nativeReverse = arrayProto.reverse; * * var array = [1, 2, 3]; * - * _.reverse(array); + * reverse(array); * // => [3, 2, 1] * * console.log(array); diff --git a/round.js b/round.js index 20caf9529..9ca09ec54 100644 --- a/round.js +++ b/round.js @@ -4,7 +4,6 @@ import createRound from './_createRound.js'; * Computes `number` rounded to `precision`. * * @static - * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round. @@ -12,13 +11,13 @@ import createRound from './_createRound.js'; * @returns {number} Returns the rounded number. * @example * - * _.round(4.006); + * round(4.006); * // => 4 * - * _.round(4.006, 2); + * round(4.006, 2); * // => 4.01 * - * _.round(4060, -2); + * round(4060, -2); * // => 4100 */ const round = createRound('round'); diff --git a/sample.js b/sample.js index 1276c366e..e22dff1b3 100644 --- a/sample.js +++ b/sample.js @@ -6,14 +6,13 @@ import isArray from './isArray.js'; * Gets a random element from `collection`. * * @static - * @memberOf _ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element. * @example * - * _.sample([1, 2, 3, 4]); + * sample([1, 2, 3, 4]); * // => 2 */ function sample(collection) { diff --git a/sampleSize.js b/sampleSize.js index 2fba70eb2..420250e8a 100644 --- a/sampleSize.js +++ b/sampleSize.js @@ -9,19 +9,18 @@ import toInteger from './toInteger.js'; * size of `collection`. * * @static - * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @param {number} [n=1] The number of elements to sample. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the random elements. * @example * - * _.sampleSize([1, 2, 3], 2); + * sampleSize([1, 2, 3], 2); * // => [3, 1] * - * _.sampleSize([1, 2, 3], 4); + * sampleSize([1, 2, 3], 4); * // => [2, 3, 1] */ function sampleSize(collection, n, guard) { diff --git a/set.js b/set.js index 15ed46e3b..4a1baab42 100644 --- a/set.js +++ b/set.js @@ -3,13 +3,12 @@ import baseSet from './_baseSet.js'; /** * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, * it's created. Arrays are created for missing index properties while objects - * are created for all other missing properties. Use `_.setWith` to customize + * are created for all other missing properties. Use `setWith` to customize * `path` creation. * * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to modify. @@ -20,11 +19,11 @@ import baseSet from './_baseSet.js'; * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * - * _.set(object, 'a[0].b.c', 4); + * set(object, 'a[0].b.c', 4); * console.log(object.a[0].b.c); * // => 4 * - * _.set(object, ['x', '0', 'y', 'z'], 5); + * set(object, ['x', '0', 'y', 'z'], 5); * console.log(object.x[0].y.z); * // => 5 */ diff --git a/setWith.js b/setWith.js index 963fcd803..6cfe2189b 100644 --- a/setWith.js +++ b/setWith.js @@ -1,7 +1,7 @@ import baseSet from './_baseSet.js'; /** - * This method is like `_.set` except that it accepts `customizer` which is + * This method is like `set` except that it accepts `customizer` which is * invoked to produce the objects of `path`. If `customizer` returns `undefined` * path creation is handled by the method instead. The `customizer` is invoked * with three arguments: (nsValue, key, nsObject). @@ -9,7 +9,6 @@ import baseSet from './_baseSet.js'; * **Note:** This method mutates `object`. * * @static - * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to modify. @@ -21,7 +20,7 @@ import baseSet from './_baseSet.js'; * * var object = {}; * - * _.setWith(object, '[0][1]', 'a', Object); + * setWith(object, '[0][1]', 'a', Object); * // => { '0': { '1': 'a' } } */ function setWith(object, path, value, customizer) { diff --git a/shuffle.js b/shuffle.js index 8b0a93cf9..eeaf104a9 100644 --- a/shuffle.js +++ b/shuffle.js @@ -7,14 +7,13 @@ import isArray from './isArray.js'; * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to shuffle. * @returns {Array} Returns the new shuffled array. * @example * - * _.shuffle([1, 2, 3, 4]); + * shuffle([1, 2, 3, 4]); * // => [4, 1, 3, 2] */ function shuffle(collection) { diff --git a/size.js b/size.js index d62b17a20..9a41ffc5e 100644 --- a/size.js +++ b/size.js @@ -13,20 +13,19 @@ const setTag = '[object Set]'; * values or the number of own enumerable string keyed properties for objects. * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @returns {number} Returns the collection size. * @example * - * _.size([1, 2, 3]); + * size([1, 2, 3]); * // => 3 * - * _.size({ 'a': 1, 'b': 2 }); + * size({ 'a': 1, 'b': 2 }); * // => 2 * - * _.size('pebbles'); + * size('pebbles'); * // => 7 */ function size(collection) { diff --git a/slice.js b/slice.js index ef3540670..1a59411da 100644 --- a/slice.js +++ b/slice.js @@ -10,7 +10,6 @@ import toInteger from './toInteger.js'; * returned. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to slice. diff --git a/snakeCase.js b/snakeCase.js index 79236a58f..515e3dfa2 100644 --- a/snakeCase.js +++ b/snakeCase.js @@ -5,20 +5,19 @@ import createCompounder from './_createCompounder.js'; * [snake case](https://en.wikipedia.org/wiki/Snake_case). * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the snake cased string. * @example * - * _.snakeCase('Foo Bar'); + * snakeCase('Foo Bar'); * // => 'foo_bar' * - * _.snakeCase('fooBar'); + * snakeCase('fooBar'); * // => 'foo_bar' * - * _.snakeCase('--FOO-BAR--'); + * snakeCase('--FOO-BAR--'); * // => 'foo_bar' */ const snakeCase = createCompounder((result, word, index) => diff --git a/some.js b/some.js index 311eeeb73..e379c08b5 100644 --- a/some.js +++ b/some.js @@ -9,17 +9,16 @@ import isIterateeCall from './_isIterateeCall.js'; * invoked with three arguments: (value, index|key, collection). * * @static - * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. * @example * - * _.some([null, 0, 'yes', false], Boolean); + * some([null, 0, 'yes', false], Boolean); * // => true */ function some(collection, predicate, guard) { diff --git a/sortedIndex.js b/sortedIndex.js index 5104d8dd1..856620582 100644 --- a/sortedIndex.js +++ b/sortedIndex.js @@ -5,7 +5,6 @@ import baseSortedIndex from './_baseSortedIndex.js'; * should be inserted into `array` in order to maintain its sort order. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The sorted array to inspect. @@ -14,7 +13,7 @@ import baseSortedIndex from './_baseSortedIndex.js'; * into `array`. * @example * - * _.sortedIndex([30, 50], 40); + * sortedIndex([30, 50], 40); * // => 1 */ function sortedIndex(array, value) { diff --git a/sortedIndexBy.js b/sortedIndexBy.js index 790497174..b45021ea2 100644 --- a/sortedIndexBy.js +++ b/sortedIndexBy.js @@ -1,12 +1,11 @@ import baseSortedIndexBy from './_baseSortedIndexBy.js'; /** - * This method is like `_.sortedIndex` except that it accepts `iteratee` + * This method is like `sortedIndex` except that it accepts `iteratee` * which is invoked for `value` and each element of `array` to compute their * sort ranking. The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The sorted array to inspect. @@ -18,7 +17,7 @@ import baseSortedIndexBy from './_baseSortedIndexBy.js'; * * var objects = [{ 'x': 4 }, { 'x': 5 }]; * - * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); * // => 0 */ function sortedIndexBy(array, value, iteratee) { diff --git a/sortedIndexOf.js b/sortedIndexOf.js index 998a00509..48f1d38ff 100644 --- a/sortedIndexOf.js +++ b/sortedIndexOf.js @@ -2,11 +2,10 @@ import baseSortedIndex from './_baseSortedIndex.js'; import eq from './eq.js'; /** - * This method is like `_.indexOf` except that it performs a binary + * This method is like `indexOf` except that it performs a binary * search on a sorted `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. @@ -14,7 +13,7 @@ import eq from './eq.js'; * @returns {number} Returns the index of the matched value, else `-1`. * @example * - * _.sortedIndexOf([4, 5, 5, 5, 6], 5); + * sortedIndexOf([4, 5, 5, 5, 6], 5); * // => 1 */ function sortedIndexOf(array, value) { diff --git a/sortedLastIndex.js b/sortedLastIndex.js index a9cdeee89..9a5496abe 100644 --- a/sortedLastIndex.js +++ b/sortedLastIndex.js @@ -1,12 +1,11 @@ import baseSortedIndex from './_baseSortedIndex.js'; /** - * This method is like `_.sortedIndex` except that it returns the highest + * This method is like `sortedIndex` except that it returns the highest * index at which `value` should be inserted into `array` in order to * maintain its sort order. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The sorted array to inspect. @@ -15,7 +14,7 @@ import baseSortedIndex from './_baseSortedIndex.js'; * into `array`. * @example * - * _.sortedLastIndex([4, 5, 5, 5, 6], 5); + * sortedLastIndex([4, 5, 5, 5, 6], 5); * // => 4 */ function sortedLastIndex(array, value) { diff --git a/sortedLastIndexBy.js b/sortedLastIndexBy.js index 9eea27364..88d538b25 100644 --- a/sortedLastIndexBy.js +++ b/sortedLastIndexBy.js @@ -1,12 +1,11 @@ import baseSortedIndexBy from './_baseSortedIndexBy.js'; /** - * This method is like `_.sortedLastIndex` except that it accepts `iteratee` + * This method is like `sortedLastIndex` except that it accepts `iteratee` * which is invoked for `value` and each element of `array` to compute their * sort ranking. The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The sorted array to inspect. @@ -18,7 +17,7 @@ import baseSortedIndexBy from './_baseSortedIndexBy.js'; * * var objects = [{ 'x': 4 }, { 'x': 5 }]; * - * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); * // => 1 */ function sortedLastIndexBy(array, value, iteratee) { diff --git a/sortedLastIndexOf.js b/sortedLastIndexOf.js index 7dfa07186..166b77445 100644 --- a/sortedLastIndexOf.js +++ b/sortedLastIndexOf.js @@ -2,11 +2,10 @@ import baseSortedIndex from './_baseSortedIndex.js'; import eq from './eq.js'; /** - * This method is like `_.lastIndexOf` except that it performs a binary + * This method is like `lastIndexOf` except that it performs a binary * search on a sorted `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. @@ -14,7 +13,7 @@ import eq from './eq.js'; * @returns {number} Returns the index of the matched value, else `-1`. * @example * - * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); + * sortedLastIndexOf([4, 5, 5, 5, 6], 5); * // => 3 */ function sortedLastIndexOf(array, value) { diff --git a/sortedUniq.js b/sortedUniq.js index f0d1c569c..149c32a48 100644 --- a/sortedUniq.js +++ b/sortedUniq.js @@ -1,18 +1,17 @@ import baseSortedUniq from './_baseSortedUniq.js'; /** - * This method is like `_.uniq` except that it's designed and optimized + * This method is like `uniq` except that it's designed and optimized * for sorted arrays. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @returns {Array} Returns the new duplicate free array. * @example * - * _.sortedUniq([1, 1, 2]); + * sortedUniq([1, 1, 2]); * // => [1, 2] */ function sortedUniq(array) { diff --git a/sortedUniqBy.js b/sortedUniqBy.js index 6fa7c422d..8c8c56302 100644 --- a/sortedUniqBy.js +++ b/sortedUniqBy.js @@ -1,11 +1,10 @@ import baseSortedUniq from './_baseSortedUniq.js'; /** - * This method is like `_.uniqBy` except that it's designed and optimized + * This method is like `uniqBy` except that it's designed and optimized * for sorted arrays. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. @@ -13,7 +12,7 @@ import baseSortedUniq from './_baseSortedUniq.js'; * @returns {Array} Returns the new duplicate free array. * @example * - * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); + * sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); * // => [1.1, 2.3] */ function sortedUniqBy(array, iteratee) { diff --git a/split.js b/split.js index 28fc2257d..433149e4c 100644 --- a/split.js +++ b/split.js @@ -16,7 +16,6 @@ const MAX_ARRAY_LENGTH = 4294967295; * [`String#split`](https://mdn.io/String/split). * * @static - * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to split. @@ -25,7 +24,7 @@ const MAX_ARRAY_LENGTH = 4294967295; * @returns {Array} Returns the string segments. * @example * - * _.split('a-b-c', '-', 2); + * split('a-b-c', '-', 2); * // => ['a', 'b'] */ function split(string, separator, limit) { diff --git a/spread.js b/spread.js index f6af9acb7..bf0564df2 100644 --- a/spread.js +++ b/spread.js @@ -18,7 +18,6 @@ const nativeMax = Math.max; * [spread operator](https://mdn.io/spread_operator). * * @static - * @memberOf _ * @since 3.2.0 * @category Function * @param {Function} func The function to spread arguments over. @@ -26,7 +25,7 @@ const nativeMax = Math.max; * @returns {Function} Returns the new function. * @example * - * var say = _.spread(function(who, what) { + * var say = spread(function(who, what) { * return who + ' says ' + what; * }); * @@ -38,7 +37,7 @@ const nativeMax = Math.max; * Promise.resolve(36) * ]); * - * numbers.then(_.spread(function(x, y) { + * numbers.then(spread(function(x, y) { * return x + y; * })); * // => a Promise of 76 diff --git a/startCase.js b/startCase.js index c4dfd36b7..2965070ba 100644 --- a/startCase.js +++ b/startCase.js @@ -6,20 +6,19 @@ import upperFirst from './upperFirst.js'; * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). * * @static - * @memberOf _ * @since 3.1.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the start cased string. * @example * - * _.startCase('--foo-bar--'); + * startCase('--foo-bar--'); * // => 'Foo Bar' * - * _.startCase('fooBar'); + * startCase('fooBar'); * // => 'Foo Bar' * - * _.startCase('__FOO_BAR__'); + * startCase('__FOO_BAR__'); * // => 'FOO BAR' */ const startCase = createCompounder((result, word, index) => result + (index ? ' ' : '') + upperFirst(word)); diff --git a/startsWith.js b/startsWith.js index 19ca033fe..962897379 100644 --- a/startsWith.js +++ b/startsWith.js @@ -7,7 +7,6 @@ import toString from './toString.js'; * Checks if `string` starts with the given target string. * * @static - * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. @@ -17,13 +16,13 @@ import toString from './toString.js'; * else `false`. * @example * - * _.startsWith('abc', 'a'); + * startsWith('abc', 'a'); * // => true * - * _.startsWith('abc', 'b'); + * startsWith('abc', 'b'); * // => false * - * _.startsWith('abc', 'b', 1); + * startsWith('abc', 'b', 1); * // => true */ function startsWith(string, target, position) { diff --git a/stubArray.js b/stubArray.js index b2b5503ce..9bc7fdd0f 100644 --- a/stubArray.js +++ b/stubArray.js @@ -2,13 +2,12 @@ * This method returns a new empty array. * * @static - * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * - * var arrays = _.times(2, _.stubArray); + * var arrays = times(2, stubArray); * * console.log(arrays); * // => [[], []] diff --git a/stubFalse.js b/stubFalse.js index c569c25df..6350fb773 100644 --- a/stubFalse.js +++ b/stubFalse.js @@ -2,13 +2,12 @@ * This method returns `false`. * * @static - * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * - * _.times(2, _.stubFalse); + * times(2, stubFalse); * // => [false, false] */ function stubFalse() { diff --git a/stubObject.js b/stubObject.js index f634824dd..a51638087 100644 --- a/stubObject.js +++ b/stubObject.js @@ -2,13 +2,12 @@ * This method returns a new empty object. * * @static - * @memberOf _ * @since 4.13.0 * @category Util * @returns {Object} Returns the new empty object. * @example * - * var objects = _.times(2, _.stubObject); + * var objects = times(2, stubObject); * * console.log(objects); * // => [{}, {}] diff --git a/stubString.js b/stubString.js index 783b57c1c..4e78fa33b 100644 --- a/stubString.js +++ b/stubString.js @@ -2,13 +2,12 @@ * This method returns an empty string. * * @static - * @memberOf _ * @since 4.13.0 * @category Util * @returns {string} Returns the empty string. * @example * - * _.times(2, _.stubString); + * times(2, stubString); * // => ['', ''] */ function stubString() { diff --git a/stubTrue.js b/stubTrue.js index 405a29da1..385a766ba 100644 --- a/stubTrue.js +++ b/stubTrue.js @@ -2,13 +2,12 @@ * This method returns `true`. * * @static - * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `true`. * @example * - * _.times(2, _.stubTrue); + * times(2, stubTrue); * // => [true, true] */ function stubTrue() { diff --git a/subtract.js b/subtract.js index 6d84303d1..a7a5be755 100644 --- a/subtract.js +++ b/subtract.js @@ -4,7 +4,6 @@ import createMathOperation from './_createMathOperation.js'; * Subtract two numbers. * * @static - * @memberOf _ * @since 4.0.0 * @category Math * @param {number} minuend The first number in a subtraction. @@ -12,7 +11,7 @@ import createMathOperation from './_createMathOperation.js'; * @returns {number} Returns the difference. * @example * - * _.subtract(6, 4); + * subtract(6, 4); * // => 2 */ const subtract = createMathOperation((minuend, subtrahend) => minuend - subtrahend, 0); diff --git a/sum.js b/sum.js index 708254bb4..41d99f16c 100644 --- a/sum.js +++ b/sum.js @@ -5,14 +5,13 @@ import identity from './identity.js'; * Computes the sum of the values in `array`. * * @static - * @memberOf _ * @since 3.4.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the sum. * @example * - * _.sum([4, 2, 8, 6]); + * sum([4, 2, 8, 6]); * // => 20 */ function sum(array) { diff --git a/sumBy.js b/sumBy.js index c740733e1..883550e69 100644 --- a/sumBy.js +++ b/sumBy.js @@ -1,12 +1,11 @@ import baseSum from './_baseSum.js'; /** - * This method is like `_.sum` except that it accepts `iteratee` which is + * This method is like `sum` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the value to be summed. * The iteratee is invoked with one argument: (value). * * @static - * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. @@ -16,7 +15,7 @@ import baseSum from './_baseSum.js'; * * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]; * - * _.sumBy(objects, function(o) { return o.n; }); + * sumBy(objects, function(o) { return o.n; }); * // => 20 */ function sumBy(array, iteratee) { diff --git a/tail.js b/tail.js index 3ed78b750..9860fab62 100644 --- a/tail.js +++ b/tail.js @@ -4,14 +4,13 @@ import baseSlice from './_baseSlice.js'; * Gets all but the first element of `array`. * * @static - * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * - * _.tail([1, 2, 3]); + * tail([1, 2, 3]); * // => [2, 3] */ function tail(array) { diff --git a/take.js b/take.js index f8fef3101..16b54103b 100644 --- a/take.js +++ b/take.js @@ -5,25 +5,24 @@ import toInteger from './toInteger.js'; * Creates a slice of `array` with `n` elements taken from the beginning. * * @static - * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to take. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the slice of `array`. * @example * - * _.take([1, 2, 3]); + * take([1, 2, 3]); * // => [1] * - * _.take([1, 2, 3], 2); + * take([1, 2, 3], 2); * // => [1, 2] * - * _.take([1, 2, 3], 5); + * take([1, 2, 3], 5); * // => [1, 2, 3] * - * _.take([1, 2, 3], 0); + * take([1, 2, 3], 0); * // => [] */ function take(array, n, guard) { diff --git a/takeRight.js b/takeRight.js index 1458fcb9f..0d61cb091 100644 --- a/takeRight.js +++ b/takeRight.js @@ -5,25 +5,24 @@ import toInteger from './toInteger.js'; * Creates a slice of `array` with `n` elements taken from the end. * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to take. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Array} Returns the slice of `array`. * @example * - * _.takeRight([1, 2, 3]); + * takeRight([1, 2, 3]); * // => [3] * - * _.takeRight([1, 2, 3], 2); + * takeRight([1, 2, 3], 2); * // => [2, 3] * - * _.takeRight([1, 2, 3], 5); + * takeRight([1, 2, 3], 5); * // => [1, 2, 3] * - * _.takeRight([1, 2, 3], 0); + * takeRight([1, 2, 3], 0); * // => [] */ function takeRight(array, n, guard) { diff --git a/takeRightWhile.js b/takeRightWhile.js index 7a3f1b02e..08f3bc66d 100644 --- a/takeRightWhile.js +++ b/takeRightWhile.js @@ -6,7 +6,6 @@ import baseWhile from './_baseWhile.js'; * three arguments: (value, index, array). * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. @@ -20,7 +19,7 @@ import baseWhile from './_baseWhile.js'; * { 'user': 'pebbles', 'active': false } * ]; * - * _.takeRightWhile(users, function(o) { return !o.active; }); + * takeRightWhile(users, function(o) { return !o.active; }); * // => objects for ['fred', 'pebbles'] */ function takeRightWhile(array, predicate) { diff --git a/takeWhile.js b/takeWhile.js index a16518768..fcb0796fb 100644 --- a/takeWhile.js +++ b/takeWhile.js @@ -6,7 +6,6 @@ import baseWhile from './_baseWhile.js'; * three arguments: (value, index, array). * * @static - * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. @@ -20,7 +19,7 @@ import baseWhile from './_baseWhile.js'; * { 'user': 'pebbles', 'active': true } * ]; * - * _.takeWhile(users, function(o) { return !o.active; }); + * takeWhile(users, function(o) { return !o.active; }); * // => objects for ['barney', 'fred'] */ function takeWhile(array, predicate) { diff --git a/template.js b/template.js index 15c1014e8..1a691b632 100644 --- a/template.js +++ b/template.js @@ -32,9 +32,9 @@ const reUnescapedString = /['\n\r\u2028\u2029\\]/g; * in "interpolate" delimiters, HTML-escape interpolated data properties in * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data * properties may be accessed as free variables in the template. If a setting - * object is given, it takes precedence over `_.templateSettings` values. + * object is given, it takes precedence over `templateSettings` values. * - * **Note:** In the development build `_.template` utilizes + * **Note:** In the development build `template` utilizes * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) * for easier debugging. * @@ -46,70 +46,69 @@ const reUnescapedString = /['\n\r\u2028\u2029\\]/g; * * @static * @since 0.1.0 - * @memberOf _ * @category String * @param {string} [string=''] The template string. * @param {Object} [options={}] The options object. - * @param {RegExp} [options.escape=_.templateSettings.escape] + * @param {RegExp} [options.escape=templateSettings.escape] * The HTML "escape" delimiter. - * @param {RegExp} [options.evaluate=_.templateSettings.evaluate] + * @param {RegExp} [options.evaluate=templateSettings.evaluate] * The "evaluate" delimiter. - * @param {Object} [options.imports=_.templateSettings.imports] + * @param {Object} [options.imports=templateSettings.imports] * An object to import into the template as free variables. - * @param {RegExp} [options.interpolate=_.templateSettings.interpolate] + * @param {RegExp} [options.interpolate=templateSettings.interpolate] * The "interpolate" delimiter. * @param {string} [options.sourceURL='templateSources[n]'] * The sourceURL of the compiled template. * @param {string} [options.variable='obj'] * The data object variable name. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `map`. * @returns {Function} Returns the compiled template function. * @example * * // Use the "interpolate" delimiter to create a compiled template. - * var compiled = _.template('hello <%= user %>!'); + * var compiled = template('hello <%= user %>!'); * compiled({ 'user': 'fred' }); * // => 'hello fred!' * * // Use the HTML "escape" delimiter to escape data property values. - * var compiled = _.template('<%- value %>'); + * var compiled = template('<%- value %>'); * compiled({ 'value': '