clearSelectedItems(menuGroup) {
    const group = isValidGroup(menuGroup, this);
    this.items.forEach((item) => {
      let doDeselect;
      if (group) {
        doDeselect = item.selected && item.group.isEqualNode(group);
      } else {
        doDeselect = item.selected;
      }

      if (doDeselect) {
        item.deselect();
      }
    });
  }
/**
   * Clears any selected items in the menu, or specified group
   * @param {string|IdsMenuGroup} [menuGroup] a string representing an ID, or an IdsMenuGroup
   * directly, that optionally limits results to within a specified menu group.
   * @returns {void}
   */
Clears any selected items in the menu, or specified group
@param {string|IdsMenuGroup} [menuGroup] a string representing an ID, or an IdsMenuGroup
directly, that optionally limits results to within a specified menu group.
@returns {void}
Clears any selected items in the menu or specified group @param { string|IdsMenuGroup } [ menuGroup ] a string representing an ID or an IdsMenuGroup directly that optionally limits results to within a specified menu group . @returns { void }
clearSelectedItems(menuGroup) {
    const group = isValidGroup(menuGroup, this);
    this.items.forEach((item) => {
      let doDeselect;
      if (group) {
        doDeselect = item.selected && item.group.isEqualNode(group);
      } else {
        doDeselect = item.selected;
      }
      if (doDeselect) {
        item.deselect();
      }
    });
  }
clearSelectedItems ( menuGroup ) { const group = isValidGroup ( menuGroup , this ) ; this . items . forEach ( ( item ) => { let doDeselect ; if ( group ) { doDeselect = item . selected && item . group . isEqualNode ( group ) ; } else { doDeselect = item . selected ; } if ( doDeselect ) { item . deselect ( ) ; } } ) ; }
Clears any selected items in the menu, or specified group
 @param {string|IdsMenuGroup} [menuGroup] a string representing an ID, or an IdsMenuGroup
 directly, that optionally limits results to within a specified menu group.
Clears any selected items in the menu or specified group @param { string|IdsMenuGroup } [ menuGroup ] a string representing an ID or an IdsMenuGroup directly that optionally limits results to within a specified menu group .