So if you don't mind answering, isn't your lib the exact same thing as:
letstringValue="two";letsomeObject={someBoolean:true,someString:"This is a dummy object",someNumber:(()=>{if(stringValue==="one"){return1;}elseif(stringValue==="two"){return2;}elseif(stringValue==="three"){return3;}})()};
What am I missing?
Thanks.
Disclaimer: I'm relatively new to JavaScript
Hello,
I have just read your [amazing post about jwt](http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/) and somehow I found this.
So if you don't mind answering, isn't your lib the exact same thing as:
```js
let stringValue = "two";
let someObject = {
someBoolean: true,
someString: "This is a dummy object",
someNumber: (() => {
if (stringValue === "one") {
return 1;
} else if (stringValue === "two") {
return 2;
} else if (stringValue === "three") {
return 3;
}
})()
};
```
What am I missing?
Thanks.
Disclaimer: I'm relatively new to JavaScript
Hello,
I have just read your amazing post about jwt and somehow I found this.
So if you don't mind answering, isn't your lib the exact same thing as:
What am I missing?
Thanks.