While using Angular version 8 with RJXS library, I encountered a peculiar issue when attempting to log an object variable:
Object { carName: "Sorbonne", age: "20", type: "C1" }
carName: "BB"
age: "23"
type: "PROPA"
<prototype>: Object
To view it as an image, click here.
Below is the code snippet in question:
this.carService.subscriptionUpdatingCarObservable.pipe(
takeUntil(this.unsubscribe$))
.subscribe((car: Car) => {
console.log(car)
[...]
});
I'm perplexed by the inconsistent values displayed in the console. Any insights on why this may be happening?