fork download
  1. function to (func) {
  2. try {
  3. var value = typeof func();
  4. return value;
  5. } catch (e) {
  6. return 'undefined';
  7. }
  8. }
  9.  
  10. console.log(to(()=>g.a));
  11. // your code goes here
Success #stdin #stdout 0.03s 18768KB
stdin
Standard input is empty
stdout
undefined