Commit ea8b1584 authored by John Resig's avatar John Resig

Use the native isArray whenever possible. See perf test by jdalton here:...

Use the native isArray whenever possible. See perf test by jdalton here: http://jsperf.com/isarray-vs-other Fixes #6825.
parent 7f18d292
...@@ -441,7 +441,7 @@ jQuery.extend({ ...@@ -441,7 +441,7 @@ jQuery.extend({
return jQuery.type(obj) === "function"; return jQuery.type(obj) === "function";
}, },
isArray: function( obj ) { isArray: Array.isArray || function( obj ) {
return jQuery.type(obj) === "array"; return jQuery.type(obj) === "array";
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment