title: using js arrow function as a parameter
body: <p>I'm using an arrow function to pass a parameter to some other function. It looks sort of like this:</p>
  
  <pre><code>someFunction(parameter1, () =&gt; {
    return model.associatedGroups.filter(group =&gt; {
      return group.isAssociated === true;
     })
  }, parameter3)
  </code></pre>
  
  <p>but when I'm debugging it, I'm receiving a function on the method i'm calling instead of a filtered array. How should I write it in order to get back a filtered array?</p>