wallet-core/node_modules/babel-plugin-espower/lib/define-properties.js
2017-05-28 00:40:43 +02:00

13 lines
304 B
JavaScript

'use strict';
module.exports = function defineProperties (obj, map) {
Object.keys(map).forEach(function (name) {
Object.defineProperty(obj, name, {
configurable: true,
enumerable: false,
value: map[name],
writable: true
});
});
};