Skip to content

Commit 895c9a0

Browse files
author
Keks
committed
✔️ Сборка #13
1 parent f00ff20 commit 895c9a0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

13/js/utils.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
const getRandomInteger = (a, b) => {
2-
const lower = Math.ceil(Math.min(a, b));
3-
const upper = Math.floor(Math.max(a, b));
4-
const result = Math.random() * (upper - lower + 1) + lower;
5-
6-
return Math.floor(result);
7-
};
8-
9-
export const getRandomArrayElement = (elements) =>
10-
elements[getRandomInteger(0, elements.length - 1)];
11-
121
export const isEscapeKey = (key) => key === 'Escape';
132

143
export const showErrorMessage = () => {

0 commit comments

Comments
 (0)