-
-
Save parzibyte/9ee7e7aaaf180eedbfcf3a14ad680480 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
const tipoDeArgumento = argumento => { | |
// https://parzibyte.me/blog | |
const tipo = typeof argumento; | |
// Diccionario con equivalentes | |
const diccionario = { | |
"object": "objeto", | |
"boolean": "booleano", | |
"function": "función", | |
"number": "número", | |
"string": "cadena", | |
"undefined": "undefined", | |
}; | |
return diccionario[tipo]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment