Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Sep 05:35
· 20 commits to main since this release
15531db

Major Changes

  • 9334ab0: Change return of groupArrayBy to an object of groups.

    This allows for more flexibility when working with groups. To migrate existing code that uses groupArrayBy, simply wrap the call with Object.values()

    // If you had this before
    const usersByRole = groupArrayBy(users, (user) => user.role);
    
    // Change it to this
    const usersByRole = Object.values(groupArrayBy(users, (user) => user.role));