@solibo/home-api 1.1.17 → 1.1.18

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.
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.clz32 === 'undefined') {
41
- Math.clz32 = function (log, LN2) {
42
- return function (x) {
43
- var asUint = x >>> 0;
44
- if (asUint === 0) {
45
- return 32;
46
- }
47
- return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
48
- };
49
- }(Math.log, Math.LN2);
50
- }
51
40
  if (typeof Math.trunc === 'undefined') {
52
41
  Math.trunc = function (x) {
53
42
  if (isNaN(x)) {
@@ -59,6 +48,17 @@ if (typeof Math.trunc === 'undefined') {
59
48
  return Math.ceil(x);
60
49
  };
61
50
  }
51
+ if (typeof Math.clz32 === 'undefined') {
52
+ Math.clz32 = function (log, LN2) {
53
+ return function (x) {
54
+ var asUint = x >>> 0;
55
+ if (asUint === 0) {
56
+ return 32;
57
+ }
58
+ return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
59
+ };
60
+ }(Math.log, Math.LN2);
61
+ }
62
62
  if (typeof String.prototype.endsWith === 'undefined') {
63
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
64
64
  var subjectString = this.toString();