mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 08:28:25 -05:00
Use the native isArray whenever possible. See perf test by jdalton here: http://jsperf.com/isarray-vs-other Fixes #6825.
This commit is contained in:
@@ -441,7 +441,7 @@ jQuery.extend({
|
||||
return jQuery.type(obj) === "function";
|
||||
},
|
||||
|
||||
isArray: function( obj ) {
|
||||
isArray: Array.isArray || function( obj ) {
|
||||
return jQuery.type(obj) === "array";
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user