I'm doing a filter of a list by name, it works, but if I have a name registered as Hi, the filter does not work when I write higor.
computed: {
filtered: function () {
const search = this.configs.search
const users = _.orderBy(this.users, this.configs.orderBy, this.configs.order)
if (_.isEmpty(search)) {
return users;
}
return _.filter(users, user => user.name.indexOf(search) >= 0)
}
}