From: John Resig Date: Fri, 27 Aug 2010 17:15:48 +0000 (-0400) Subject: Use the native isArray whenever possible. See perf test by jdalton here: http://jsper... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=ea8b1584b1905bbb414dc2e3cf562c6f3904bd97 Use the native isArray whenever possible. See perf test by jdalton here: jsperf.com/isarray-vs-other Fixes #6825. --- diff --git a/src/core.js b/src/core.js index d4a0e61..6e1f745 100644 --- a/src/core.js +++ b/src/core.js @@ -441,7 +441,7 @@ jQuery.extend({ return jQuery.type(obj) === "function"; }, - isArray: function( obj ) { + isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; },