VERSION source
+VERSION source
(string): The semantic version number.
diff --git a/add.html b/add.html index 490f2f7..6ddb3db 100644 --- a/add.html +++ b/add.html @@ -392,7 +392,7 @@add source npm
+add source npm
Adds two numbers.
diff --git a/after.html b/after.html index 863b504..d0b207a 100644 --- a/after.html +++ b/after.html @@ -392,7 +392,7 @@after source npm
+after source npm
The opposite of _.before
; this method creates a function that invokes
diff --git a/all.html b/all.html
index 2f942fe..6b823c2 100644
--- a/all.html
+++ b/all.html
@@ -1036,16 +1036,16 @@
示例
flatten source npm
Flattens array
a single level.
向上一级展平数组嵌套
参数
-
-
- array (Array)
The array to flatten.
+- array (Array)
需要展平的数组
返回值 (Array)
--Returns the new flattened array.
+返回一个展平后的数组
示例
_.flatten([1, [2, 3, [4]]]); @@ -1053,19 +1053,19 @@
示例
flattenDeep source npm
+flattenDeep source npm
_.flattenDeep(array)-This method is like
+_.flatten
except that it recursively flattensarray
.这个方法类似
_.flatten
, 但它会递归展平数组。参数
-
-
- array (Array)
The array to recursively flatten.
+- array (Array)
需要展平的数组
返回值 (Array)
--Returns the new flattened array.
+返回一个展平后的数组
示例
_.flattenDeep([1, [2, 3, [4]]]); @@ -1073,20 +1073,19 @@
示例
fromPairs source npm
+fromPairs source npm
_.fromPairs(pairs)-The inverse of
+_.toPairs
; this method returns an object composed -from key-valuepairs
.反向版
_.toPairs
,这个方法返回一个由键值对构成的对象。参数
-
-
- pairs (Array)
The key-value pairs.
+- pairs (Array)
键值对
返回值 (Object)
--Returns the new object.
+返回一个新对象
示例
_.fromPairs([['fred', 30], ['barney', 40]]); @@ -1094,19 +1093,19 @@
示例
head first source npm
+head first source npm
_.head(array)-Gets the first element of
+array
.获得数组的首个元素
参数
-
-
- array (Array)
The array to query.
+- array (Array)
要检索的数组
返回值 (*)
--Returns the first element of
+array
.返回数组中的首个元素
示例
_.head([1, 2, 3]); @@ -1117,39 +1116,35 @@
示例
indexOf source npm
+indexOf source npm
_.indexOf(array, value, [fromIndex=0])-Gets the index at which the first occurrence of
+value
is found inarray
-usingSameValueZero
-for equality comparisons. IffromIndex
is negative, it's used as the offset -from the end ofarray
. Ifarray
is sorted providingtrue
forfromIndex
-performs a faster binary search.根据 value 使用 SameValueZero 等值比较返回数组中首次匹配的 index, 如果 fromIndex 为负值,将从数组尾端索引进行匹配,如果将 fromIndex 设置为 true,将使用更快的二进制检索机制。
参数
-
-
- array (Array)
The array to search.
+- array (Array)
-要检索的数组
- value (*)
The value to search for.
+- value (*)
-要检索的值
- [fromIndex=0] (number)
The index to search from.
+- [fromIndex=0] (number)
需要检索的起始位置,如果为 true 将使用二进制检索方式。
返回值 (number)
--Returns the index of the matched value, else
+-1
.返回匹配值的index,否则返回 -1。
示例
_.indexOf([1, 2, 1, 2], 2); // => 1 -// using `fromIndex` +// 使用了 `fromIndex` _.indexOf([1, 2, 1, 2], 2, 2); // => 3
initial source npm
+-initial source npm
_.initial(array)Gets all but the last element of
@@ -1169,7 +1164,7 @@array
.示例
intersection source npm
+-intersection source npm
_.intersection([arrays])Creates an array of unique values that are included in all of the provided @@ -1191,7 +1186,7 @@
示例
intersectionBy source npm
+-intersectionBy source npm
_.intersectionBy([arrays], [iteratee=_.identity])This method is like
_.intersection
except that it acceptsiteratee
@@ -1219,7 +1214,7 @@示例
intersectionWith source npm
+-intersectionWith source npm
_.intersectionWith([arrays], [comparator])This method is like
_.intersection
except that it acceptscomparator
@@ -1246,7 +1241,7 @@示例
join source npm
+-join source npm
_.join(array, [separator=','])Converts all elements in
@@ -1268,7 +1263,7 @@array
into a string separated byseparator
.示例
last source npm
+ -lastIndexOf source npm
+-lastIndexOf source npm
_.lastIndexOf(array, value, [fromIndex=array.length-1])This method is like
_.indexOf
except that it iterates over elements of @@ -1317,7 +1312,7 @@示例
prototype.reverse source npm
+-prototype.reverse source npm
_.prototype.reverse()Reverses
array
so that the first element becomes the last, the second @@ -1342,7 +1337,7 @@示例
pull source npm
+-pull source npm
_.pull(array, [values])Removes all provided values from
array
using @@ -1372,7 +1367,7 @@示例
pullAll source npm
+-pullAll source npm
_.pullAll(array, values)This method is like
_.pull
except that it accepts an array of values to remove. @@ -1400,7 +1395,7 @@示例
pullAllBy source npm
+-pullAllBy source npm
_.pullAllBy(array, values, [iteratee=_.identity])This method is like
_.pullAll
except that it acceptsiteratee
which is @@ -1432,7 +1427,7 @@示例
pullAt source npm
+-pullAt source npm
_.pullAt(array, [indexes])Removes elements from
array
corresponding toindexes
and returns an @@ -1464,7 +1459,7 @@示例
remove source npm
+-remove source npm
_.remove(array, [predicate=_.identity])Removes all elements from
array
thatpredicate
returns truthy for @@ -1499,7 +1494,7 @@示例
slice source npm
+slice source npm
_.slice(array, [start=0], [end=array.length])-Creates a slice of
array
fromstart
up to, but not including,end
. @@ -1522,7 +1517,7 @@返回值 (Array)
Returns the slice of
array
.sortedIndex source npm
+-sortedIndex source npm
_.sortedIndex(array, value)Uses a binary search to determine the lowest index at which
value
should @@ -1548,7 +1543,7 @@示例
sortedIndexBy source npm
+-sortedIndexBy source npm
_.sortedIndexBy(array, value, [iteratee=_.identity])This method is like
_.sortedIndex
except that it acceptsiteratee
@@ -1580,7 +1575,7 @@示例
sortedIndexOf source npm
+-sortedIndexOf source npm
_.sortedIndexOf(array, value)This method is like
_.indexOf
except that it performs a binary @@ -1603,7 +1598,7 @@示例
sortedLastIndex source npm
+-sortedLastIndex source npm
_.sortedLastIndex(array, value)This method is like
_.sortedIndex
except that it returns the highest @@ -1627,7 +1622,7 @@示例
sortedLastIndexBy source npm
+-sortedLastIndexBy source npm
_.sortedLastIndexBy(array, value, [iteratee=_.identity])This method is like
_.sortedLastIndex
except that it acceptsiteratee
@@ -1654,7 +1649,7 @@示例
sortedLastIndexOf source npm
+-sortedLastIndexOf source npm
_.sortedLastIndexOf(array, value)This method is like
_.lastIndexOf
except that it performs a binary @@ -1677,7 +1672,7 @@示例
sortedUniq source npm
+-sortedUniq source npm
_.sortedUniq(array)This method is like
_.uniq
except that it's designed and optimized @@ -1698,7 +1693,7 @@示例
sortedUniqBy source npm
+-sortedUniqBy source npm
_.sortedUniqBy(array, [iteratee])This method is like
_.uniqBy
except that it's designed and optimized @@ -1721,7 +1716,7 @@示例
tail source npm
+ -take source npm
+-take source npm
_.take(array, [n=1])Creates a slice of
@@ -1772,7 +1767,7 @@array
withn
elements taken from the beginning.示例
takeRight source npm
+-takeRight source npm
_.takeRight(array, [n=1])Creates a slice of
@@ -1803,7 +1798,7 @@array
withn
elements taken from the end.示例
takeRightWhile source npm
+-takeRightWhile source npm
_.takeRightWhile(array, [predicate=_.identity])Creates a slice of
array
with elements taken from the end. Elements are @@ -1847,7 +1842,7 @@示例
takeWhile source npm
+-takeWhile source npm
_.takeWhile(array, [predicate=_.identity])Creates a slice of
array
with elements taken from the beginning. Elements @@ -1891,7 +1886,7 @@示例
union source npm
+-union source npm
_.union([arrays])Creates an array of unique values, in order, from all of the provided arrays @@ -1913,7 +1908,7 @@
示例
unionBy source npm
+-unionBy source npm
_.unionBy([arrays], [iteratee=_.identity])This method is like
_.union
except that it acceptsiteratee
which is @@ -1941,7 +1936,7 @@示例
unionWith source npm
+-unionWith source npm
_.unionWith([arrays], [comparator])This method is like
_.union
except that it acceptscomparator
which @@ -1968,7 +1963,7 @@示例
uniq source npm
+-uniq source npm
_.uniq(array)Creates a duplicate-free version of an array, using @@ -1991,7 +1986,7 @@
示例
uniqBy source npm
+-uniqBy source npm
_.uniqBy(array, [iteratee=_.identity])This method is like
_.uniq
except that it acceptsiteratee
which is @@ -2019,7 +2014,7 @@示例
uniqWith source npm
+-uniqWith source npm
_.uniqWith(array, [comparator])This method is like
_.uniq
except that it acceptscomparator
which @@ -2045,7 +2040,7 @@示例
unzip source npm
+-unzip source npm
_.unzip(array)This method is like
_.zip
except that it accepts an array of grouped @@ -2070,7 +2065,7 @@示例
unzipWith source npm
+-unzipWith source npm
_.unzipWith(array, [iteratee=_.identity])This method is like
_.unzip
except that it acceptsiteratee
to specify @@ -2098,7 +2093,7 @@示例
without source npm
+-without source npm
_.without(array, [values])Creates an array excluding all provided values using @@ -2122,7 +2117,7 @@
示例
xor source npm
+-xor source npm
_.xor([arrays])Creates an array of unique values that is the symmetric difference @@ -2143,7 +2138,7 @@
示例
xorBy source npm
+-xorBy source npm
_.xorBy([arrays], [iteratee=_.identity])This method is like
_.xor
except that it acceptsiteratee
which is @@ -2171,7 +2166,7 @@示例
xorWith source npm
+-xorWith source npm
_.xorWith([arrays], [comparator])This method is like
_.xor
except that it acceptscomparator
which is @@ -2198,7 +2193,7 @@示例
zip source npm
+-zip source npm
_.zip([arrays])Creates an array of grouped elements, the first of which contains the first @@ -2220,7 +2215,7 @@
示例
zipObject source npm
+-zipObject source npm
_.zipObject([props=[]], [values=[]])This method is like
_.fromPairs
except that it accepts two arrays, @@ -2243,7 +2238,7 @@示例
zipWith source npm
+-zipWith source npm
_.zipWith([arrays], [iteratee=_.identity])This method is like
_.zip
except that it acceptsiteratee
to specify @@ -2362,7 +2357,7 @@示例
chain source
+-chain source
_.chain(value)Creates a
lodash
object that wrapsvalue
with explicit method chaining enabled. @@ -2396,7 +2391,7 @@示例
prototype.at source
+-prototype.at source
_.prototype.at([paths])This method is the wrapper version of
@@ -2421,7 +2416,7 @@_.at
.示例
prototype.chain source
+-prototype.chain source
_.prototype.chain()Enables explicit method chaining on the wrapper object.
@@ -2450,7 +2445,7 @@示例
prototype.commit source
+-prototype.commit source
_.prototype.commit()Executes the chained sequence and returns the wrapped result.
@@ -2478,7 +2473,7 @@示例
prototype.next source
+-prototype.next source
_.prototype.next()Gets the next value on a wrapped object following the @@ -2502,7 +2497,7 @@
示例
prototype.plant source
+-prototype.plant source
_.prototype.plant(value)Creates a clone of the chained sequence planting
@@ -2532,7 +2527,7 @@value
as the wrapped value.示例
prototype.Symbol.iterator source
+-prototype.Symbol.iterator source
_.prototype.Symbol.iterator()Enables the wrapper to be iterable.
@@ -2552,7 +2547,7 @@示例
prototype.value run, toJSON, valueOf source
+-prototype.value run, toJSON, valueOf source
_.prototype.value()Executes the chained sequence to extract the unwrapped value.
@@ -2567,7 +2562,7 @@示例
tap source
+-tap source
_.tap(value, interceptor)This method invokes
interceptor
and returnsvalue
. The interceptor is @@ -2597,7 +2592,7 @@示例
thru source
+-thru source
_.thru(value, interceptor)This method is like
@@ -2625,7 +2620,7 @@_.tap
except that it returns the result ofinterceptor
.示例
wrapperFlatMap source
+-wrapperFlatMap source
_.wrapperFlatMap([iteratee=_.identity])This method is the wrapper version of
@@ -2649,7 +2644,7 @@_.flatMap
.示例
countBy source npm
+-countBy source npm
_.countBy(collection, [iteratee=_.identity])Creates an object composed of keys generated from the results of running @@ -2677,7 +2672,7 @@
示例
every source npm
+-every source npm
_.every(collection, [predicate=_.identity])Checks if
predicate
returns truthy for all elements ofcollection
. @@ -2718,7 +2713,7 @@示例
filter source npm
+-filter source npm
_.filter(collection, [predicate=_.identity])Iterates over elements of
collection
, returning an array of all elements @@ -2761,7 +2756,7 @@示例
find source npm
+-find source npm
_.find(collection, [predicate=_.identity])Iterates over elements of
collection
, returning the first element @@ -2805,7 +2800,7 @@示例
findLast source npm
+-findLast source npm
_.findLast(collection, [predicate=_.identity])This method is like
_.find
except that it iterates over elements of @@ -2830,7 +2825,7 @@示例
forEach each source npm
+-forEach each source npm
_.forEach(collection, [iteratee=_.identity])Iterates over elements of
collection
invokingiteratee
for each element. @@ -2866,7 +2861,7 @@示例
forEachRight eachRight source npm
+-forEachRight eachRight source npm
_.forEachRight(collection, [iteratee=_.identity])This method is like
_.forEach
except that it iterates over elements of @@ -2891,7 +2886,7 @@示例
groupBy source npm
+-groupBy source npm
_.groupBy(collection, [iteratee=_.identity])Creates an object composed of keys generated from the results of running @@ -2920,7 +2915,7 @@
示例
includes source npm
+-includes source npm
_.includes(collection, value, [fromIndex=0])Checks if
value
is incollection
. Ifcollection
is a string it's checked @@ -2956,7 +2951,7 @@示例
invokeMap source npm
+-invokeMap source npm
_.invokeMap(collection, path, [args])Invokes the method at
path
of each element incollection
, returning @@ -2986,7 +2981,7 @@示例
keyBy source npm
+-keyBy source npm
_.keyBy(collection, [iteratee=_.identity])Creates an object composed of keys generated from the results of running @@ -3021,7 +3016,7 @@
示例
map source npm
+-map source npm
_.map(collection, [iteratee=_.identity])Creates an array of values by running each element in
collection
through @@ -3072,7 +3067,7 @@示例
orderBy source npm
+-orderBy source npm
_.orderBy(collection, [iteratees=[_.identity]], [orders])This method is like
_.sortBy
except that it allows specifying the sort @@ -3109,7 +3104,7 @@示例
partition source npm
+-partition source npm
_.partition(collection, [predicate=_.identity])Creates an array of elements split into two groups, the first of which @@ -3156,7 +3151,7 @@
示例
reduce source npm
+-reduce source npm
_.reduce(collection, [iteratee=_.identity], [accumulator])Reduces
collection
to a value which is the accumulated result of running @@ -3202,7 +3197,7 @@示例
reduceRight source npm
+-reduceRight source npm
_.reduceRight(collection, [iteratee=_.identity], [accumulator])This method is like
_.reduce
except that it iterates over elements of @@ -3231,7 +3226,7 @@示例
reject source npm
+-reject source npm
_.reject(collection, [predicate=_.identity])The opposite of
_.filter
; this method returns the elements ofcollection
@@ -3273,7 +3268,7 @@示例
sample source npm
+-sample source npm
_.sample(collection)Gets a random element from
@@ -3293,7 +3288,7 @@collection
.示例
sampleSize source npm
+-sampleSize source npm
_.sampleSize(collection, [n=0])Gets
@@ -3315,7 +3310,7 @@n
random elements fromcollection
.示例
shuffle source npm
+-shuffle source npm
_.shuffle(collection)Creates an array of shuffled values, using a version of the @@ -3336,7 +3331,7 @@
示例
size source npm
+-size source npm
_.size(collection)Gets the size of
collection
by returning its length for array-like @@ -3363,7 +3358,7 @@示例
some source npm
+-some source npm
_.some(collection, [predicate=_.identity])Checks if
predicate
returns truthy for any element ofcollection
. @@ -3404,7 +3399,7 @@示例
sortBy source npm
+-sortBy source npm
_.sortBy(collection, [iteratees=[_.identity]])Creates an array of elements, sorted in ascending order by the results of @@ -3446,7 +3441,7 @@
示例
now source npm
+-now source npm
_.now()Gets the timestamp of the number of milliseconds that have elapsed since @@ -3464,7 +3459,7 @@
示例
after source npm
+-after source npm
_.after(n, func)The opposite of
_.before
; this method creates a function that invokes @@ -3495,7 +3490,7 @@示例
ary source npm
+-ary source npm
_.ary(func, [n=func.length])Creates a function that accepts up to
n
arguments, ignoring any @@ -3518,7 +3513,7 @@示例
before source npm
+-before source npm
_.before(n, func)Creates a function that invokes
func
, with thethis
binding and arguments @@ -3542,7 +3537,7 @@示例
bind source npm
+-bind source npm
_.bind(func, thisArg, [partials])Creates a function that invokes
func
with thethis
binding ofthisArg
@@ -3588,7 +3583,7 @@示例
bindKey source npm
+-bindKey source npm
_.bindKey(object, key, [partials])Creates a function that invokes the method at
object[key]
and prepends @@ -3643,7 +3638,7 @@示例
curry source npm
+-curry source npm
_.curry(func, [arity=func.length])Creates a function that accepts arguments of
func
and either invokes @@ -3692,7 +3687,7 @@示例
curryRight source npm
+-curryRight source npm
_.curryRight(func, [arity=func.length])This method is like
_.curry
except that arguments are applied tofunc
@@ -3738,7 +3733,7 @@示例
debounce source npm
+-debounce source npm
_.debounce(func, [wait=0], [options])Creates a debounced function that delays invoking
func
until afterwait
@@ -3798,7 +3793,7 @@示例
defer source npm
+-defer source npm
_.defer(func, [args])Defers invoking the
func
until the current call stack has cleared. Any @@ -3823,7 +3818,7 @@示例
delay source npm
+-delay source npm
_.delay(func, wait, [args])Invokes
func
afterwait
milliseconds. Any additional arguments are @@ -3850,7 +3845,7 @@示例
flip source npm
+-flip source npm
_.flip(func)Creates a function that invokes
@@ -3874,7 +3869,7 @@func
with arguments reversed.示例
memoize source npm
+-memoize source npm
_.memoize(func, [resolver])Creates a function that memoizes the result of
func
. Ifresolver
is @@ -3925,7 +3920,7 @@示例
negate source npm
+-negate source npm
_.negate(predicate)Creates a function that negates the result of the predicate
func
. The @@ -3951,7 +3946,7 @@示例
once source npm
+-once source npm
_.once(func)Creates a function that is restricted to invoking
func
once. Repeat calls @@ -3975,7 +3970,7 @@示例
overArgs source npm
+-overArgs source npm
_.overArgs(func, [transforms])Creates a function that invokes
func
with arguments transformed by @@ -4013,7 +4008,7 @@示例
partial source npm
+-partial source npm
_.partial(func, [partials])Creates a function that invokes
func
withpartial
arguments prepended @@ -4055,7 +4050,7 @@示例
partialRight source npm
+-partialRight source npm
_.partialRight(func, [partials])This method is like
_.partial
except that partially applied arguments @@ -4096,7 +4091,7 @@示例
rearg source npm
+-rearg source npm
_.rearg(func, indexes)Creates a function that invokes
func
with arguments arranged according @@ -4125,7 +4120,7 @@示例
rest source npm
+-rest source npm
_.rest(func, [start=func.length-1])Creates a function that invokes
func
with thethis
binding of the @@ -4156,7 +4151,7 @@示例
spread source npm
+-spread source npm
_.spread(func)Creates a function that invokes
func
with thethis
binding of the created @@ -4195,7 +4190,7 @@示例
throttle source npm
+-throttle source npm
_.throttle(func, [wait=0], [options])Creates a throttled function that only invokes
func
at most once per @@ -4246,7 +4241,7 @@示例
unary source npm
+-unary source npm
_.unary(func)Creates a function that accepts up to one argument, ignoring any @@ -4267,7 +4262,7 @@
示例
wrap source npm
+-wrap source npm
_.wrap(value, wrapper)Creates a function that provides
value
to the wrapper function as its @@ -4296,7 +4291,7 @@示例
clone source npm
+ -cloneDeep source npm
+-cloneDeep source npm
_.cloneDeep(value)This method is like
@@ -4357,7 +4352,7 @@_.clone
except that it recursively clonesvalue
.示例
cloneDeepWith source npm
+-cloneDeepWith source npm
_.cloneDeepWith(value, [customizer])This method is like
@@ -4391,7 +4386,7 @@_.cloneWith
except that it recursively clonesvalue
.示例
cloneWith source npm
+-cloneWith source npm
_.cloneWith(value, [customizer])This method is like
_.clone
except that it acceptscustomizer
which @@ -4428,7 +4423,7 @@示例
eq source npm
+ -gt source npm
+ -gte source npm
+-gte source npm
_.gte(value, other)Checks if
@@ -4522,7 +4517,7 @@value
is greater than or equal toother
.示例
isArguments source npm
+-isArguments source npm
_.isArguments(value)Checks if
@@ -4545,7 +4540,7 @@value
is likely anarguments
object.示例
isArray source npm
+-isArray source npm
_.isArray(value)Checks if
@@ -4574,7 +4569,7 @@value
is classified as anArray
object.示例
isArrayLike source npm
+-isArrayLike source npm
_.isArrayLike(value)Checks if
value
is array-like. A value is considered array-like if it's @@ -4605,7 +4600,7 @@示例
isArrayLikeObject source npm
+-isArrayLikeObject source npm
_.isArrayLikeObject(value)This method is like
_.isArrayLike
except that it also checks ifvalue
@@ -4635,7 +4630,7 @@示例
isBoolean source npm
+-isBoolean source npm
_.isBoolean(value)Checks if
@@ -4658,7 +4653,7 @@value
is classified as a boolean primitive or object.示例
isDate source npm
+-isDate source npm
_.isDate(value)Checks if
@@ -4681,7 +4676,7 @@value
is classified as aDate
object.示例
isElement source npm
+-isElement source npm
_.isElement(value)Checks if
@@ -4704,7 +4699,7 @@value
is likely a DOM element.示例
isEmpty source npm
+-isEmpty source npm
_.isEmpty(value)Checks if
value
is empty. A value is considered empty unless it's an @@ -4738,7 +4733,7 @@示例
isEqual source npm
+-isEqual source npm
_.isEqual(value, other)Performs a deep comparison between two values to determine if they are @@ -4774,7 +4769,7 @@
示例
isEqualWith source npm
+-isEqualWith source npm
_.isEqualWith(value, other, [customizer])This method is like
_.isEqual
except that it acceptscustomizer
which is @@ -4814,7 +4809,7 @@示例
isError source npm
+-isError source npm
_.isError(value)Checks if
value
is anError
,EvalError
,RangeError
,ReferenceError
, @@ -4838,7 +4833,7 @@示例
isFinite source npm
+-isFinite source npm
_.isFinite(value)Checks if
value
is a finite primitive number. @@ -4870,7 +4865,7 @@示例
isFunction source npm
+-isFunction source npm
_.isFunction(value)Checks if
@@ -4893,7 +4888,7 @@value
is classified as aFunction
object.示例
isInteger source npm
+ -isLength source npm
+-isLength source npm
_.isLength(value)Checks if
value
is a valid array-like length. @@ -4957,7 +4952,7 @@示例
isMatch source npm
+-isMatch source npm
_.isMatch(object, source)Performs a deep comparison between
object
andsource
to determine if @@ -4988,7 +4983,7 @@示例
isMatchWith source npm
+-isMatchWith source npm
_.isMatchWith(object, source, [customizer])This method is like
_.isMatch
except that it acceptscustomizer
which @@ -5028,7 +5023,7 @@示例
isNaN source npm
+ -isNative source npm
+-isNative source npm
_.isNative(value)Checks if
@@ -5084,7 +5079,7 @@value
is a native function.示例
isNil source npm
+ -isNull source npm
+ -isNumber source npm
+-isNumber source npm
_.isNumber(value)Checks if
value
is classified as aNumber
primitive or object. @@ -5166,7 +5161,7 @@示例
isObject source npm
+-isObject source npm
_.isObject(value)Checks if
value
is the language type ofObject
. @@ -5196,7 +5191,7 @@示例
isObjectLike source npm
+-isObjectLike source npm
_.isObjectLike(value)Checks if
value
is object-like. A value is object-like if it's notnull
@@ -5226,7 +5221,7 @@示例
isPlainObject source npm
+-isPlainObject source npm
_.isPlainObject(value)Checks if
value
is a plain object, that is, an object created by the @@ -5260,7 +5255,7 @@示例
isRegExp source npm
+-isRegExp source npm
_.isRegExp(value)Checks if
@@ -5283,7 +5278,7 @@value
is classified as aRegExp
object.示例
isSafeInteger source npm
+-isSafeInteger source npm
_.isSafeInteger(value)Checks if
value
is a safe integer. An integer is safe if it's an IEEE-754 @@ -5316,7 +5311,7 @@示例
isString source npm
+-isString source npm
_.isString(value)Checks if
@@ -5339,7 +5334,7 @@value
is classified as aString
primitive or object.示例
isSymbol source npm
+-isSymbol source npm
_.isSymbol(value)Checks if
@@ -5362,7 +5357,7 @@value
is classified as aSymbol
primitive or object.示例
isTypedArray source npm
+-isTypedArray source npm
_.isTypedArray(value)Checks if
@@ -5385,7 +5380,7 @@value
is classified as a typed array.示例
isUndefined source npm
+-isUndefined source npm
_.isUndefined(value)Checks if
@@ -5408,7 +5403,7 @@value
isundefined
.示例
lt source npm
+ -lte source npm
+-lte source npm
_.lte(value, other)Checks if
@@ -5464,7 +5459,7 @@value
is less than or equal toother
.示例
toArray source npm
+ -toInteger source npm
+ -toLength source npm
+-toLength source npm
_.toLength(value)Converts
value
to an integer suitable for use as the length of an @@ -5548,7 +5543,7 @@示例
toNumber source npm
+ -toPlainObject source npm
+-toPlainObject source npm
_.toPlainObject(value)Converts
value
to a plain object flattening inherited enumerable @@ -5607,7 +5602,7 @@示例
toSafeInteger source npm
+-toSafeInteger source npm
_.toSafeInteger(value)Converts
value
to a safe integer. A safe integer can be compared and @@ -5637,7 +5632,7 @@示例
toString source npm
+-toString source npm
_.toString(value)Converts
value
to a string if it's not one. An empty string is returned @@ -5664,7 +5659,7 @@示例
add source npm
+ -ceil source npm
+-ceil source npm
_.ceil(number, [precision=0])Computes
@@ -5714,7 +5709,7 @@number
rounded up toprecision
.示例
floor source npm
+-floor source npm
_.floor(number, [precision=0])Computes
@@ -5742,7 +5737,7 @@number
rounded down toprecision
.示例
max source npm
+-max source npm
_.max(array)Computes the maximum value of
array
. Ifarray
is empty or falsey @@ -5766,7 +5761,7 @@示例
maxBy source npm
+-maxBy source npm
_.maxBy(array, [iteratee=_.identity])This method is like
_.max
except that it acceptsiteratee
which is @@ -5799,7 +5794,7 @@示例
mean source npm
+ -min source npm
+-min source npm
_.min(array)Computes the minimum value of
array
. Ifarray
is empty or falsey @@ -5843,7 +5838,7 @@示例
minBy source npm
+-minBy source npm
_.minBy(array, [iteratee=_.identity])This method is like
_.min
except that it acceptsiteratee
which is @@ -5876,7 +5871,7 @@示例
round source npm
+-round source npm
_.round(number, [precision=0])Computes
@@ -5904,7 +5899,7 @@number
rounded toprecision
.示例
subtract source npm
+-subtract source npm
_.subtract(minuend, subtrahend)Subtract two numbers.
@@ -5926,7 +5921,7 @@示例
sum source npm
+ -sumBy source npm
+-sumBy source npm
_.sumBy(array, [iteratee=_.identity])This method is like
_.sum
except that it acceptsiteratee
which is @@ -5998,7 +5993,7 @@返回值 (number)
clamp source npm
+-clamp source npm
_.clamp(number, [min], max)Returns a number whose value is limited to the given range specified @@ -6026,7 +6021,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 @@ -6071,7 +6066,7 @@示例
random source npm
+-random source npm
_.random([min=0], [max=1], [floating])Produces a random number between
min
andmax
(inclusive). If only one @@ -6111,7 +6106,7 @@示例
assign source npm
+-assign source npm
_.assign(object, [sources])Assigns own enumerable properties of source objects to the destination @@ -6150,7 +6145,7 @@
示例
assignIn extend source npm
+-assignIn extend source npm
_.assignIn(object, [sources])This method is like
_.assign
except that it iterates over own and @@ -6187,7 +6182,7 @@示例
assignInWith extendWith source npm
+-assignInWith extendWith source npm
_.assignInWith(object, sources, [customizer])This method is like
_.assignIn
except that it acceptscustomizer
which @@ -6223,7 +6218,7 @@示例
assignWith source npm
+-assignWith source npm
_.assignWith(object, sources, [customizer])This method is like
_.assign
except that it acceptscustomizer
which @@ -6259,7 +6254,7 @@示例
at source npm
+-at source npm
_.at(object, [paths])Creates an array of values corresponding to
@@ -6286,7 +6281,7 @@paths
ofobject
.示例
create source npm
+-create source npm
_.create(prototype, [properties])Creates an object that inherits from the
prototype
object. If aproperties
@@ -6326,7 +6321,7 @@示例
defaults source npm
+-defaults source npm
_.defaults(object, [sources])Assigns own and inherited enumerable properties of source objects to the @@ -6354,7 +6349,7 @@
示例
defaultsDeep source npm
+-defaultsDeep source npm
_.defaultsDeep(object, [sources])This method is like
_.defaults
except that it recursively assigns @@ -6380,7 +6375,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 @@ -6421,7 +6416,7 @@示例
findLastKey source npm
+-findLastKey source npm
_.findLastKey(object, [predicate=_.identity])This method is like
_.findKey
except that it iterates over elements of @@ -6462,7 +6457,7 @@示例
forIn source npm
+-forIn source npm
_.forIn(object, [iteratee=_.identity])Iterates over own and inherited enumerable properties of an object invoking @@ -6496,7 +6491,7 @@
示例
forInRight source npm
+-forInRight source npm
_.forInRight(object, [iteratee=_.identity])This method is like
_.forIn
except that it iterates over properties of @@ -6528,7 +6523,7 @@示例
forOwn source npm
+-forOwn source npm
_.forOwn(object, [iteratee=_.identity])Iterates over own enumerable properties of an object invoking
iteratee
@@ -6562,7 +6557,7 @@示例
forOwnRight source npm
+-forOwnRight source npm
_.forOwnRight(object, [iteratee=_.identity])This method is like
_.forOwn
except that it iterates over properties of @@ -6594,7 +6589,7 @@示例
functions source npm
+-functions source npm
_.functions(object)Creates an array of function property names from own enumerable properties @@ -6622,7 +6617,7 @@
示例
functionsIn source npm
+-functionsIn source npm
_.functionsIn(object)Creates an array of function property names from own and inherited @@ -6650,7 +6645,7 @@
示例
get source npm
+-get source npm
_.get(object, path, [defaultValue])Gets the value at
path
ofobject
. If the resolved value is @@ -6683,7 +6678,7 @@示例
has source npm
+-has source npm
_.has(object, path)Checks if
@@ -6717,7 +6712,7 @@path
is a direct property ofobject
.示例
hasIn source npm
+-hasIn source npm
_.hasIn(object, path)Checks if
@@ -6750,7 +6745,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
. @@ -6780,7 +6775,7 @@示例
invoke source npm
+-invoke source npm
_.invoke(object, path, [args])Invokes the method at
@@ -6806,7 +6801,7 @@path
ofobject
.示例
keys source npm
+-keys source npm
_.keys(object)Creates an array of the own enumerable property names of
object
. @@ -6841,7 +6836,7 @@示例
keysIn source npm
+-keysIn source npm
_.keysIn(object)Creates an array of the own and inherited enumerable property names of
object
. @@ -6871,7 +6866,7 @@示例
mapKeys source npm
+-mapKeys source npm
_.mapKeys(object, [iteratee=_.identity])The opposite of
_.mapValues
; this method creates an object with the @@ -6897,7 +6892,7 @@示例
mapValues source npm
+-mapValues source npm
_.mapValues(object, [iteratee=_.identity])Creates an object with the same keys as
object
and values generated by @@ -6930,7 +6925,7 @@示例
merge source npm
+-merge source npm
_.merge(object, [sources])Recursively merges own and inherited enumerable properties of source @@ -6968,7 +6963,7 @@
示例
mergeWith source npm
+-mergeWith source npm
_.mergeWith(object, sources, customizer)This method is like
_.merge
except that it acceptscustomizer
which @@ -7012,7 +7007,7 @@示例
omit source npm
+-omit source npm
_.omit(object, [props])The opposite of
_.pick
; this method creates an object composed of the @@ -7037,7 +7032,7 @@示例
omitBy source npm
+-omitBy source npm
_.omitBy(object, [predicate=_.identity])The opposite of
_.pickBy
; this method creates an object composed of the @@ -7063,7 +7058,7 @@示例
pick source npm
+-pick source npm
_.pick(object, [props])Creates an object composed of the picked
@@ -7087,7 +7082,7 @@object
properties.示例
pickBy source npm
+-pickBy source npm
_.pickBy(object, [predicate=_.identity])Creates an object composed of the
object
propertiespredicate
returns @@ -7112,7 +7107,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 @@ -7149,7 +7144,7 @@示例
set source npm
+-set source npm
_.set(object, path, value)Sets the value at
path
ofobject
. If a portion ofpath
doesn't exist @@ -7183,7 +7178,7 @@示例
- array (Array)
- array (Array)
- pairs (Array)
- array (Array)
- array (Array)