Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function assertPublicIdentities(publicIdentities: Array) {
if (publicIdentities.length === 0)
throw new InvalidArgument('publicIdentities', 'non empty Array', '[]');
if (publicIdentities.length > MAX_GROUP_SIZE)
throw new GroupTooBig(`A group cannot have more than ${MAX_GROUP_SIZE} members`);
}