src/navigation.js
function navigateToMenuPage() {

    console.log('navigating to menu...');

    return new Promise((resolve, reject) => {
        if (!menuDoc) {
            initMenu();
        }
        if (!menuDoc) {
            console.warn('No menu configuration exists, cannot navigate to the menu page.');
            reject();
        } else {
            cleanNavigate(menuDoc);
            resolve(menuDoc);
        }
    });
}
function navigateToMenuPage() {

    console.log('navigating to menu...');

    return new Promise((resolve, reject) => {
        if (!menuDoc) {
            initMenu();
        }
        if (!menuDoc) {
            console.warn('No menu configuration exists, cannot navigate to the menu page.');
            reject();
        } else {
            cleanNavigate(menuDoc);
            resolve(menuDoc);
        }
    });
}
function navigateToMenuPage ( ) { console . log ( 'navigating to menu...' ) ; return new Promise ( ( resolve , reject ) => { if ( ! menuDoc ) { initMenu ( ) ; } if ( ! menuDoc ) { console . warn ( 'No menu configuration exists, cannot navigate to the menu page.' ) ; reject ( ) ; } else { cleanNavigate ( menuDoc ) ; resolve ( menuDoc ) ; } } ) ; }
Navigates to the menu page if it exists

@inner
@alias module:navigation.navigateToMenuPage

@return {Promise}      Returns a Promise that resolves upon successful navigation.
Navigates to the menu page if it exists