Check or validate if Javascript value is a string (is-string)

Posted on

You can use this is-string Javascript component to check if a var (like str) is a string in javascript.

Examples:

isString(3) // => false isString('') // => true

Leave a Reply

Your email address will not be published.