<form>
<input type="checkbox" name="ce" class="che">
<input type="checkbox" name="ce" class="che">
<input type="checkbox" name="ce" class="che">
</form>
document.querySelector('form').onchange = function(e) {
// Array.from(this.children).forEach(.....)
[].forEach.call(this.children, function(item) {
item.checked = e.target.checked;
});
}