UNPKG

1.37 kBJavaScriptView Raw
1'use strict';
2
3function _inheritsLoose(subClass, superClass) {
4 subClass.prototype = Object.create(superClass.prototype);
5 subClass.prototype.constructor = subClass;
6 subClass.__proto__ = superClass;
7}
8
9function _assertThisInitialized(self) {
10 if (self === void 0) {
11 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12 }
13
14 return self;
15}
16
17function _extends() {
18 _extends = Object.assign || function (target) {
19 for (var i = 1; i < arguments.length; i++) {
20 var source = arguments[i];
21
22 for (var key in source) {
23 if (Object.prototype.hasOwnProperty.call(source, key)) {
24 target[key] = source[key];
25 }
26 }
27 }
28
29 return target;
30 };
31
32 return _extends.apply(this, arguments);
33}
34
35function _objectWithoutPropertiesLoose(source, excluded) {
36 if (source == null) return {};
37 var target = {};
38 var sourceKeys = Object.keys(source);
39 var key, i;
40
41 for (i = 0; i < sourceKeys.length; i++) {
42 key = sourceKeys[i];
43 if (excluded.indexOf(key) >= 0) continue;
44 target[key] = source[key];
45 }
46
47 return target;
48}
49
50exports._assertThisInitialized = _assertThisInitialized;
51exports._extends = _extends;
52exports._inheritsLoose = _inheritsLoose;
53exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
54//# sourceMappingURL=objectWithoutPropertiesLoose-1af20ad0.js.map