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 convert() to take multiple paths? #1

Open
runningskull opened this issue Oct 28, 2016 · 0 comments
Open

Allow convert() to take multiple paths? #1

runningskull opened this issue Oct 28, 2016 · 0 comments

Comments

@runningskull
Copy link
Owner

Right now there's no good way to combine multiple fields into one. A nice way to allow that might be for convert() to take multiple paths, which would cause it to get multiple paths and pass them all into the conversion function.

Usage would look like

reformat.convert('name.first', 'name.last', (first, last) => {
  return first + " " + last
})
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