The objDefine() method defines a new or modifies an existing single property accessors for the target object based
on the configuration defined for the propDesc argument of type ObjDefinePropDescriptor. This will call
objDefineProp after creating the required PropertyDescriptor populating defaults for the propDesc values.
Note, the default values (true) for configurable and enumerable are different from the defaults provided by objDefineProp.
The objDefine() method defines a new or modifies an existing single property accessors for the target object based on the configuration defined for the propDesc argument of type ObjDefinePropDescriptor. This will call objDefineProp after creating the required PropertyDescriptor populating defaults for the propDesc values. Note, the default values (true) for
configurable
andenumerable
are different from the defaults provided by objDefineProp.