Created
June 27, 2014 07:39
-
-
Save hubsgz/b015b7df94884a56fdbc to your computer and use it in GitHub Desktop.
判断一个对象是否是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
//判断一个对象是否是array类型 | |
var isArray : function(v){ | |
return toString.apply(v) === '[object Array]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment