Skip to content

Instantly share code, notes, and snippets.

@philipbankier
Created July 27, 2018 15:10
Show Gist options
  • Save philipbankier/462002e800836d6854aa31d3ef45c888 to your computer and use it in GitHub Desktop.
Save philipbankier/462002e800836d6854aa31d3ef45c888 to your computer and use it in GitHub Desktop.
translateFilters(allData): void {
this.contentCheck = this.newFilters.some(check => check !== '');
}
updateCurrentFilters(): void {
this.newFilters.filter(selectedFilter => {
return this.currentFilters.some(currentCheck => currentCheck === selectedFilter);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment