Jak sprawdzić DIV to wyświetlacz: Brak lub blok w JavaScript

// If you have set the display property using JavaScript
let current = element.style.display;

// If you have not set the display property manually
let current = window.getComputedStyle(element).display;

// 'current' will be the display style as a string (eg. "none", "block", etc)
DenverCoder1