Created
March 10, 2019 18:56
-
-
Save BolajiAyodeji/a6b43032adb5dab84361a3437ed9e977 to your computer and use it in GitHub Desktop.
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
let user = { | |
name: "Bolaji" | |
}; | |
let descriptor = Object.getOwnPropertyDescriptor(user, 'name'); | |
console.log(descriptor); | |
// {value: "Bolaji", writable: true, enumerable: true, configurable: true} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment