raspberry_games_engine_helpers 1.8.355 → 1.8.357

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)
@@ -881,6 +881,18 @@ if (typeof String.prototype.startsWith === 'undefined') {
881
881
  }
882
882
  return tmp;
883
883
  }
884
+ function minOrNull(_this__u8e3s4) {
885
+ var iterator = _this__u8e3s4.j();
886
+ if (!iterator.k())
887
+ return null;
888
+ var min = iterator.l();
889
+ while (iterator.k()) {
890
+ var e = iterator.l();
891
+ if (compareTo(min, e) > 0)
892
+ min = e;
893
+ }
894
+ return min;
895
+ }
884
896
  function toCollection_0(_this__u8e3s4, destination) {
885
897
  var _iterator__ex2g4s = _this__u8e3s4.j();
886
898
  while (_iterator__ex2g4s.k()) {
@@ -907,18 +919,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
907
919
  return last;
908
920
  }
909
921
  }
910
- function minOrNull(_this__u8e3s4) {
911
- var iterator = _this__u8e3s4.j();
912
- if (!iterator.k())
913
- return null;
914
- var min = iterator.l();
915
- while (iterator.k()) {
916
- var e = iterator.l();
917
- if (compareTo(min, e) > 0)
918
- min = e;
919
- }
920
- return min;
921
- }
922
922
  function filterNotNull_0(_this__u8e3s4) {
923
923
  return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
924
924
  }