Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var toType = function(obj) {
- return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement