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