From d1cc04c9118a6d75f81adf26427cf27db0aed0fa Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Mon, 7 Sep 2009 13:20:36 +0100 Subject: [PATCH] doc: updated Array#indexOf to say that it uses strict equality --- src/lang/array.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lang/array.js b/src/lang/array.js index 1481dfd..9a2f672 100644 --- a/src/lang/array.js +++ b/src/lang/array.js @@ -360,7 +360,8 @@ Array.from = $A; * the search. * * Returns the index of the first occurrence of `item` within the array, - * or `-1` if `item` doesn't exist in the array. + * or `-1` if `item` doesn't exist in the array. `Array#indexOf` compares + * items using *strict equality* (`===`). * * ### Examples *