https://github.com/AliceO2Group/Bookkeeping/pull/1081#discussion_r1286792662
In function arguments
Say we have a function that receives a response object in the form
res = {
...
body: {
data: [...]
}
}
We can access data directly in a function parameter
const f = ({ body: { data } }) => {...}
And we can rename the parameter data
:
const f = ({ body: { data: logs } }) => {...}