VERSION source
+VERSION source
(string): The semantic version number.
diff --git a/add.html b/add.html index d2aae86..a839e81 100644 --- a/add.html +++ b/add.html @@ -392,7 +392,7 @@add source npm
+add source npm
Adds two numbers.
diff --git a/all.html b/all.html index 4220d67..7e5ba66 100644 --- a/all.html +++ b/all.html @@ -1930,7 +1930,7 @@示例
这个方法类似 _.indexOf
,除了它是从右到左遍历元素的。
-This method is like _.indexOf
except that it iterates over elements of
+这个方法类似 _.indexOf
except that it iterates over elements of
array
from right to left.
示例
})();add source npm
+add source npm
Adds two numbers.
@@ -9931,7 +9931,7 @@示例
})();ceil source npm
+ceil source npm
Computes number
rounded up to precision
.
示例
})();floor source npm
+floor source npm
Computes number
rounded down to precision
.
示例
})();max source npm
+max source npm
Computes the maximum value of array
. If array
is empty or falsey
@@ -10089,10 +10089,10 @@
示例
})();maxBy source npm
+maxBy source npm
This method is like _.max
except that it accepts iteratee
which is
+
这个方法类似 _.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 会传入1个参数:(value)。
示例
})();mean source npm
+mean source npm
Computes the mean of the values in array
.
示例
})();min source npm
+min source npm
Computes the minimum value of array
. If array
is empty or falsey
@@ -10244,10 +10244,10 @@
示例
})();minBy source npm
+minBy source npm
This method is like _.min
except that it accepts iteratee
which is
+
这个方法类似 _.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 会传入1个参数:(value)。
示例
})();round source npm
+round source npm
Computes number
rounded to precision
.
示例
})();subtract source npm
+subtract source npm
Subtract two numbers.
@@ -10405,7 +10405,7 @@示例
})();sum source npm
+sum source npm
Computes the sum of the values in array
.
示例
})();sumBy source npm
+sumBy source npm
This method is like _.sum
except that it accepts iteratee
which is
+
这个方法类似 _.sum
except that it accepts iteratee
which is
invoked for each element in array
to generate the value to be summed.
The iteratee 会传入1个参数:(value)。
返回值 (number)
})();clamp source npm
+clamp source npm
Returns a number whose value is limited to the given range specified @@ -10635,7 +10635,7 @@
示例
})();inRange source npm
+inRange source npm
Checks if n
is between start
and up to but not including, end
. If
@@ -10706,7 +10706,7 @@
示例
})();random source npm
+random source npm
Produces a random number between min
and max
(inclusive). If only one
@@ -10772,27 +10772,26 @@
示例
})();assign source npm
+assign source npm
Assigns own enumerable properties of source objects to the destination -object. Source objects are applied from left to right. Subsequent sources -overwrite property assignments of previous sources. +
分配来源对象的可枚举属性到目标对象上。
+来源对象的应用规则是从左到右,随后的下一个对象的属性会覆盖上一个对象的属性。
-注意: This method mutates object
and is loosely based on
+注意: 这方法会改变源对象,参考自
Object.assign
.
参数
-
-
- object (Object)
The destination object.
+- object (Object)
-目标对象
- [sources] (...Object)
The source objects.
+- [sources] (...Object)
来源对象
返回值 (Object)
-Returns
+object
.返回对象
示例
-function Foo() { @@ -10837,14 +10836,14 @@
示例
})();assignIn extend source npm
+assignIn extend source npm
_.assignIn(object, [sources])--This method is like
_.assign
except that it iterates over own and +这个方法类似
+注意: 这方法会改变源对象_.assign
except that it iterates over own and inherited source properties.
-注意: This method mutatesobject
.参数
@@ -10900,16 +10899,16 @@示例
})();assignInWith extendWith source npm
+assignInWith extendWith source npm
_.assignInWith(object, sources, [customizer])--This method is like
_.assignIn
except that it acceptscustomizer
which +这个方法类似
+注意: 这方法会改变源对象_.assignIn
except that it acceptscustomizer
which is invoked to produce the assigned values. Ifcustomizer
returnsundefined
assignment is handled by the method instead. Thecustomizer
is invoked with five arguments: (objValue, srcValue, key, object, source).
-注意: This method mutatesobject
.参数
@@ -10962,16 +10961,16 @@示例
})();assignWith source npm
+assignWith source npm
_.assignWith(object, sources, [customizer])--This method is like
_.assign
except that it acceptscustomizer
which +这个方法类似
+注意: 这方法会改变源对象_.assign
except that it acceptscustomizer
which is invoked to produce the assigned values. Ifcustomizer
returnsundefined
assignment is handled by the method instead. Thecustomizer
is invoked with five arguments: (objValue, srcValue, key, object, source).
-注意: This method mutatesobject
.参数
@@ -11024,7 +11023,7 @@示例
})();at source npm
+at source npm
_.at(object, [paths])-Creates an array of values corresponding to
@@ -11077,7 +11076,7 @@paths
ofobject
.示例
})();create source npm
+create source npm
_.create(prototype, [properties])-Creates an object that inherits from the
prototype
object. If aproperties
@@ -11143,7 +11142,7 @@示例
})();defaults source npm
+-defaults source npm
_.defaults(object, [sources])Assigns own and inherited enumerable properties of source objects to the @@ -11152,7 +11151,7 @@
示例
additional values of the same property are ignored.
-注意: This method mutatesobject
. +注意: 这方法会改变源对象参数
@@ -11197,14 +11196,14 @@示例
})();defaultsDeep source npm
+defaultsDeep source npm
_.defaultsDeep(object, [sources])--This method is like
_.defaults
except that it recursively assigns +这个方法类似
+注意: 这方法会改变源对象_.defaults
except that it recursively assigns default properties.
-注意: This method mutatesobject
.参数
@@ -11249,10 +11248,10 @@示例
})();findKey source npm
+findKey source npm
_.findKey(object, [predicate=_.identity])--This method is like
_.find
except that it returns the key of the first +@@ -11316,10 +11315,10 @@这个方法类似
_.find
except that it returns the key of the first elementpredicate
returns truthy for instead of the element itself.示例
})();findLastKey source npm
+findLastKey source npm
_.findLastKey(object, [predicate=_.identity])--This method is like
_.findKey
except that it iterates over elements of +@@ -11383,7 +11382,7 @@这个方法类似
_.findKey
except that it iterates over elements of a collection in the opposite order.示例
})();forIn source npm
+forIn source npm
_.forIn(object, [iteratee=_.identity])-Iterates over own and inherited enumerable properties of an object invoking @@ -11443,10 +11442,10 @@
示例
})();forInRight source npm
+forInRight source npm
_.forInRight(object, [iteratee=_.identity])--This method is like
_.forIn
except that it iterates over properties of +@@ -11501,7 +11500,7 @@这个方法类似
_.forIn
except that it iterates over properties ofobject
in the opposite order.示例
})();forOwn source npm
+forOwn source npm
_.forOwn(object, [iteratee=_.identity])-Iterates over own enumerable properties of an object invoking
iteratee
@@ -11561,10 +11560,10 @@示例
})();forOwnRight source npm
+forOwnRight source npm
_.forOwnRight(object, [iteratee=_.identity])--This method is like
_.forOwn
except that it iterates over properties of +@@ -11619,7 +11618,7 @@这个方法类似
_.forOwn
except that it iterates over properties ofobject
in the opposite order.示例
})();functions source npm
+functions source npm
_.functions(object)-Creates an array of function property names from own enumerable properties @@ -11673,7 +11672,7 @@
示例
})();functionsIn source npm
+functionsIn source npm
_.functionsIn(object)-Creates an array of function property names from own and inherited @@ -11727,7 +11726,7 @@
示例
})();get source npm
+get source npm
_.get(object, path, [defaultValue])-Gets the value at
path
ofobject
. If the resolved value is @@ -11786,7 +11785,7 @@示例
})();has source npm
+has source npm
_.has(object, path)-Checks if
@@ -11846,7 +11845,7 @@path
is a direct property ofobject
.示例
})();hasIn source npm
+hasIn source npm
_.hasIn(object, path)-Checks if
@@ -11905,7 +11904,7 @@path
is a direct or inherited property ofobject
.示例
})();invert source npm
+invert source npm
_.invert(object, [multiVal])-Creates an object composed of the inverted keys and values of
object
. @@ -11961,7 +11960,7 @@示例
})();invoke source npm
+invoke source npm
_.invoke(object, path, [args])-Invokes the method at
@@ -12013,7 +12012,7 @@path
ofobject
.示例
})();keys source npm
+keys source npm
_.keys(object)-Creates an array of the own enumerable property names of
object
. @@ -12074,7 +12073,7 @@示例
})();keysIn source npm
+keysIn source npm
_.keysIn(object)-Creates an array of the own and inherited enumerable property names of
object
. @@ -12130,7 +12129,7 @@示例
})();mapKeys source npm
+mapKeys source npm
_.mapKeys(object, [iteratee=_.identity])-The opposite of
_.mapValues
; this method creates an object with the @@ -12182,7 +12181,7 @@示例
})();mapValues source npm
+mapValues source npm
_.mapValues(object, [iteratee=_.identity])-Creates an object with the same keys as
object
and values generated by @@ -12241,7 +12240,7 @@示例
})();merge source npm
+-merge source npm
_.merge(object, [sources])Recursively merges own and inherited enumerable properties of source @@ -12252,7 +12251,7 @@
示例
assignments of previous sources.
-注意: This method mutatesobject
. +注意: 这方法会改变源对象参数
@@ -12305,10 +12304,10 @@示例
})();mergeWith source npm
+mergeWith source npm
_.mergeWith(object, sources, customizer)-This method is like
_.merge
except that it acceptscustomizer
which +-这个方法类似
_.merge
except that it acceptscustomizer
which is invoked to produce the merged values of the destination and source properties. Ifcustomizer
returnsundefined
merging is handled by the method instead. Thecustomizer
is invoked with seven arguments:
@@ -12375,7 +12374,7 @@示例
})();omit source npm
+omit source npm
_.omit(object, [props])-The opposite of
_.pick
; this method creates an object composed of the @@ -12426,7 +12425,7 @@示例
})();omitBy source npm
+omitBy source npm
_.omitBy(object, [predicate=_.identity])-The opposite of
_.pickBy
; this method creates an object composed of the @@ -12478,7 +12477,7 @@示例
})();pick source npm
+pick source npm
_.pick(object, [props])-Creates an object composed of the picked
@@ -12528,7 +12527,7 @@object
properties.示例
})();pickBy source npm
+pickBy source npm
_.pickBy(object, [predicate=_.identity])-Creates an object composed of the
object
propertiespredicate
returns @@ -12579,10 +12578,10 @@示例
})();result source npm
+result source npm
_.result(object, path, [defaultValue])--This method is like
_.get
except that if the resolved value is a function +@@ -12642,7 +12641,7 @@这个方法类似
_.get
except that if the resolved value is a function it's invoked with thethis
binding of its parent object and its result is returned.示例
})();set source npm
+set source npm
_.set(object, path, value)-Sets the value at
path
ofobject
. If a portion ofpath
doesn't exist @@ -12702,10 +12701,10 @@示例
})();setWith source npm
+setWith source npm
_.setWith(object, path, value, [customizer])-This method is like
_.set
except that it acceptscustomizer
which is +-这个方法类似
@@ -12757,7 +12756,7 @@_.set
except that it acceptscustomizer
which is invoked to produce the objects ofpath
. Ifcustomizer
returnsundefined
path creation is handled by the method instead. Thecustomizer
is invoked with three arguments: (nsValue, key, nsObject).示例
})();toPairs source npm
+toPairs source npm
_.toPairs(object)-Creates an array of own enumerable key-value pairs for
@@ -12810,7 +12809,7 @@object
.示例
})();toPairsIn source npm
+toPairsIn source npm
_.toPairsIn(object)-Creates an array of own and inherited enumerable key-value pairs for
@@ -12863,7 +12862,7 @@object
.示例
})();transform source npm
+transform source npm
_.transform(object, [iteratee=_.identity], [accumulator])-An alternative to
_.reduce
; this method transformsobject
to a new @@ -12926,7 +12925,7 @@示例
})();unset source npm
+unset source npm
_.unset(object, path)-Removes the property at
@@ -12984,7 +12983,7 @@path
ofobject
.示例
})();values source npm
+values source npm
_.values(object)-Creates an array of the own enumerable property values of
object
. @@ -13043,7 +13042,7 @@示例
})();valuesIn source npm
+valuesIn source npm
_.valuesIn(object)-Creates an array of the own and inherited enumerable property values of
object
. @@ -13299,7 +13298,7 @@示例
})();VERSION source
+VERSION source
_.VERSION-(string): The semantic version number.
@@ -13332,7 +13331,7 @@示例
})();camelCase source npm
+camelCase source npm
_.camelCase([string=''])-Converts
@@ -13384,7 +13383,7 @@string
to camel case.示例
})();capitalize source npm
+capitalize source npm
_.capitalize([string=''])-Converts the first character of
string
to upper case and the remaining @@ -13431,7 +13430,7 @@示例
})();deburr source npm
+deburr source npm
_.deburr([string=''])-Deburrs
string
by converting latin-1 supplementary letters#Character_table) @@ -13478,7 +13477,7 @@示例
})();endsWith source npm
+endsWith source npm
_.endsWith([string=''], [target], [position=string.length])-Checks if
@@ -13534,7 +13533,7 @@string
ends with the given target string.示例
})();escape source npm
+escape source npm
_.escape([string=''])-Converts the characters "&", "<", ">", '"', "'", and "`" in
string
to @@ -13603,7 +13602,7 @@示例
})();escapeRegExp source npm
+escapeRegExp source npm
_.escapeRegExp([string=''])-Escapes the
RegExp
special characters "^", "$", "\", ".", "*", "+", @@ -13650,7 +13649,7 @@示例
})();kebabCase source npm
+kebabCase source npm
_.kebabCase([string=''])-Converts
@@ -13702,7 +13701,7 @@string
to kebab case.示例
})();lowerCase source npm
+lowerCase source npm
_.lowerCase([string=''])-Converts
@@ -13754,7 +13753,7 @@string
, as space separated words, to lower case.示例
})();lowerFirst source npm
+lowerFirst source npm
_.lowerFirst([string=''])-Converts the first character of
@@ -13803,7 +13802,7 @@string
to lower case.示例
})();pad source npm
+pad source npm
_.pad([string=''], [length=0], [chars=' '])-Pads
string
on the left and right sides if it's shorter thanlength
. @@ -13860,7 +13859,7 @@示例
})();padEnd source npm
+padEnd source npm
_.padEnd([string=''], [length=0], [chars=' '])-Pads
string
on the right side if it's shorter thanlength
. Padding @@ -13917,7 +13916,7 @@示例
})();padStart source npm
+padStart source npm
_.padStart([string=''], [length=0], [chars=' '])-Pads
string
on the left side if it's shorter thanlength
. Padding @@ -13974,7 +13973,7 @@示例
})();parseInt source npm
+parseInt source npm
_.parseInt(string, [radix])-Converts
string
to an integer of the specified radix. Ifradix
is @@ -14031,7 +14030,7 @@示例
})();repeat source npm
+repeat source npm
_.repeat([string=''], [n=0])-Repeats the given string
@@ -14085,7 +14084,7 @@n
times.示例
})();replace source npm
+replace source npm
_.replace([string=''], pattern, replacement)-Replaces matches for
pattern
instring
withreplacement
. @@ -14138,7 +14137,7 @@示例
})();snakeCase source npm
+snakeCase source npm
_.snakeCase([string=''])-Converts
@@ -14190,7 +14189,7 @@string
to snake case.示例
})();split source npm
+split source npm
_.split([string=''], separator, [limit])-Splits
string
byseparator
. @@ -14243,7 +14242,7 @@示例
})();startCase source npm
+startCase source npm
_.startCase([string=''])-Converts
@@ -14295,7 +14294,7 @@string
to start case.示例
})();startsWith source npm
+startsWith source npm
_.startsWith([string=''], [target], [position=0])-Checks if
@@ -14351,7 +14350,7 @@string
starts with the given target string.示例
})();template source npm
+template source npm
_.template([string=''], [options])-Creates a compiled template function that can interpolate data properties @@ -14489,7 +14488,7 @@
示例
})();toLower source npm
+toLower source npm
_.toLower([string=''])-Converts
@@ -14541,7 +14540,7 @@string
, as a whole, to lower case.示例
})();toUpper source npm
+toUpper source npm
_.toUpper([string=''])-Converts
@@ -14593,7 +14592,7 @@string
, as a whole, to upper case.示例
})();trim source npm
+trim source npm
_.trim([string=''], [chars=whitespace])-Removes leading and trailing whitespace or specified characters from
@@ -14647,7 +14646,7 @@string
.示例
})();trimEnd source npm
+trimEnd source npm
_.trimEnd([string=''], [chars=whitespace])-Removes trailing whitespace or specified characters from
@@ -14698,7 +14697,7 @@string
.示例
})();trimStart source npm
+trimStart source npm
_.trimStart([string=''], [chars=whitespace])-Removes leading whitespace or specified characters from
@@ -14749,7 +14748,7 @@string
.示例
})();truncate source npm
+truncate source npm
_.truncate([string=''], [options])-Truncates
string
if it's longer than the given maximum string length. @@ -14822,7 +14821,7 @@示例
})();unescape source npm
+unescape source npm
_.unescape([string=''])-The inverse of
_.escape
; this method converts the HTML entities @@ -14874,7 +14873,7 @@示例
})();upperCase source npm
+upperCase source npm
_.upperCase([string=''])-Converts
@@ -14926,7 +14925,7 @@string
, as space separated words, to upper case.示例
})();upperFirst source npm
+upperFirst source npm
_.upperFirst([string=''])-Converts the first character of
@@ -14975,7 +14974,7 @@string
to upper case.示例
})();words source npm
+words source npm
_.words([string=''], [pattern])-Splits
@@ -15026,7 +15025,7 @@string
into an array of its words.示例
})();attempt source npm
+attempt source npm
_.attempt(func)-Attempts to invoke
func
, returning either the result or the caught error @@ -15079,7 +15078,7 @@示例
})();bindAll source npm
+bindAll source npm
_.bindAll(object, methodNames)-Binds methods of an object to the object itself, overwriting the existing @@ -15139,7 +15138,7 @@
示例
})();cond source npm
+cond source npm
_.cond(pairs)-Creates a function that iterates over
pairs
invoking the corresponding @@ -15200,7 +15199,7 @@示例
})();conforms source npm
+conforms source npm
_.conforms(source)-Creates a function that invokes the predicate properties of
source
with @@ -15253,7 +15252,7 @@示例
})();constant source npm
+constant source npm
_.constant(value)-Creates a function that returns
@@ -15302,7 +15301,7 @@value
.示例
})();flow source npm
+flow source npm
_.flow([funcs])-Creates a function that returns the result of invoking the provided @@ -15355,10 +15354,10 @@
示例
})();flowRight source npm
+flowRight source npm
_.flowRight([funcs])--This method is like
_.flow
except that it creates a function that +@@ -15407,7 +15406,7 @@这个方法类似
_.flow
except that it creates a function that invokes the provided functions from right to left.示例
})();identity source npm
+identity source npm
_.identity(value)-This method returns the first argument provided to it.
@@ -15455,7 +15454,7 @@示例
})();iteratee source npm
+iteratee source npm
_.iteratee([func=_.identity])-创建一个调用
func
的函数。 with the arguments of the created @@ -15522,7 +15521,7 @@示例
})();matches source npm
+matches source npm
_.matches(source)-Creates a function that performs a deep partial comparison between a given @@ -15578,7 +15577,7 @@
示例
})();matchesProperty source npm
+matchesProperty source npm
_.matchesProperty(path, srcValue)-Creates a function that performs a deep partial comparison between the @@ -15636,7 +15635,7 @@
示例
})();method source npm
+method source npm
_.method(path, [args])-Creates a function that invokes the method at
path
of a given object. @@ -15693,7 +15692,7 @@示例
})();methodOf source npm
+methodOf source npm
_.methodOf(object, [args])-The opposite of
_.method
; this method creates a function that invokes @@ -15749,7 +15748,7 @@示例
})();mixin source npm
+mixin source npm
_.mixin([object=lodash], source, [options])-Adds all own enumerable function properties of a source object to the @@ -15821,7 +15820,7 @@
示例
})();noConflict source npm
+noConflict source npm
_.noConflict()-Reverts the
_
variable to its previous value and returns a reference to @@ -15862,7 +15861,7 @@示例
})();noop source npm
+noop source npm
_.noop()-A no-operation function that returns
undefined
regardless of the @@ -15903,7 +15902,7 @@示例
})();nthArg source npm
+nthArg source npm
_.nthArg([n=0])-Creates a function that returns its nth argument.
@@ -15951,7 +15950,7 @@示例
})();over source npm
+over source npm
_.over(iteratees)-Creates a function that invokes
iteratees
with the arguments provided @@ -16000,7 +15999,7 @@示例
})();overEvery source npm
+overEvery source npm
_.overEvery(predicates)-Creates a function that checks if all of the
predicates
return @@ -16055,7 +16054,7 @@示例
})();overSome source npm
+overSome source npm
_.overSome(predicates)-Creates a function that checks if any of the
predicates
return @@ -16110,7 +16109,7 @@示例
})();property source npm
+property source npm
_.property(path)-Creates a function that returns the value at
@@ -16164,7 +16163,7 @@path
of a given object.示例
})();propertyOf source npm
+propertyOf source npm
_.propertyOf(object)-The opposite of
_.property
; this method creates a function that returns @@ -16217,7 +16216,7 @@示例
})();range source npm
+range source npm
_.range([start=0], end, [step=1])-Creates an array of numbers (positive and/or negative) progressing from @@ -16293,10 +16292,10 @@
示例
})();rangeRight source npm
+rangeRight source npm
_.rangeRight([start=0], end, [step=1])--This method is like
_.range
except that it populates values in +@@ -16430,7 +16429,7 @@这个方法类似
_.range
except that it populates values in descending order.示例
})();times source npm
+times source npm
_.times(n, [iteratee=_.identity])-Invokes the iteratee function
n
times, returning an array of the results @@ -16482,7 +16481,7 @@示例
})();toPath source npm
+toPath source npm
_.toPath(value)-Converts
@@ -16540,7 +16539,7 @@value
to a property path array.示例
})();uniqueId source npm
+uniqueId source npm
_.uniqueId([prefix])Generates a unique ID. If
diff --git a/assign.html b/assign.html index e2b94c9..62c2f60 100644 --- a/assign.html +++ b/assign.html @@ -392,27 +392,26 @@prefix
is provided the ID is appended to it.-assign source npm
+assign source npm
_.assign(object, [sources])-Assigns own enumerable properties of source objects to the destination -object. Source objects are applied from left to right. Subsequent sources -overwrite property assignments of previous sources. +
分配来源对象的可枚举属性到目标对象上。 +来源对象的应用规则是从左到右,随后的下一个对象的属性会覆盖上一个对象的属性。
-注意: This method mutatesobject
and is loosely based on +注意: 这方法会改变源对象,参考自Object.assign
.参数
-
-
- object (Object)
The destination object.
+- object (Object)
-目标对象
- [sources] (...Object)
The source objects.
+ - object (Object)
- object (Object)