function toggleAllCheckboxes(source, checkboxesName) {
    var checkboxes = document.getElementsByName(checkboxesName);
    for (let checkbox of checkboxes) {
      checkbox.checked = source.checked;
    }
  }
/**
   * Sets all checkboxes with a specific name to the same checked status as the
   * provided source checkbox.
   * @param {HTMLElement} source The checkbox controlling the checked
   *     status.
   * @param {string} checkboxesName The name identifying the checkboxes to set.
   */
Sets all checkboxes with a specific name to the same checked status as the
provided source checkbox.
@param {HTMLElement} source The checkbox controlling the checked
status.
@param {string} checkboxesName The name identifying the checkboxes to set.
Sets all checkboxes with a specific name to the same checked status as the provided source checkbox . @param { HTMLElement } source The checkbox controlling the checked status . @param { string } checkboxesName The name identifying the checkboxes to set .
function toggleAllCheckboxes(source, checkboxesName) {
    var checkboxes = document.getElementsByName(checkboxesName);
    for (let checkbox of checkboxes) {
      checkbox.checked = source.checked;
    }
  }
function toggleAllCheckboxes ( source , checkboxesName ) { var checkboxes = document . getElementsByName ( checkboxesName ) ; for ( let checkbox of checkboxes ) { checkbox . checked = source . checked ; } }
Sets all checkboxes with a specific name to the same checked status as the
 provided source checkbox.
Sets all checkboxes with a specific name to the same checked status as the provided source checkbox .