is-string

v1.0.2arrow_drop_down
v1.0.2
v1.0.0
STATUS
Passing
DOWNLOADS
67
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
N/A
detemines whether `str` is a string.
Install is-string as a package?
Copied
npm i @bit/bit.examples.string.is-string
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
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';
toggle layout
No preview available
modifieddraft
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
Help and resources