const logError = (err: string): never => {
throw new Error(err);
};
const isNumber = (n: string | number): boolean => {
if (typeof n === 'number') {
return true;
}
if (typeof n === 'string') {
return false;
}
logError('Ошибка');
}