Created
September 16, 2011 13:02
-
-
Save leepowelldev/1222073 to your computer and use it in GitHub Desktop.
Check javascript object is Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.prototype.toString.call(a); //-> [object Array] | |
Object.prototype.toString.call(a).toLowerCase.indexOf('array'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment