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 skater = { | |
| nome: 'Corey Duffel', | |
| twitter: '@duffel' | |
| }; | |
| function containsStringValue(object, value) { | |
| return Object.values(object) | |
| .toString() | |
| .includes(value); | |
| } |
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
| function getUser() { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| return resolve({ | |
| id: 1, | |
| name: 'Aladin', | |
| birthDate: new Date() | |
| }); | |
| }, 1000); | |
| }); |