mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-30 18:59:10 +00:00
17 lines
481 B
JavaScript
17 lines
481 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var defineProperty = require('core-js/library/fn/object/define-property');
|
||
|
var forEach = require('core-js/library/fn/array/for-each');
|
||
|
var keys = require('core-js/library/fn/object/keys');
|
||
|
|
||
|
module.exports = function defineProperties (obj, map) {
|
||
|
forEach(keys(map), function (name) {
|
||
|
defineProperty(obj, name, {
|
||
|
configurable: true,
|
||
|
enumerable: false,
|
||
|
value: map[name],
|
||
|
writable: true
|
||
|
});
|
||
|
});
|
||
|
};
|