If you can put the arr argument last then it would be easier to do partial application.
constisSubscribed=user=>user.is_subscribed;constgetFullName=user=>`${user.first_name}${user.last_name}`;constgetSubscribed=filterMap.bind(null,isSubscribed,getFullName);constsubscribedUsersNames=getSubscribed(users);// then you could also use it as a callbackfetch('some-url').then(res=>res.json()).then(getSubscribed)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you can put the
arr
argument last then it would be easier to do partial application.