• Reconcile the menus.

    Parameters

    • reference: null | IMenu[]

      The reference list of menus.

    • addition: null | IMenu[]

      The list of menus to add.

    • warn: boolean = false

      Warn if the command items are duplicated within the same menu.

    • addNewItems: boolean = true

    Returns IMenu[]

    The reconciled list of menus.