How to make a filter in array with dynamic parameter?

As a filter can be made where “name1” is dynamic, in case myArr contains 4 values
option.name1…
option.name2…

    const [name1, name2, name3, name4] = myArr
    const info = options.filter(option => {
        option.name1.toLowerCase().includes(searchTerm.value.toLowerCase())
    })