changeActivePage(title) {
        if (this.checkActivePage().current) this.checkActivePage().current = false;
        if (this.checkActivePage().active) this.checkActivePage().active = false;

        for (let navItem of this.warehouse.siteNav) if (navItem.title == title) navItem.active = true;

        for (let group of this.warehouse.navItems) for (let lesson of group.lessons) if (lesson.title == title) lesson.current = true;

        this.storeLocally();

        return this;
    }
/**
     * changeActivePage  ::  String  ->  store object
     * 
     * @param {string} title 
     * 
     * Method takes a page title and searches the warehouse for objects that have a matching title property
     *      Takes the object with a matching title quality and changes its current property to true
     *      This is used to change the page when react re-renders after a page navigation item is clicked
     * 
     * Returns this to facilitate method chaining
     */
changeActivePage  ::  String  ->  store object

@param {string} title

Method takes a page title and searches the warehouse for objects that have a matching title property
Takes the object with a matching title quality and changes its current property to true
This is used to change the page when react re-renders after a page navigation item is clicked

Returns this to facilitate method chaining
changeActivePage :: String - > store object @param { string } title Method takes a page title and searches the warehouse for objects that have a matching title property Takes the object with a matching title quality and changes its current property to true This is used to change the page when react re - renders after a page navigation item is clicked Returns this to facilitate method chaining
changeActivePage(title) {
        if (this.checkActivePage().current) this.checkActivePage().current = false;
        if (this.checkActivePage().active) this.checkActivePage().active = false;
        for (let navItem of this.warehouse.siteNav) if (navItem.title == title) navItem.active = true;
        for (let group of this.warehouse.navItems) for (let lesson of group.lessons) if (lesson.title == title) lesson.current = true;
        this.storeLocally();
        return this;
    }
changeActivePage ( title ) { if ( this . checkActivePage ( ) . current ) this . checkActivePage ( ) . current = false ; if ( this . checkActivePage ( ) . active ) this . checkActivePage ( ) . active = false ; for ( let navItem of this . warehouse . siteNav ) if ( navItem . title == title ) navItem . active = true ; for ( let group of this . warehouse . navItems ) for ( let lesson of group . lessons ) if ( lesson . title == title ) lesson . current = true ; this . storeLocally ( ) ; return this ; }
changeActivePage  ::  String  ->  store object
changeActivePage :: String - > store object