Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filter() {
- if (this.query !== ""){
- this.filteredList = this.names.filter(function(el){
- return el.toLowerCase().indexOf(this.query.toLowerCase()) > -1;
- }.bind(this));
- }else{
- this.filteredList = [];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement