Skip to content
Permalink
Browse files
Use the native isArray whenever possible. See perf test by jdalton he…
  • Loading branch information
jeresig committed Aug 27, 2010
1 parent 7f18d29 commit ea8b158
Showing 1 changed file with 1 addition and 1 deletion.
@@ -441,7 +441,7 @@ jQuery.extend({
return jQuery.type(obj) === "function";
},

isArray: function( obj ) {
isArray: Array.isArray || function( obj ) {
return jQuery.type(obj) === "array";
},

0 comments on commit ea8b158

Please sign in to comment.