@osovitny/anatoly 2.15.2 → 2.15.3
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.
|
@@ -1924,9 +1924,6 @@ class Subs {
|
|
|
1924
1924
|
</file>
|
|
1925
1925
|
*/
|
|
1926
1926
|
class Utils {
|
|
1927
|
-
constructor() {
|
|
1928
|
-
this.generateRandomInteger = (start, end) => Math.floor(Math.random() * (end - start + 1)) + start;
|
|
1929
|
-
}
|
|
1930
1927
|
static getValueByNameInQS(name) {
|
|
1931
1928
|
return Utils.getValueByName(location.search, name);
|
|
1932
1929
|
}
|
|
@@ -1991,6 +1988,9 @@ class Utils {
|
|
|
1991
1988
|
.replace(/-+$/, ''); // Trim - from end of text
|
|
1992
1989
|
return prefix + result + postfix;
|
|
1993
1990
|
}
|
|
1991
|
+
static generateRandom(start, end) {
|
|
1992
|
+
return Math.floor(Math.random() * (end - start + 1)) + start;
|
|
1993
|
+
}
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
/*
|