Skip to content

Instantly share code, notes, and snippets.

@hubsgz
Created June 27, 2014 07:39
Show Gist options
  • Save hubsgz/b015b7df94884a56fdbc to your computer and use it in GitHub Desktop.
Save hubsgz/b015b7df94884a56fdbc to your computer and use it in GitHub Desktop.
判断一个对象是否是array类型
//判断一个对象是否是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