diff --git a/docs/underscore.html b/docs/underscore.html index ce0b9e38f..76af64f34 100644 --- a/docs/underscore.html +++ b/docs/underscore.html @@ -210,7 +210,7 @@ an index go together.
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) {