New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow appendAsEAVs to also handle nested sub-records and sub-record sets #861

Merged
merged 1 commit into from Jun 27, 2017

Conversation

Projects
None yet
2 participants
@joshuafcole
Contributor

joshuafcole commented Jun 27, 2017

Let's you write

let eavs = appendAsEAVs([], {tag: "parent", name: "fred", children: [
  {tag: "child", name: "bruce"},
  {tag: "pet", name: "betsy"}
]});

along with the previously supported

let eavs = appendAsEAVs([], {tag: "parent", name: "fred", children: [].concat(
  appendAsEAVs([], {tag: "child", name: "bruce"}),
  appendAsEAVs([], {tag: "pet", name: "betsy"})
)});

@joshuafcole joshuafcole requested a review from cmontella Jun 27, 2017

@joshuafcole joshuafcole self-assigned this Jun 27, 2017

@joshuafcole joshuafcole merged commit 62c5662 into master Jun 27, 2017

1 check passed

ci/circleci Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment