Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//returns array of users
function getUser(){
return fetch('user.json');
function getAccountsForUser(user){
return fetch(`users/${}/accounts`);
function getPropertiesForAccount(account){
return fetch(`accounts/${}/properties`);
function getProfilesForProperty(property){
return fetch(`props/${}/profiles`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment