Today tried to combine Get max zIndex on page and querySelectorAll here is a result.
Math.max.apply(null, [].map.call(
document.querySelectorAll("*"),
function(e){
return ~~window.getComputedStyle(e)["zIndex"];
}
));
Today tried to combine Get max zIndex on page and querySelectorAll here is a result.
Math.max.apply(null, [].map.call(
document.querySelectorAll("*"),
function(e){
return ~~window.getComputedStyle(e)["zIndex"];
}
));