guest271314 (2019-03-28T00:20:06.000Z)
guest271314 at gmail.com (2019-03-28T00:23:08.961Z)
> `a = object[Math.random() < 0.5 ? "method_returning_number" : "method_returning_string"]()` Interesting case. See also > How do I check if a JavaScript function returns a Promise? <https://stackoverflow.com/q/43416214> > > Say I have two functions: > > `function f1() { > return new Promise<any>((resolve, reject) => { > resolve(true); > }); > } > function f2() { > }` > > How do I know if f1 will return Promise and f2 will not? Can a regular expression be crafted which determines the return type of a function? <https://stackoverflow.com/q/43417236> Has it been mathematically proven that antivirus can't detect all viruses? <https://security.stackexchange.com/q/201992>
guest271314 at gmail.com (2019-03-28T00:22:02.420Z)
> `a = object[Math.random() < 0.5 ? "method_returning_number" : "method_returning_string"]()` Interesting case. See also > How do I check if a JavaScript function returns a Promise? <https://stackoverflow.com/q/43416214> > > Say I have two functions: > ```function f1() { > return new Promise<any>((resolve, reject) => { > resolve(true); > }); > } > function f2() { > }``` > > How do I know if f1 will return Promise and f2 will not? Can a regular expression be crafted which determines the return type of a function? <https://stackoverflow.com/q/43417236> Has it been mathematically proven that antivirus can't detect all viruses? <https://security.stackexchange.com/q/201992>