const parseGroupsResponse = async ( data ) => { return data . map ( group => { group . selected = true ; const { organization , scoped , groupid , links , ... rest } = group ; return rest ; } ) ; } ; export default parseGroupsResponse ;