mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Add strict comparison note to _.intersection and _.union documentation.
Former-commit-id: 47792d96e77fdeb6f00db1e4d30b41a6f1a59dbb
This commit is contained in:
@@ -1259,7 +1259,8 @@
|
||||
'args': 'value',
|
||||
'init': 'true',
|
||||
'top':
|
||||
'var className = toString.call(value), length = value.length;\n' +
|
||||
'var className = toString.call(value),\n' +
|
||||
' length = value.length;\n' +
|
||||
'if (arrayLikeClasses[className]' +
|
||||
(noArgsClass ? ' || isArguments(value)' : '') + ' ||\n' +
|
||||
' (className == objectClass && length > -1 && length === length >>> 0 &&\n' +
|
||||
@@ -2543,7 +2544,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the intersection of all the passed-in arrays.
|
||||
* Computes the intersection of all the passed-in arrays using strict equality
|
||||
* for comparisons, i.e. `===`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2913,7 +2915,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the union of the passed-in arrays.
|
||||
* Computes the union of the passed-in arrays using strict equality for
|
||||
* comparisons, i.e. `===`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user