I\'m doing some trouble-shooting and want to add a check that a parameter to a function is a number. How do I do this?
Something like this...
function fn
i'd say
n === parseInt(n)
is enough. note three '===' - it checks both type and value