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
it
Is your feature request related to a problem? Please describe. I have an array of objects like below
[ {...}, {...} ... ]
I want to map it to a new array like below
[ { "someKey" : {...} }, { "someKey" : {...} }, ... ]
It is not possible to perform such a transformation using the map method.
Describe the solution you'd like
Below is an example of pickFIrst function usage.
pickFirst(a,b,c -> it != null)
It already has a concept of it reference, which is a self-reference to the current object while iterating over a,b and c.
We can apply this concept to the map function so that the above transformation can be achieved by
map(myArray -> { someKey = it })
Describe alternatives you've considered None of the supported functions support this usecase
Additional context
The text was updated successfully, but these errors were encountered:
I will be working on this issue
Sorry, something went wrong.
shreyagajane
No branches or pull requests
Is your feature request related to a problem? Please describe.
I have an array of objects like below
I want to map it to a new array like below
It is not possible to perform such a transformation using the map method.
Describe the solution you'd like
Below is an example of pickFIrst function usage.
It already has a concept of
it
reference, which is a self-reference to the current object while iterating over a,b and c.We can apply this concept to the map function so that the above transformation can be achieved by
Describe alternatives you've considered
None of the supported functions support this usecase
Additional context
The text was updated successfully, but these errors were encountered: