aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-plugin-espower/lib/define-properties.js
blob: 9f86150fb1aea8c5fa1d7c355cee6a899d531d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'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
        });
    });
};