is-string

v1.0.0arrow_drop_down
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
2
LICENSE
MIT
VISIBILITY
Public
subject
detemines whether `str` is a string.
2 contributors
Like
Use is-string in your project ?
Copied
npm i @bit/bit.utils.validation.is-string
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
isString(3); // => false isString(""); // => true
modified
chevron_left
chevron_right
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 passed

Pass

#isString() should return false if null is passed

Pass

#isString() should return false if a plain object is passed

Pass

#isString() should return false if number is passed

Pass

#isString() should return true if string is passed

Pass