object on which to define the properties
object with property descriptors
object with added and/or modified properties
var obj = {};
defineProperties( obj, {
'foo': {
'value': 'bar'
},
'baz': {
'value': 13
}
});
var val = obj.foo;
// returns 'bar'
val = obj.baz;
// returns 13
Defines (and/or modifies) object properties.