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)=>;

I called this filter ,


but it produces error. I also tried


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

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