Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isNumber(s: string) {
- console.log('char', s);
- if (s !== '' && !isNaN(Number(s))) {
- console.log('is a number');
- console.log('-------------');
- return true;
- }
- console.log('NOT a number');
- console.log('-------------');
- }
- a,b,
- c,d,e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement