filter array in vuex code example Example: filter array in vuex this.users.filter((user) => user.type.startsWith("A"));