const isEnabled =! object.keys (ошибки). SoMe (x => ошибки [x]);

const isEnabled = !Object.keys(errors).some(x => errors[x]);
Evil Elephant