SHARE
TWEET

Untitled

a guest Jun 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. isNumber(s: string) {
  2.   console.log('char', s);
  3.   if (s !== '' && !isNaN(Number(s))) {
  4.     console.log('is a number');
  5.     console.log('-------------');
  6.     return true;
  7.   }
  8.   console.log('NOT a number');
  9.   console.log('-------------');
  10. }
  11.      
  12. a,b,
  13. c,d,e
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top