vRO

Find the type of object

 

//find type of object

function typeOf (obj) {
return {}.toString.call(obj).split(‘ ‘)[1].slice(0, -1);

}

Tags

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Close