is-a-string
v1.0.2
Published
A package that checks if an input is a string
Downloads
7
Readme
is-a-string
Returns true if the input is a string.
Install
yarn add is-a-string
#or
npm install is-a-string
Usage
var isAString = require('is-a-string');
isAString(3);
//=> false
isAString("3");
//=> true
isAString("Hey");
//=> true
isAString([1, 2, 3]);
//=> false
Running tests
yarn
yarn test
⚡