Never seen this one before:
.flatMap(obj => {
return removeOneLine(this)
.map(l => {l:l,id:obj.id});
I want to map the result, but of course, I guess JS doesn't know if this is an object or the function body.
Is doing the following the only way to avoid a syntax error (because it's ambiguous to the engine):
.flatMap(obj => {
return removeOneLine(this)
.map(l => {
return {l: l, id: obj.id}
});
})
is this ambiguity in this situation normal, any way to mitigate besides what I just did above?