In an Angular2 project I need to validate some inputs.
How to easily check if an input value is an integer? 

I tried using `Number(control.value)` which returns `0` for an empty field - not good.

or `parseInt(control.value,10)` which dis-considers spaces:

If i have something like: 1 space 0,24 = `1 ,024` it returns 1 - which passes the validator with no errors.

Lodash functions like: `_.isInteger(control.value)` or `_.isNumeric(control.value)`
`// return false every time` -which is expected, because an input value is a string not a number. 

Combining methods like this creates a messy function with many if/else statements, and even then, I'm not sure i get all the edge cases. I definitely need a more straight forward approach. Any ideas?