[Vuejs]-How to add a condition like a greater than equal to in filter search in vue js

0👍

includes method is not working in this case. Only accepts string as the param (Ref-Link1).

The inline callback function will sort out this case,

Check the below code.

filteredList() {
    const { blogs, search, UnitType } = this;
    var MaxBedroomsVal = this.minbed;
    return this.blogs.filter( function (blog) { 
        return blog.Bedrooms >= MaxBedroomsVal;
    })
}

Ref: Link2

Leave a comment