4 ms·
ts/js: I see no problem? * if anyone not get it, ts/js can declare a key-value lambda like: let myFunc = {f1: () => , f2: () => } and so on. It can be called
by fendy3002 5y ago
ts/js: I see no problem?
* if anyone not get it, ts/js can declare a key-value lambda like:
let myFunc = {f1: () => , f2: () => } and so on. It can be called by string key like myFunc["f1"](), and all it's props can be get by Object.keys(myFunc) so it can be randomized easily.