Is certainly not necessary. You can always wrap the thing in another function.
constgroupByType=arr=>groupBy(arr,'type');
It does come handy when callbacks are involve.
// function composition in ramda styleconstcomplexFunc=pipe(someFunc,groupBy('type'),otherFunc);// when mappingsomeArrWithStuff.map(groupBy('type'));// a raw promise (if you are one of those)ipromise.then(groupBy('type'));
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.
Is certainly not necessary. You can always wrap the thing in another function.
It does come handy when callbacks are involve.