const isenabled =! Object.keys (błędy). Niektóre (x => błędy [x]);

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