Is it possible to pass value inside store getter?

I’m trying to filter data stored in stored on the basis of value, but it produces error. Is it possible to pass a value to getter or return value from actions?
Here’s the code,

getters: {
    getfiles({ state },filtervalue) {
        return state.files.filter((file)=>file.name==filtervalue);
    },
},

I called this filter ,

store.getters.getfiles(filtervalue).value

but it produces error. I also tried

store.getters.getfiles.value

it also produces undefined error as I am not passing arguments in it.

How do you do it? Should we just guess it?

sorry for that, i edited the question, now you can have a look at it.

Look at this solution https://stackoverflow.com/questions/41503527/vuexjs-getter-with-argument

No, it is not possible like that. You can add your filtervalue as part of the state (which what usually done)