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

input from two attributes in transform object #56

Open
gc1508 opened this issue Mar 23, 2019 · 0 comments
Open

input from two attributes in transform object #56

gc1508 opened this issue Mar 23, 2019 · 0 comments

Comments

@gc1508
Copy link

gc1508 commented Mar 23, 2019

In my use case, I am dealing with two array that I need to combine into one single array according to some conditional logics:

let input = {
required: [ "name" ],
properties: [
{
id: "name"
}
]
}

let expected = {
properties: [
{
id: "name",
required: true
}
]
}

How can I implement mapping logics that allow me to compare the two arrays, required vs properties?

THanks!

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

No branches or pull requests

1 participant