DEV Community

Discussion on: Are they all checked?

Collapse
 
ardennl profile image
Arden de Raaij • Edited

Ah btw, I didn't knew Array.from took in two arguments, so an alternative could be

Array.from(document.querySelectorAll('input'), checkbox => checkbox.checked);

Correct me if I'm wrong.