From 6763b0619277943d406d4f7a9a99f80248f2460e Mon Sep 17 00:00:00 2001
From: Jason Davies
If the browser doesn't supply us with indexOf (I'm looking at you, MSIE),
-we need this function. Return the position of the first occurence of an
+we need this function. Return the position of the first occurrence of an
item in an array, or -1 if the item is not included in the array.
Delegates to ECMAScript 5's native indexOf if available.
_.indexOf = function(array, item) {
if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
diff --git a/underscore.js b/underscore.js
index 7b17fc649..8689aeb42 100644
--- a/underscore.js
+++ b/underscore.js
@@ -338,7 +338,7 @@
};
// If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
- // we need this function. Return the position of the first occurence of an
+ // we need this function. Return the position of the first occurrence of an
// item in an array, or -1 if the item is not included in the array.
// Delegates to **ECMAScript 5**'s native `indexOf` if available.
_.indexOf = function(array, item) {