title: How to query array in vue store using Getters?
body: <p>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.</p>
  
  <pre><code>////STATE
  state: { 
    permissions: [
      {id: 1, name: 'Create User'},
      {id: 2, name: 'Delete User'},
      {id: 3, name: 'UpdateUser'}
     ] 
    }
  //// GETTERS
  getters: {
    getPermissionById: state =&gt; id =&gt; {
      return state.permissions.find(p =&gt; p.id=== id) // I tried with "=="
    }
  }
  </code></pre>
  
  <p>And it is returning <code>getPermissionById:ƒ (id)</code> as result. I'm not quite sure what I'm missing here.</p>
  
  <p>In component</p>
  
  <pre><code>computed: {  
  
  ...mapGetters('permissionStore', ['getPermissionById'])
  }
  </code></pre>
  
  <p>I'm using vue devtool to check the state.</p>