raspberry_games_engine_helpers 1.8.497 → 1.8.499

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.
@@ -57,6 +57,12 @@ if (typeof Math.clz32 === 'undefined') {
57
57
  };
58
58
  }(Math.log, Math.LN2);
59
59
  }
60
+ if (typeof String.prototype.startsWith === 'undefined') {
61
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
62
+ position = position || 0;
63
+ return this.lastIndexOf(searchString, position) === position;
64
+ }});
65
+ }
60
66
  if (typeof String.prototype.endsWith === 'undefined') {
61
67
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
62
68
  var subjectString = this.toString();
@@ -68,12 +74,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
68
74
  return lastIndex !== -1 && lastIndex === position;
69
75
  }});
70
76
  }
71
- if (typeof String.prototype.startsWith === 'undefined') {
72
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
- position = position || 0;
74
- return this.lastIndexOf(searchString, position) === position;
75
- }});
76
- }
77
77
  //endregion
78
78
  (function (factory) {
79
79
  if (typeof define === 'function' && define.amd)
@@ -1059,9 +1059,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
1059
1059
  checkStepIsPositive(step > 0, step);
1060
1060
  return Companion_instance_13.j1(_this__u8e3s4.k1_1, _this__u8e3s4.l1_1, _this__u8e3s4.m1_1 > 0 ? step : -step | 0);
1061
1061
  }
1062
- function coerceAtLeast_0(_this__u8e3s4, minimumValue) {
1063
- return compare(_this__u8e3s4, minimumValue) < 0 ? minimumValue : _this__u8e3s4;
1064
- }
1065
1062
  function coerceIn_0(_this__u8e3s4, minimumValue, maximumValue) {
1066
1063
  if (minimumValue > maximumValue)
1067
1064
  throw IllegalArgumentException_init_$Create$_0('Cannot coerce value to an empty range: maximum ' + maximumValue + ' is less than minimum ' + minimumValue + '.');
@@ -1071,6 +1068,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
1071
1068
  return maximumValue;
1072
1069
  return _this__u8e3s4;
1073
1070
  }
1071
+ function coerceAtLeast_0(_this__u8e3s4, minimumValue) {
1072
+ return compare(_this__u8e3s4, minimumValue) < 0 ? minimumValue : _this__u8e3s4;
1073
+ }
1074
1074
  function contains_1(_this__u8e3s4, value) {
1075
1075
  // Inline function 'kotlin.let' call
1076
1076
  var it = toIntExactOrNull(value);