@chriscodesthings/is-string
v1.1.0
Published
Determine if something is a string type
Downloads
1
Readme
is-string
Function to determine if something is a string type
Description
Tests a variable to see if it's a string.
See...
Install
npm install --save @chriscodesthings/is-string
Usage
import isString from '@chriscodesthings/is-string';
console.log(isString("hello world!"));
// => true
Syntax
isString(var);
Parameters
- var: any variable to test
Return Value
Returns boolean true if var is a string, false otherwise.