Error in render: "TypeError: this.items.filter is not a function"

Часть кода:

data () {
    return {
      items: [],
      chosen_vector_data: []
    }
},
computed: {
  filteredNotChosenVectors () {
    return this.items.filter((obj) => !this.chosen_vector_data.includes(obj))
  }
}

filteredNotChosenVectors эта функция выводит ошибку Error in render: "TypeError: this.items.filter is not a function". Не могу понять почему


Ответы (1 шт):

Автор решения: g_0008
const values = Object.values(obj);

мне помогло добавление вышеуказанной строчки

→ Ссылка