Created
December 27, 2018 16:04
-
-
Save caio-ribeiro-pereira/ee9ba1ada500cf5ef844ada32205df72 to your computer and use it in GitHub Desktop.
Pesquisando palavras nos atributos de um objeto
This file contains hidden or 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 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