Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function getGroupWithNameAsync(
groupName: string
): Promise {
const groups = await Contacts.getGroupsAsync({ groupName });
if (groups && groups.length > 0) {
return groups[0];
}
return;
}