The placement of the console.log()
statement is outside the scope of the asynchronous work, so it will not reflect the transformation. Move it inside the subscribe
block and you should see what you expect.
1 Like