mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +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',
|
'args': 'value',
|
||||||
'init': 'true',
|
'init': 'true',
|
||||||
'top':
|
'top':
|
||||||
'var className = toString.call(value), length = value.length;\n' +
|
'var className = toString.call(value),\n' +
|
||||||
|
' length = value.length;\n' +
|
||||||
'if (arrayLikeClasses[className]' +
|
'if (arrayLikeClasses[className]' +
|
||||||
(noArgsClass ? ' || isArguments(value)' : '') + ' ||\n' +
|
(noArgsClass ? ' || isArguments(value)' : '') + ' ||\n' +
|
||||||
' (className == objectClass && length > -1 && length === length >>> 0 &&\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
|
* @static
|
||||||
* @memberOf _
|
* @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
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
|||||||
Reference in New Issue
Block a user