Last active
August 9, 2020 08:34
-
-
Save matthewoestreich/91439f1a960761bad08d9d223a84f3e9 to your computer and use it in GitHub Desktop.
JavaScript Property Descriptors
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
| // https://flaviocopes.com/javascript-property-descriptors/ | |
| const js_standard_property_descriptors_and_definitions = { | |
| value: "the value of the property", | |
| writable: "true the property can be changed", | |
| configurable: "if false, the property cannot be removed nor any attribute can be changed, except its value", | |
| enumerable: "true if the property is enumerable", | |
| get: "a getter function for the property, called when the property is read", | |
| set: "a setter function for the property, called when the property is set to a value", | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment