Function to determine if something is a string type
Tests a variable to see if it's a string.
npm install --save @chriscodesthings/is-string
import isString from '@chriscodesthings/is-string';
console.log(isString("hello world!"));
// => true
isString(var);
- var: any variable to test
Returns boolean true if var is a string, false otherwise.