From ea8b1584b1905bbb414dc2e3cf562c6f3904bd97 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 27 Aug 2010 13:15:48 -0400 Subject: [PATCH] Use the native isArray whenever possible. See perf test by jdalton here: http://jsperf.com/isarray-vs-other Fixes #6825. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index d4a0e61b..6e1f7452 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"; },