_filter(force){
        let active = this._activeRoute;
        const activeRoute = active.charAt(0).toUpperCase() + active.substr(1);

        // Update the elements on the page, which change with each completed todo
        this._updateCount();

        // If the last active route isn't "All", or we're switching routes, we
        // re-create the todo item elements, calling:
        //   this.show[All|Active|Completed]()
        if (force || this._lastActiveRoute !== 'All' || this._lastActiveRoute !== activeRoute) {
            this['show' + activeRoute]();
        }

        this._lastActiveRoute = activeRoute;
    }
/**
     * Re-filters the todo items, based on the active route.
     * @param {boolean|undefined} force  forces a re-painting of todo items.
     */
Re-filters the todo items, based on the active route.
@param {boolean|undefined} force  forces a re-painting of todo items.
Re - filters the todo items based on the active route . @param { boolean|undefined } force forces a re - painting of todo items .
_filter(force){
        let active = this._activeRoute;
        const activeRoute = active.charAt(0).toUpperCase() + active.substr(1);
        this._updateCount();
        if (force || this._lastActiveRoute !== 'All' || this._lastActiveRoute !== activeRoute) {
            this['show' + activeRoute]();
        }
        this._lastActiveRoute = activeRoute;
    }
_filter ( force ) { let active = this . _activeRoute ; const activeRoute = active . charAt ( 0 ) . toUpperCase ( ) + active . substr ( 1 ) ; this . _updateCount ( ) ; if ( force || this . _lastActiveRoute !== 'All' || this . _lastActiveRoute !== activeRoute ) { this [ 'show' + activeRoute ] ( ) ; } this . _lastActiveRoute = activeRoute ; }
Re-filters the todo items, based on the active route.
Re - filters the todo items based on the active route .
// Update the elements on the page, which change with each completed todo // If the last active route isn't "All", or we're switching routes, we // re-create the todo item elements, calling: //   this.show[All|Active|Completed]()