We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should form a "nice" function with names of steps. Similar to rambo it should keep track of functions it combines into a single one to give nice
rambo
const f = change(source, destination) f.toString() // copy "foo" // trim "bar"
The text was updated successfully, but these errors were encountered:
2bbe65a
Version 1.7.0 has been published to NPM. The full release note can be found at change-by-example/releases/tag/v1.7.0.
1.7.0
Tip: safely upgrade dependency change-by-example in your project using next-update
Sorry, something went wrong.
const source = { name: 'john', age: '42', occupation: 'mechanic' } const destination = { name: 'John', age: 42 } const change = require('change-by-example') const t = change(source, destination) console.log(t.toString()) /* name: _.capitalize(name) age: _.parseInt(age) */
Similarly, deep paths will be shown using dots
const input = { name: 'foo', other: { info: { age: '42' } } } const output = { name: { first: 'foo' }, age: 42 } const t = change(input, output) console.log(t.toString()) /* name.first: R.identity(name) age: _.parseInt(other.info.age) */
No branches or pull requests
Is this a bug report or a feature request?
We should form a "nice" function with names of steps. Similar to
rambo
it should keep track of functions it combines into a single one to give niceThe text was updated successfully, but these errors were encountered: