crap
This commit is contained in:
@@ -4,4 +4,9 @@ export const dateWithoutTimezone = (date: Date) => {
|
||||
.toISOString()
|
||||
.slice(0, -1);
|
||||
return withoutTimezone;
|
||||
};
|
||||
|
||||
export const getDigitsCount = (num: number): number => {
|
||||
if (num === 0) return 1;
|
||||
return Math.floor(Math.log10(Math.abs(num))) + 1;
|
||||
};
|
||||
Reference in New Issue
Block a user