How do I check if an element is hidden in jQuery?

JavaScript
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");

// The same works with hidden
$(element).is(":hidden");
Source

Also in JavaScript: