I'm looping over a HTMLCollection like this:
elements.forEach((element) => {
// If all elements in the collection have a "checked" property of "true"
if (?) { // Not sure what the check should be here, something like `element.checked.every(Boolean)`?
// Do stuff
}
});
Is it possible to write a check to determine if all the children have an property with the same value? Thanks!