I have the following JSON, and inside my code I have a check to see if autoLogin is enabled.
Object {autoLogin: "true",
autoLoginKey: "bWF4LnJvZ2VyaW8=&YWU4NjIwMGJhMTU0NWQzMjQ0ZmRlM2FhYWNiYTJjZmM="}
However to do this check use the value of autoLogin
, but I have to check it as string.
if(key.autoLogin === 'true'){//...code}
How do I instead of comparing as string, compare how boolean itself.
Type:
if(key.autoLogin === true){//code...}