You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be magnificent if you could add an optional callbacks array
e.g. const groups = nestGroupsBy(products, ['name', 'country', 'platform'], [callback1, callback2, callback3]);
For instance, I have a contacts list and I'd like to group them by the first letter of the last name of a contact.
I would need a callback function to get that first letter.
It would be magnificent if you could add an optional callbacks array
e.g.
const groups = nestGroupsBy(products, ['name', 'country', 'platform'], [callback1, callback2, callback3]);
For instance, I have a contacts list and I'd like to group them by the first letter of the last name of a contact.
I would need a callback function to get that first letter.
And then use something like this:
Obviously I'm not very good at Javascript, otherwise I would've done it myself 😄