function isType(exp) {
try {
return typeof exp;
if (typeof exp === “undefined”) return “undefined”;
var clazz = Object.prototype.toString.call(exp);
return clazz.substring(8, clazz.length-1).toLowerCase();
} catch (err) { }
}
Helping online merchants succeed is what we do best!
Leave a Reply
You must be logged in to post a comment.