Skip to content

Instantly share code, notes, and snippets.

@nirnejak
Last active July 14, 2022 12:44
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 nirnejak/2df7d0da36674f5bd25f833626f56a57 to your computer and use it in GitHub Desktop.
Save nirnejak/2df7d0da36674f5bd25f833626f56a57 to your computer and use it in GitHub Desktop.
const testObj = {
bankId: 13,
accounts: [
{ accountName: "abc", currentBalance: { cash: 2000 }, subAccounts: [] },
{
accountName: "bcd",
currentBalance: { cash: 5000 },
subAccounts: [
{
accountName: "efg",
currentBalance: { cash: 7000 },
subAccounts: [
{
accountName: "kge",
currentBalance: { cash: 6000 },
subAccounts: []
}
]
},
{ accountName: "der", currentBalance: { cash: 8000 }, subAccounts: [] }
]
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment