@cripty2001/utils 0.0.24 → 0.0.25
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.arrayStep = arrayStep;
|
|
|
11
11
|
exports.copyToClipboard = copyToClipboard;
|
|
12
12
|
exports.stableLog = stableLog;
|
|
13
13
|
exports.parseQuery = parseQuery;
|
|
14
|
+
exports.randBetween = randBetween;
|
|
14
15
|
const lodash_1 = require("lodash");
|
|
15
16
|
function getRandom(_alphabeth, length) {
|
|
16
17
|
const alphabeth = _alphabeth.split("");
|
|
@@ -118,3 +119,6 @@ function parseQuery(query, fields) {
|
|
|
118
119
|
left: data
|
|
119
120
|
};
|
|
120
121
|
}
|
|
122
|
+
function randBetween(min, max) {
|
|
123
|
+
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
124
|
+
}
|
package/package.json
CHANGED