Created
December 16, 2021 11:55
-
-
Save iamaamir/5730eb2c5c498c30f9a247fa1c472c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function betterTypeOf (obj) { | |
return Object.prototype.toString.call(obj).slice(8, -1).toLowerCase(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment