UNPKG

@scalar/api-client

Version:

the open source API testing client

8 lines (7 loc) 108 B
const t = (u, p) => u.reduce( (r, e) => ((r[e[p]] ??= []).push(e), r), {} ); export { t as groupBy };