You are reading a single comment by @allObjects and its replies.
Click here to read the full conversation.
-
That's what looked so weird: "!==" was true (mind the extra "=" which means "without any conversion"), but when comparing lengths and character codes, everything was equal.
Thus, I could
- not compare the outcome of Storage.read with a string, but
- use .length and .charCodeAt of the outcome of Storage.read without any problems and
- compare the outcome of Storage.read with a string after appending to ''
- not compare the outcome of Storage.read with a string, but
@Andreas_Rozek, what was the output of your test program?
How did you compare character by character?
My only explanation would be that the data read is not a string but concatenated to an empty string
.toString()
is applied and makes it what you expect... weird and not really reasonable... but JS is known for doing (sometimes) some conversion...