Ticket #6825 (closed enhancement: fixed)
Use Array.isArray for jQuery.isArray when available
|Reported by:||salty-horse||Owned by:|
Originally posted on the forum
Patch available on github: http://github.com/salty-horse/jquery/commits/array
ECMAScript 5 defines Array.isArray which is available in Firefox and WebKit (only ones I checked).
I think jQuery should use it, if available, instead of checking the object's toString being "[object Array]".