🍄property descriptor
JS ⟩ value ⟩ object ⟩ property ⟩ attribute ⟩ property descriptor
an object that represents the attributes of another object.
// data property descriptor
{
value: 1
writable: true,
enumerable: true,
configurable: true,
}
// accessor property descriptor
{
get: function(){}, // ES6: get(){}
set: function(){}, // ES6: set(){}
enumerable: true,
configurable: true,
}
Last updated
Was this helpful?