Skip to content

Instantly share code, notes, and snippets.

@matthewoestreich
Last active August 9, 2020 08:34
Show Gist options
  • Select an option

  • Save matthewoestreich/91439f1a960761bad08d9d223a84f3e9 to your computer and use it in GitHub Desktop.

Select an option

Save matthewoestreich/91439f1a960761bad08d9d223a84f3e9 to your computer and use it in GitHub Desktop.
JavaScript Property Descriptors
// 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