Skip to content

Instantly share code, notes, and snippets.



Last active Sep 26, 2018
What would you like to do?
Utility to check variable types easy
function getType(x){
return\[(.*)\s|\]$/g, '')
// Types (all strings):
// number
// string
// boolean
// date
// array
// object
// null
// undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment