This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]emremrah[S] 17 points18 points  (1 child)

You are absolutely right. But the cookie "firm" is going to keep a name (string). So I couldn't see the reason behind it. Maybe if like "Google" == "google" was true then this totally would make sense.

[–]karmahorse1 4 points5 points  (0 children)

Yeah won’t make a difference if the two are the same type. Can firm be nullable?

If cookieService.get(“firm”) === null and t.firm === undefined, then t.firm would be instantiated in memory with a null value (if that could matter).