Share your code. Components are building blocks, you are the architect.

validation/is-string
v1.0.0
1.0.0
0.0.1
MIT
PUBLIC
2
0     DEPENDENCIES
Build: pass
BuildPass
Build Status: pass
detemines whether `str` is a string.
bit
Contributors
Gravatar for undefinedGravatar for undefined
0

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use validation/is-string in your project
npm i @bit/bit.utils.validation.is-string
Copied

isString (val:*) : boolean

detemines whether str is a string.

Example

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

Argument

val: *

Returns

boolean

Test Summary


#isString() should return false if undefined is passedPass
#isString() should return false if null is passedPass
#isString() should return false if a plain object is passedPass
#isString() should return false if number is passedPass
#isString() should return true if string is passedPass