reduceByGroupMembership

Function

Utility that returns reducer function that filters a user's groups by membership type and produces an array of group id's

  • reduceByGroupMembership(membershipTypes: GroupMembership[]) : function(memo: string[], group: IGroup) : string[]

Parameters

Parameter Type Default Notes
membershipTypes Required GroupMembership[]

Returns

{((memo: string[], group: IGroup) => string[])}

function(memo: string[], group: IGroup) : string[]

Function defined in packages/discussions/src/utils/platform.ts:12