I'm using an arrow function to pass a parameter to some other function. It looks sort of like this:
someFunction(parameter1, () => {
return model.associatedGroups.filter(group => {
return group.isAssociated === true;
})
}, parameter3)
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?
someFunctioncalls the callback.thisin the function, and you're using an arrow function to pass along the current value ofthis.