is-string

v0.0.3arrow_drop_down
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
37
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
489 B
Vaildates if input is string- throws exception if not
1 contributor
Install is-string as a package?
Copied
npm i @bit/amit.utils.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
string/isString (
name:string
)

Vaildates if input is string- throws exception if not

Example
```js
const vaildateString = require('bit/string/is-string');
vaildateString(str)
```
Argument
name: string
Returns

void

Test Summary

is-string should throw exception of type TypeError with msg not a valid string on number

Pass

is-string Should not throw exception on valide string

Pass
Help and resources