Global

Members


<constant> _mixin_1


<constant> argsTag

Object#toString result references.


<constant> argsTag

Object#toString result references.


<private> baseKeysIn

The base implementation of _.keysIn which doesn't skip the constructor
property of prototypes or treat sparse arrays as dense.


<constant> boolTag

Object#toString result references.


<constant> Buffer

Built-in value references.


<constant> dateTag

Object#toString result references.


<constant> DEFAULT_TRUNC_LENGTH

Used as default options for _.truncate.


<constant> enumerate

Built-in value references.


<constant> errorTag

Object#toString result references.


<constant> freeExports

Detect free variable exports.


<constant> freeModule

Detect free variable module.


<constant> freeParseInt

Built-in method references without a dependency on root.


<constant> funcTag

Object#toString result references.


<constant> funcToString

Used to resolve the decompiled source of functions.


<constant> hasOwnProperty

Used to check objects for own properties.


<constant> hasOwnProperty

Used to check objects for own properties.


<constant> hasOwnProperty

Used to check objects for own properties.


<constant> hasOwnProperty

Used to check objects for own properties.


<constant> INFINITY

Used as references for various Number constants.


<constant> INFINITY

Used as references for various Number constants.


<private, constant> isMaskable

Checks if func is capable of being masked.


<constant> iteratorSymbol

Built-in value references.


<constant> LARGE_ARRAY_SIZE

Used as the size to enable large array optimizations.


<constant> MAX_SAFE_INTEGER

Used as references for various Number constants.


MAX_SAFE_INTEGER

Used as references for various Number constants.


<constant> moduleExports

Detect the popular CommonJS extension module.exports.


<constant> NAN

Used as references for various Number constants.


<constant> NAN

Used as references for various Number constants.


<constant> nonEnumShadows

Detect if properties shadowing those on Object.prototype are non-enumerable.


<constant> numberTag

Object#toString result references.


<constant> objectCtorString

Used to infer the Object constructor.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectProto

Used for built-in method references.


<constant> objectTag

Object#toString result references.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> objectToString

Used to resolve the
toStringTag
of values.


<constant> propertyIsEnumerable

Built-in value references.


<constant> propertyIsEnumerable

Built-in value references.


<constant> reBasicWord

Used to match non-compound words composed of alphanumeric characters.


<constant> reComboMark


<constant> reComplexWord

Used to match complex or compound words.


<constant> reEscapedHtml

Used to match HTML entities and HTML characters.


<constant> reFlags

Used to match RegExp flags from their coerced string values.


<constant> regexpTag

Object#toString result references.


<constant> reHasComplexWord

Used to detect strings that need a more robust regexp to match words.


<constant> reIsBadHex

Used to detect bad signed hexadecimal string values.


<constant> reIsBinary

Used to detect binary string values.


<constant> reIsOctal

Used to detect octal string values.


<constant> reLatin1

Used to match latin-1 supplementary letters (excluding mathematical operators).


<constant> reRegExpChar

Used to match RegExp
syntax characters.


<constant> reTrim

Used to match leading and trailing whitespace.


<constant> reUnescapedHtml

Used to match HTML entities and HTML characters.


<constant> rsApos

Used to compose unicode capture groups.


<constant> rsAstralRange

Used to compose unicode character classes.


<constant> rsCombo

Used to compose unicode capture groups.


<constant> rsComboMarksRange

Used to compose unicode character classes.


<constant> rsLowerMisc

Used to compose unicode regexes.


<constant> stringTag

Object#toString result references.


<constant> symbolProto

Used to convert symbols to primitives and strings.


<constant> typedArrayTags

Used to identify toStringTag values of typed arrays.


<constant> UNORDERED_COMPARE_FLAG

Used to compose bitmasks for comparison styles.


<constant> weakSetTag

Object#toString result references.

Methods


<private> baseHasIn( [obj], key)

The base implementation of _.hasIn without support for deep paths.

Parameters:
Name Type Argument Description
obj Object <optional>

The object to query.

key Array | string

The key to check.

Returns:

Returns true if key exists, else false.

Type
boolean

<private> baseIsEqualDeep(object, other, equalFunc [, customizer] [, bitmask] [, stack])

A specialized version of baseIsEqual for arrays and objects which performs
deep comparisons and tracks traversed objects enabling objects with circular
references to be compared.

Parameters:
Name Type Argument Description
object Object

The object to compare.

other Object

The other object to compare.

equalFunc function

The function to determine equivalents of values.

customizer function <optional>

The function to customize comparisons.

bitmask number <optional>

The bitmask of comparison flags. See baseIsEqual
for more details.

stack Object <optional>

Tracks traversed object and other objects.

Returns:

Returns true if the objects are equivalent, else false.

Type
boolean

<private> baseKeys(object)

The base implementation of _.keys which doesn't skip the constructor
property of prototypes or treat sparse arrays as dense.

Parameters:
Name Type Description
object Object

The object to query.

Returns:

Returns the array of property names.

Type
Array

<private> escapeHtmlChar(chr)

Used by _.escape to convert characters to HTML entities.

Parameters:
Name Type Description
chr string

The matched character to escape.

Returns:

Returns the escaped character.

Type
string

<private> intersection(arr, arrays)

The base implementation of methods like _.intersection, without support
for iteratee shorthands, that accepts an array of arrays to inspect.

Parameters:
Name Type Argument Description
arr Array

The arrays to be inspected.

arrays Array <repeatable>

The arrays to inspect.

Returns:

Returns the new array of shared values.

Type
Array
Example
_.intersection([2, 1], [2, 3]);
// => [2]

isIdentical(a, b)

Determines whether two values are the same value.

Parameters:
Name Type Description
a

First value to compare

b

Second value to compare

Returns:

true if the values are the same; false otherwise


partial(targetFunction, suppliedArgs)

Returns a function which invokes the given function with the given arguments prepended to its argument list.
Like Function.prototype.bind, but does not alter execution context.

Parameters:
Name Type Argument Description
targetFunction

The function that needs to be bound

suppliedArgs <repeatable>

An optional array of arguments to prepend to the targetFunction arguments list

Returns:

The bound function


<private> range( [fromRight])

Creates a _.range or _.rangeRight function.

Parameters:
Name Type Argument Description
fromRight boolean <optional>

Specify iterating from right to left.

Returns:

Returns the new range function.

Type
function

uuid( [len] [, salt])

生成一个唯一标识ID

Parameters:
Name Type Argument Default Description
len number <optional>
36

长度

salt number <optional>
62

随机数

Returns:

生成唯一标识ID

Type
string