removeCompletedItems(){
        this.model.read({completed: true}, data => {
            for (let item of data) {
                this.removeItem(item.id);
            }
        });

        this._filter();
    }
/**
     * Will remove all completed items from the DOM and storage.
     */
Will remove all completed items from the DOM and storage.
Will remove all completed items from the DOM and storage .
removeCompletedItems(){
        this.model.read({completed: true}, data => {
            for (let item of data) {
                this.removeItem(item.id);
            }
        });
        this._filter();
    }
removeCompletedItems ( ) { this . model . read ( { completed : true } , data => { for ( let item of data ) { this . removeItem ( item . id ) ; } } ) ; this . _filter ( ) ; }
Will remove all completed items from the DOM and storage.
Will remove all completed items from the DOM and storage .