Skip to content

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

Merged
joshuafcole merged 1 commit into
masterfrom
feature/better-append-as-eavs
Jun 27, 2017
Merged

Allow appendAsEAVs to also handle nested sub-records and sub-record sets#861
joshuafcole merged 1 commit into
masterfrom
feature/better-append-as-eavs

Conversation

@joshuafcole

@joshuafcole joshuafcole commented Jun 27, 2017

Copy link
Copy Markdown
Contributor

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 June 27, 2017 20:24
@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