Can you modify a dictionary inside the ?:
statement and then return the updated dictionary in the same block? For example, something like this:
a > b ? <dict['c'] = 'I'm changed', return dict> : <some other code>;
I am looking to implement this functionality within the map
function. For instance:
var a = [...]
a.map((itm) => return itm.isComposite ? itm[key] = transform(itm[data]); return itm : transform(itm))