# July 10, 2019
# Starting the day off with meetings and discussions.
# Waiting on CON login, so working on the TAP site, making my filters additive.
Probably the first time I've used findIndex
. It's in core-js, so I think we're ok.
applyFilter(filter) {
if (this.activeFilter.includes(filter)) {
const index = this.activeFilter.findIndex((a) => { return a === filter })
this.activeFilter.splice(index, 1)
} else {
this.activeFilter.push(filter)
}
},
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8