mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00: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:
parent
7f18d29287
commit
ea8b1584b1
@ -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";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user