Skip to content

Instantly share code, notes, and snippets.

@benjamingr
Created July 21, 2016 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjamingr/fac15a2e36b44b710489850ac22427af to your computer and use it in GitHub Desktop.
Save benjamingr/fac15a2e36b44b710489850ac22427af to your computer and use it in GitHub Desktop.
return Promise.resolve().then(function rest() {
return Rest.webService({apiUrl: "/v4_6_release/apis/3.0/system/members", method: "GET" }).then(result =>
(Array.isArray(result) && result.length === 0) ? "Done" : rest();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment