There is a strange issue I encountered in one of my classes involving a readonly boolean property. Whenever I try to check this property, the results are not as expected. Here is an example of the code:
// vorgang is a reference to the class, isEK is the property
let test = this.vorgang.isEK;
// Just for testing
let test2 = test ? true : false;
console.log(test + ' -> ' + test2);
As a result, I get the following output:
true -> true
false -> true
I am confused about what could be causing this unexpected behavior. Can you help me figure out what I am missing?