Package Exports
- object-define-properties-x
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-define-properties-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
object-define-properties-x
Sham for Object.defineProperties
Version: 4.2.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports(object, properties)
⇒ Object
⏏
This method defines new or modifies existing properties directly on an object, returning the object.
Kind: Exported function
Returns: Object
- The object that was passed to the function.
Param | Type | Description |
---|---|---|
object | Object |
The object on which to define or modify properties. |
properties | Object |
An object whose own enumerable properties constitute descriptors for the properties to be defined or modified. |
Example
var defineProperties = require('object-define-properties-x');
var obj = {};
defineProperties(obj, {
'property1': {
value: true,
writable: true
},
'property2': {
value: 'Hello',
writable: true
}
// etc. etc.
});