Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement