Created
April 27, 2020 04:46
-
-
Save Giayychan/9dbc80bcdd22196a24a8581b3ea89b93 to your computer and use it in GitHub Desktop.
return an array containing the given object's own enumerable property values.
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 object1 = { | |
a: 'somestring', | |
b: 42, | |
c: false | |
}; | |
console.log(Object.values(object1)); | |
// expected output: Array ["somestring", 42, false] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment