-
Notifications
You must be signed in to change notification settings - Fork 6
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
It's not possible to use "values" for more than one element in array #8
Comments
Found the reason:
My solution - change the forEach loop to a classical loop and add a "break" if there is a match: |
Thanks for the solution. If you wish to make a pull request, I'd review and accept. |
Thank you! |
v1.1.5 pushed to npm |
json-mapping version 1.1.4 (latest)
My mappingtable contains two elements in "values"-array:
But the values were only replaced, if there is a match in the 2nd element.
Example:
So how is it possible to replace more than one value?
Complete code:
Result:
The text was updated successfully, but these errors were encountered: