java_home
Monday, September 22, 2014
Javascript Custom Utility Method to check a variable is undefined
var obj=[];
if(Object.prototype.toString.call(obj)=="[object Array]")
{
console.log("as");
}
console.log(obj.toString());
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment