]> source.dussan.org Git - jquery.git/commitdiff
Use the native isArray whenever possible. See perf test by jdalton here: http://jsper...
authorJohn Resig <jeresig@gmail.com>
Fri, 27 Aug 2010 17:15:48 +0000 (13:15 -0400)
committerJohn Resig <jeresig@gmail.com>
Fri, 27 Aug 2010 17:15:48 +0000 (13:15 -0400)
src/core.js

index d4a0e61bb7dc270e4d95cbb534f3b2e0540fa890..6e1f74520d9c0fa8407e67b1d9ab16d1e6e7dd83 100644 (file)
@@ -441,7 +441,7 @@ jQuery.extend({
                return jQuery.type(obj) === "function";
        },
 
-       isArray: function( obj ) {
+       isArray: Array.isArray || function( obj ) {
                return jQuery.type(obj) === "array";
        },