UNPKG

904 BJavaScriptView Raw
1var _Object$defineProperty = require("core-js/library/fn/object/define-property.js");
2var toPropertyKey = require("./toPropertyKey.js");
3function _defineProperties(target, props) {
4 for (var i = 0; i < props.length; i++) {
5 var descriptor = props[i];
6 descriptor.enumerable = descriptor.enumerable || false;
7 descriptor.configurable = true;
8 if ("value" in descriptor) descriptor.writable = true;
9 _Object$defineProperty(target, toPropertyKey(descriptor.key), descriptor);
10 }
11}
12function _createClass(Constructor, protoProps, staticProps) {
13 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
14 if (staticProps) _defineProperties(Constructor, staticProps);
15 _Object$defineProperty(Constructor, "prototype", {
16 writable: false
17 });
18 return Constructor;
19}
20module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
\No newline at end of file