Skip to content

Instantly share code, notes, and snippets.

@caio-ribeiro-pereira
Created December 27, 2018 16:04
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 caio-ribeiro-pereira/ee9ba1ada500cf5ef844ada32205df72 to your computer and use it in GitHub Desktop.
Save caio-ribeiro-pereira/ee9ba1ada500cf5ef844ada32205df72 to your computer and use it in GitHub Desktop.
Pesquisando palavras nos atributos de um objeto
const pessoa = {
nome: 'John Connor',
twitter: '@john'
};
Object.values(pessoa)
.toString()
.includes('Connor');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment