wallet-core/node_modules/babel-plugin-espower/lib/define-properties.js

13 lines
304 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'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
});
});
};