Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let something = {}
- Object.prototype.toString.call(something).replace(/\[object (\w+)\]/, "$1").toLowerCase()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement