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
eg:
var src1 = { 'txn': [{"datamov": "07/01/2020"},{"datamov": "07/01/2020"}] } var map1 = { "txn[].datamov": { key: "txn[].dat", transform: val => moment(val, 'DD/MM/YYYY').format('YYYY-MM-DD') } }; var expect = { 'txn': [{"datamov": "2020-07-01"},{"datamov": "2020-07-01"}] } var result = om(src1, map1);
but what i got was: { txn: [ { dat: 'Invalid date' }, { dat: 'Invalid date' } ] }
{ txn: [ { dat: 'Invalid date' }, { dat: 'Invalid date' } ] }
Could not figure out what was wrong
The text was updated successfully, but these errors were encountered:
Closing this but will watch #77
Sorry, something went wrong.
No branches or pull requests
eg:
but what i got was:
{ txn: [ { dat: 'Invalid date' }, { dat: 'Invalid date' } ] }
Could not figure out what was wrong
The text was updated successfully, but these errors were encountered: