You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
account.getGroupMemberships({expand: 'group'}, (err, memberships) => {
memberships.filter((membership, next) => {
console.log('checking if membership should be included', membership.group.name);
const test = membership.group.name.startsWith('myString');
console.log('will be included?', test);
next(null, test);
}, (err, memberships) => {
console.log('got filtered group memberships', err, memberships);
});
});
Output:
checking if membership should be included myString:831f9e62cd
will be included? true
checking if membership should be included myString:831f9e62cd/example:34a800114c
will be included? true
checking if membership should be included stuff:831f9e62cd/example:34a800114c
will be included? false
got filtered group memberships [] undefined