@progress/kendo-charts 1.19.0 → 1.19.1-dev.202110081424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,9 +80,19 @@ prototypeAccessors$1.size.get = function () {
|
|
|
80
80
|
Object.defineProperties( SetWrapper.prototype, prototypeAccessors$1 );
|
|
81
81
|
|
|
82
82
|
// TODO: Drop LegacySet when removing support for IE10
|
|
83
|
+
var supportsSet = function () {
|
|
84
|
+
var supported = false;
|
|
83
85
|
|
|
84
|
-
export default function createHashSet(values) {
|
|
85
86
|
if (typeof Set === 'function') {
|
|
87
|
+
var set = new Set([1]);
|
|
88
|
+
supported = set.has(1);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return supported;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default function createHashSet(values) {
|
|
95
|
+
if (supportsSet()) {
|
|
86
96
|
return new SetWrapper(values);
|
|
87
97
|
}
|
|
88
98
|
|
|
@@ -74,9 +74,19 @@ class SetWrapper {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// TODO: Drop LegacySet when removing support for IE10
|
|
77
|
+
let supportsSet = () => {
|
|
78
|
+
let supported = false;
|
|
77
79
|
|
|
78
|
-
export default function createHashSet(values) {
|
|
79
80
|
if (typeof Set === 'function') {
|
|
81
|
+
const set = new Set([1]);
|
|
82
|
+
supported = set.has(1);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return supported;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default function createHashSet(values) {
|
|
89
|
+
if (supportsSet()) {
|
|
80
90
|
return new SetWrapper(values);
|
|
81
91
|
}
|
|
82
92
|
|