Add strict comparison note to _.intersection and _.union documentation.

Former-commit-id: 47792d96e77fdeb6f00db1e4d30b41a6f1a59dbb
This commit is contained in:
John-David Dalton
2012-08-13 07:37:26 -07:00
parent 4087dc5fe4
commit b8c2a05db9

View File

@@ -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 _