VERSION source
+VERSION source
(string): The semantic version number.
diff --git a/add.html b/add.html index 37d5fb3..d2aae86 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 d432df6..4220d67 100644 --- a/all.html +++ b/all.html @@ -8857,14 +8857,13 @@示例
})();isNumber source npm
+isNumber source npm
检查 value
是否是 as a Number
primitive or object.
+
检查 value
是否是原始数值型 或者 对象。
-注意: To exclude Infinity
, -Infinity
, and NaN
, which are classified
-as numbers, use the _.isFinite
method.
Infinity
, -Infinity
, 以及 NaN
数值类型,用 _.isFinite
方法
参数
@@ -9028,11 +9027,11 @@示例
})();isPlainObject source npm
+isPlainObject source npm
检查 value
是否是 a plain object, that is, an object created by the
-Object
constructor or one with a [[Prototype]]
of null
.
检查 value
是否是普通对象。
+也就是说该对象由 Object
构造函数创建或者 [[Prototype]]
为空。
参数
@@ -9041,7 +9040,7 @@参数
返回值 (boolean)
- Returns true
if value
is a plain object否则返回 false
如果是普通对象返回 true
,否则返回 false
示例
function Foo() {
@@ -9088,10 +9087,10 @@ 示例
})();
isRegExp source npm
+isRegExp source npm
检查 value
是否是 as a RegExp
object.
检查 value
是否是 RegExp
对象
参数
@@ -9137,14 +9136,14 @@示例
})();isSafeInteger source npm
+isSafeInteger source npm
检查 value
是否是 a safe integer. An integer is safe if it's an IEEE-754
-double precision number which isn't the result of a rounded unsafe integer.
+
检查 value
是否是安全整数。
+这个整数应该是符合 IEEE-754 标准的非双精度浮点数。
-注意: This method is based on Number.isSafeInteger
.
Number.isSafeInteger
.
参数
@@ -9153,7 +9152,7 @@参数
返回值 (boolean)
- Returns true
if value
is a safe integer否则返回 false
如果是安全整数返回true
,否则返回 false
示例
_.isSafeInteger(3);
@@ -9196,10 +9195,10 @@ 示例
})();
isString source npm
+isString source npm
检查 value
是否是 as a String
primitive or object.
检查 value
是否是原始字符串或者对象。
参数
@@ -9245,10 +9244,10 @@示例
})();isSymbol source npm
+isSymbol source npm
检查 value
是否是 as a Symbol
primitive or object.
检查 value
是否是原始 Symbol
或者对象。
参数
@@ -9294,10 +9293,10 @@示例
})();isTypedArray source npm
+isTypedArray source npm
检查 value
是否是 as a typed array.
检查 value
是否是TypedArray。
参数
@@ -9343,7 +9342,7 @@示例
})();isUndefined source npm
+isUndefined source npm
检查 value
是否是 undefined
.
示例
})();lt source npm
+lt source npm
检查 value
是否是 less than other
.
检查 value
是否是 小于 other
。
参数
@@ -9406,7 +9405,7 @@参数
返回值 (boolean)
- Returns true
if value
is less than other
否则返回 false
如果 value
小于 other
返回 true
,否则返回 false
示例
_.lt(1, 3);
@@ -9446,10 +9445,10 @@ 示例
})();
lte source npm
+lte source npm
检查 value
是否是 less than or equal to other
.
检查 value
是否是 小于等于 other
.
参数
@@ -9460,7 +9459,7 @@参数
返回值 (boolean)
- Returns true
if value
is less than or equal to other
否则返回 false
如果 value
小于等于 other
返回 true
,否则返回 false
示例
_.lte(1, 3);
@@ -9500,19 +9499,19 @@ 示例
})();
toArray source npm
+toArray source npm
Converts value
to an array.
转换 value
为数组
参数
-
-
- value (*)
The value to convert.
+- value (*)
要转换的值
返回值 (Array)
-Returns the converted array.
+然后转换后的数组
示例
-(function() { @@ -9548,22 +9547,22 @@
示例
})();toInteger source npm
+toInteger source npm
_.toInteger(value)-Converts
value
to an integer. +参数
-
-
- value (*)
The value to convert.
+- value (*)
要转换的值
返回值 (number)
-Returns the converted integer.
+返回转换后的整数
示例
-_.toInteger(3); @@ -9606,21 +9605,23 @@
示例
})();toLength source npm
+toLength source npm
_.toLength(value)-Converts
value
to an integer suitable for use as the length of an -array-like object. +参数
-
-
- value (*)
The value to convert.
+- value (*)
+要转换的值
返回值 (number)
+返回转换后的整数
+示例
-_.toLength(3); // => 3 @@ -9662,19 +9663,19 @@
示例
})();toNumber source npm
+toNumber source npm
_.toNumber(value)-Converts
+value
to a number.转换
value
为数值参数
-
-
- value (*)
The value to process.
+- value (*)
要处理的值
返回值 (number)
-Returns the number.
+返回数值
示例
-_.toNumber(3); @@ -9717,20 +9718,20 @@
示例
})();toPlainObject source npm
+toPlainObject source npm
_.toPlainObject(value)-Converts
+value
to a plain object flattening inherited enumerable -properties ofvalue
to own properties of the plain object.转换
value
为普通对象。 +包括继承的可枚举属性。参数
-
-
- value (*)
The value to convert.
+- value (*)
要转换的值
返回值 (Object)
-Returns the converted plain object.
+返回转换后的普通对象
示例
-function Foo() { @@ -9773,20 +9774,20 @@
示例
})();toSafeInteger source npm
+toSafeInteger source npm
_.toSafeInteger(value)-Converts
+value
to a safe integer. A safe integer can be compared and -represented correctly.转换
value
为安全整数。 +安全整数可以用于比较和准确的表示。参数
-
-
- value (*)
The value to convert.
+- value (*)
要转换的值
返回值 (number)
-Returns the converted integer.
+返回转换后的整数
示例
-_.toSafeInteger(3); @@ -9829,20 +9830,20 @@
示例
})();toString source npm
+toString source npm
_.toString(value)-Converts
+value
to a string if it's not one. An empty string is returned -fornull
andundefined
values. The sign of-0
is preserved.如果
value
不是字符串,将其转换为字符串。 +null
和undefined
将返回空字符串。参数
-
-
- value (*)
The value to process.
+- value (*)
要转换的值
返回值 (string)
-Returns the string.
+返回字符串
示例
-_.toString(null); @@ -9882,7 +9883,7 @@
示例
})();add source npm
+add source npm
_.add(augend, addend)-Adds two numbers.
@@ -9930,7 +9931,7 @@示例
})();ceil source npm
+ceil source npm
_.ceil(number, [precision=0])-Computes
@@ -9984,7 +9985,7 @@number
rounded up toprecision
.示例
})();floor source npm
+floor source npm
_.floor(number, [precision=0])-Computes
@@ -10038,7 +10039,7 @@number
rounded down toprecision
.示例
})();max source npm
+max source npm
_.max(array)-Computes the maximum value of
array
. Ifarray
is empty or falsey @@ -10088,7 +10089,7 @@示例
})();maxBy source npm
+maxBy source npm
_.maxBy(array, [iteratee=_.identity])-This method is like
_.max
except that it acceptsiteratee
which is @@ -10147,7 +10148,7 @@示例
})();mean source npm
+mean source npm
_.mean(array)-Computes the mean of the values in
@@ -10193,7 +10194,7 @@array
.示例
})();min source npm
+min source npm
_.min(array)-Computes the minimum value of
array
. Ifarray
is empty or falsey @@ -10243,7 +10244,7 @@示例
})();minBy source npm
+minBy source npm
_.minBy(array, [iteratee=_.identity])-This method is like
_.min
except that it acceptsiteratee
which is @@ -10302,7 +10303,7 @@示例
})();round source npm
+round source npm
_.round(number, [precision=0])-Computes
@@ -10356,7 +10357,7 @@number
rounded toprecision
.示例
})();subtract source npm
+subtract source npm
_.subtract(minuend, subtrahend)-Subtract two numbers.
@@ -10404,7 +10405,7 @@示例
})();sum source npm
+sum source npm
_.sum(array)-Computes the sum of the values in
@@ -10450,7 +10451,7 @@array
.示例
})();sumBy source npm
+sumBy source npm
_.sumBy(array, [iteratee=_.identity])-This method is like
_.sum
except that it acceptsiteratee
which is @@ -10580,7 +10581,7 @@返回值 (number)
})();clamp source npm
+clamp source npm
_.clamp(number, [min], max)-Returns a number whose value is limited to the given range specified @@ -10634,7 +10635,7 @@
示例
})();inRange source npm
+inRange source npm
_.inRange(number, [start=0], end)-Checks if
n
is betweenstart
and up to but not including,end
. If @@ -10705,7 +10706,7 @@示例
})();random source npm
+random source npm
_.random([min=0], [max=1], [floating])-Produces a random number between
min
andmax
(inclusive). If only one @@ -10771,7 +10772,7 @@示例
})();assign source npm
+assign source npm
_.assign(object, [sources])-Assigns own enumerable properties of source objects to the destination @@ -10836,7 +10837,7 @@
示例
})();assignIn extend source npm
+assignIn extend source npm
_.assignIn(object, [sources])-This method is like
_.assign
except that it iterates over own and @@ -10899,7 +10900,7 @@示例
})();assignInWith extendWith source npm
+assignInWith extendWith source npm
_.assignInWith(object, sources, [customizer])-This method is like
_.assignIn
except that it acceptscustomizer
which @@ -10961,7 +10962,7 @@示例
})();assignWith source npm
+assignWith source npm
_.assignWith(object, sources, [customizer])-This method is like
_.assign
except that it acceptscustomizer
which @@ -11023,7 +11024,7 @@示例
})();at source npm
+at source npm
_.at(object, [paths])-Creates an array of values corresponding to
@@ -11076,7 +11077,7 @@paths
ofobject
.示例
})();create source npm
+create source npm
_.create(prototype, [properties])-Creates an object that inherits from the
prototype
object. If aproperties
@@ -11142,7 +11143,7 @@示例
})();defaults source npm
+defaults source npm
_.defaults(object, [sources])-Assigns own and inherited enumerable properties of source objects to the @@ -11196,7 +11197,7 @@
示例
})();defaultsDeep source npm
+defaultsDeep source npm
_.defaultsDeep(object, [sources])-This method is like
_.defaults
except that it recursively assigns @@ -11248,7 +11249,7 @@示例
})();findKey source npm
+findKey source npm
_.findKey(object, [predicate=_.identity])-This method is like
_.find
except that it returns the key of the first @@ -11315,7 +11316,7 @@示例
})();findLastKey source npm
+findLastKey source npm
_.findLastKey(object, [predicate=_.identity])-This method is like
_.findKey
except that it iterates over elements of @@ -11382,7 +11383,7 @@示例
})();forIn source npm
+forIn source npm
_.forIn(object, [iteratee=_.identity])-Iterates over own and inherited enumerable properties of an object invoking @@ -11442,7 +11443,7 @@
示例
})();forInRight source npm
+forInRight source npm
_.forInRight(object, [iteratee=_.identity])-This method is like
_.forIn
except that it iterates over properties of @@ -11500,7 +11501,7 @@示例
})();forOwn source npm
+forOwn source npm
_.forOwn(object, [iteratee=_.identity])-Iterates over own enumerable properties of an object invoking
iteratee
@@ -11560,7 +11561,7 @@示例
})();forOwnRight source npm
+forOwnRight source npm
_.forOwnRight(object, [iteratee=_.identity])-This method is like
_.forOwn
except that it iterates over properties of @@ -11618,7 +11619,7 @@示例
})();functions source npm
+functions source npm
_.functions(object)-Creates an array of function property names from own enumerable properties @@ -11672,7 +11673,7 @@
示例
})();functionsIn source npm
+functionsIn source npm
_.functionsIn(object)-Creates an array of function property names from own and inherited @@ -11726,7 +11727,7 @@
示例
})();get source npm
+get source npm
_.get(object, path, [defaultValue])-Gets the value at
path
ofobject
. If the resolved value is @@ -11785,7 +11786,7 @@示例
})();has source npm
+has source npm
_.has(object, path)-Checks if
@@ -11845,7 +11846,7 @@path
is a direct property ofobject
.示例
})();hasIn source npm
+hasIn source npm
_.hasIn(object, path)-Checks if
@@ -11904,7 +11905,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
. @@ -11960,7 +11961,7 @@示例
})();invoke source npm
+invoke source npm
_.invoke(object, path, [args])-Invokes the method at
@@ -12012,7 +12013,7 @@path
ofobject
.示例
})();keys source npm
+keys source npm
_.keys(object)-Creates an array of the own enumerable property names of
object
. @@ -12073,7 +12074,7 @@示例
})();keysIn source npm
+keysIn source npm
_.keysIn(object)-Creates an array of the own and inherited enumerable property names of
object
. @@ -12129,7 +12130,7 @@示例
})();mapKeys source npm
+mapKeys source npm
_.mapKeys(object, [iteratee=_.identity])-The opposite of
_.mapValues
; this method creates an object with the @@ -12181,7 +12182,7 @@示例
})();mapValues source npm
+mapValues source npm
_.mapValues(object, [iteratee=_.identity])-Creates an object with the same keys as
object
and values generated by @@ -12240,7 +12241,7 @@示例
})();merge source npm
+merge source npm
_.merge(object, [sources])-Recursively merges own and inherited enumerable properties of source @@ -12304,7 +12305,7 @@
示例
})();mergeWith source npm
+mergeWith source npm
_.mergeWith(object, sources, customizer)-This method is like
_.merge
except that it acceptscustomizer
which @@ -12374,7 +12375,7 @@示例
})();omit source npm
+omit source npm
_.omit(object, [props])-The opposite of
_.pick
; this method creates an object composed of the @@ -12425,7 +12426,7 @@示例
})();omitBy source npm
+omitBy source npm
_.omitBy(object, [predicate=_.identity])-The opposite of
_.pickBy
; this method creates an object composed of the @@ -12477,7 +12478,7 @@示例
})();pick source npm
+pick source npm
_.pick(object, [props])-Creates an object composed of the picked
@@ -12527,7 +12528,7 @@object
properties.示例
})();pickBy source npm
+pickBy source npm
_.pickBy(object, [predicate=_.identity])-Creates an object composed of the
object
propertiespredicate
returns @@ -12578,7 +12579,7 @@示例
})();result source npm
+result source npm
_.result(object, path, [defaultValue])-This method is like
_.get
except that if the resolved value is a function @@ -12641,7 +12642,7 @@示例
})();set source npm
+set source npm
_.set(object, path, value)-Sets the value at
path
ofobject
. If a portion ofpath
doesn't exist @@ -12701,7 +12702,7 @@示例
})();setWith source npm
+setWith source npm
_.setWith(object, path, value, [customizer])-This method is like
_.set
except that it acceptscustomizer
which is @@ -12756,7 +12757,7 @@示例
})();toPairs source npm
+toPairs source npm
_.toPairs(object)-Creates an array of own enumerable key-value pairs for
@@ -12809,7 +12810,7 @@object
.示例
})();toPairsIn source npm
+toPairsIn source npm
_.toPairsIn(object)-Creates an array of own and inherited enumerable key-value pairs for
@@ -12862,7 +12863,7 @@object
.示例
})();transform source npm
+transform source npm
_.transform(object, [iteratee=_.identity], [accumulator])-An alternative to
_.reduce
; this method transformsobject
to a new @@ -12925,7 +12926,7 @@示例
})();unset source npm
+unset source npm
_.unset(object, path)-Removes the property at
@@ -12983,7 +12984,7 @@path
ofobject
.示例
})();values source npm
+values source npm
_.values(object)-Creates an array of the own enumerable property values of
object
. @@ -13042,7 +13043,7 @@示例
})();valuesIn source npm
+valuesIn source npm
_.valuesIn(object)-Creates an array of the own and inherited enumerable property values of
object
. @@ -13298,7 +13299,7 @@示例
})();VERSION source
+VERSION source
_.VERSION-(string): The semantic version number.
@@ -13331,7 +13332,7 @@示例
})();camelCase source npm
+camelCase source npm
_.camelCase([string=''])-Converts
@@ -13383,7 +13384,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 @@ -13430,7 +13431,7 @@示例
})();deburr source npm
+deburr source npm
_.deburr([string=''])-Deburrs
string
by converting latin-1 supplementary letters#Character_table) @@ -13477,7 +13478,7 @@示例
})();endsWith source npm
+endsWith source npm
_.endsWith([string=''], [target], [position=string.length])-Checks if
@@ -13533,7 +13534,7 @@string
ends with the given target string.示例
})();escape source npm
+escape source npm
_.escape([string=''])-Converts the characters "&", "<", ">", '"', "'", and "`" in
string
to @@ -13602,7 +13603,7 @@示例
})();escapeRegExp source npm
+escapeRegExp source npm
_.escapeRegExp([string=''])-Escapes the
RegExp
special characters "^", "$", "\", ".", "*", "+", @@ -13649,7 +13650,7 @@示例
})();kebabCase source npm
+kebabCase source npm
_.kebabCase([string=''])-Converts
@@ -13701,7 +13702,7 @@string
to kebab case.示例
})();lowerCase source npm
+lowerCase source npm
_.lowerCase([string=''])-Converts
@@ -13753,7 +13754,7 @@string
, as space separated words, to lower case.示例
})();lowerFirst source npm
+lowerFirst source npm
_.lowerFirst([string=''])-Converts the first character of
@@ -13802,7 +13803,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
. @@ -13859,7 +13860,7 @@示例
})();padEnd source npm
+padEnd source npm
_.padEnd([string=''], [length=0], [chars=' '])-Pads
string
on the right side if it's shorter thanlength
. Padding @@ -13916,7 +13917,7 @@示例
})();padStart source npm
+padStart source npm
_.padStart([string=''], [length=0], [chars=' '])-Pads
string
on the left side if it's shorter thanlength
. Padding @@ -13973,7 +13974,7 @@示例
})();parseInt source npm
+parseInt source npm
_.parseInt(string, [radix])-Converts
string
to an integer of the specified radix. Ifradix
is @@ -14030,7 +14031,7 @@示例
})();repeat source npm
+repeat source npm
_.repeat([string=''], [n=0])-Repeats the given string
@@ -14084,7 +14085,7 @@n
times.示例
})();replace source npm
+replace source npm
_.replace([string=''], pattern, replacement)-Replaces matches for
pattern
instring
withreplacement
. @@ -14137,7 +14138,7 @@示例
})();snakeCase source npm
+snakeCase source npm
_.snakeCase([string=''])-Converts
@@ -14189,7 +14190,7 @@string
to snake case.示例
})();split source npm
+split source npm
_.split([string=''], separator, [limit])-Splits
string
byseparator
. @@ -14242,7 +14243,7 @@示例
})();startCase source npm
+startCase source npm
_.startCase([string=''])-Converts
@@ -14294,7 +14295,7 @@string
to start case.示例
})();startsWith source npm
+startsWith source npm
_.startsWith([string=''], [target], [position=0])-Checks if
@@ -14350,7 +14351,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 @@ -14488,7 +14489,7 @@
示例
})();toLower source npm
+toLower source npm
_.toLower([string=''])-Converts
@@ -14540,7 +14541,7 @@string
, as a whole, to lower case.示例
})();toUpper source npm
+toUpper source npm
_.toUpper([string=''])-Converts
@@ -14592,7 +14593,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
@@ -14646,7 +14647,7 @@string
.示例
})(); - value (*)
- value (*)
- value (*)
- value (*)
- value (*)
- value (*)
- value (*)