I'm trying to pass an argument inside getters that should return the ID of the permissions but for some reason it is not returning anything.

```
////STATE
state: { 
  permissions: [
    {id: 1, name: 'Create User'},
    {id: 2, name: 'Delete User'},
    {id: 3, name: 'UpdateUser'}
   ] 
  }
//// GETTERS
getters: {
  getPermissionById: state => id => {
    return state.permissions.find(p => p.id=== id) // I tried with "=="
  }
}

```

And it is returning `getPermissionById:ƒ (id)` as result. I'm not quite sure what I'm missing here.

In component

```
computed: {  

...mapGetters('permissionStore', ['getPermissionById'])
}

```

I'm using vue devtool to check the state.