Skip to content
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

joshuafcole
Copy link
Contributor

@joshuafcole 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 self-assigned this Jun 27, 2017
@joshuafcole joshuafcole merged commit 62c5662 into master Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants