| Viewed 62 times

How I should check String or Integer in JavaScript?


I need to create a function that checks if the argument is an integer or a string. Return int if it's an integer and str if it's a string.