mattlundstrom
8/28/2013 - 7:42 AM

Get Javascript Object Type

Get Javascript Object Type

function type(obj){
  
    return Object.prototype.toString.call(obj).slice(8, -1);
}