Jak sprawdzić element ma atrybut js
let result = element.hasAttribute(name);
Clever Corncrake
let result = element.hasAttribute(name);