ЛХ
function calc (a, o, b) {
const opertors = {'+': (a,b) => a+b, '-': (a,b) => a-b, '*': (a,b) => a*b, '/': (a,b) => a/b}if (Number.isInteger(Number(a)) && Number.isInteger(Number(b)) && Object.keys(operators).includes(o)) {
return operators[o](a,b)
}
return new Error('Something went wrong')}
