From b8c2a05db93baa4fa476bd566b2b0970da85643d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 13 Aug 2012 07:37:26 -0700 Subject: [PATCH] Add strict comparison note to `_.intersection` and `_.union` documentation. Former-commit-id: 47792d96e77fdeb6f00db1e4d30b41a6f1a59dbb --- lodash.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 09cd80bc0..40b9cca66 100644 --- a/lodash.js +++ b/lodash.js @@ -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 _