Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 13, 2021 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9ee7e7aaaf180eedbfcf3a14ad680480 to your computer and use it in GitHub Desktop.
Save parzibyte/9ee7e7aaaf180eedbfcf3a14ad680480 to your computer and use it in GitHub Desktop.
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