Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- computed: {
- filtered() {
- let result
- let newdata = []
- for(let i = 0; i< this.data.length; i++) {
- if(this.cekKondisi(this.data[i])) {
- newdata.push(this.data[i])
- }
- }
- if(this.filterGroup == '') {
- result = newdata
- } else {
- result = newdata.filter(x => x.group_id == this.filterGroup)
- }
- return result
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement