Created
January 18, 2022 04:35
-
-
Save hochan222/6420aff427f61c39375aa65a43630034 to your computer and use it in GitHub Desktop.
javascript checkType
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 checkType(variable) { | |
return Object.prototype.toString.call(variable).slice(8,-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment