You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am looking for a solution where my data is [ { "name": "rahul", "email": "[email protected]" }, { "name": "amit", "email": "[email protected]" }, { "email": "[email protected]" }, { "name": "brijesh", "email": "[email protected]" } ]
Note: name key is missing in third object
The & denotes an expression is to be used as a value, rather than it being evaluated.
The map function takes an expression and an array as arguments. It applies the expression to each item in the array and returns an array of the results.
And `` denotes an empty string. The expression name || `` means that if the value for name is null then the empty string is used instead.
Hi, I am looking for a solution where my data is
[ { "name": "rahul", "email": "[email protected]" }, { "name": "amit", "email": "[email protected]" }, { "email": "[email protected]" }, { "name": "brijesh", "email": "[email protected]" } ]
Note: name key is missing in third object
query:
[].name
result:
[ "rahul", "amit", "brijesh" ]
expected result:
[ "rahul", "amit", "", "brijesh" ]
please help
Thanks
The text was updated successfully, but these errors were encountered: