Files
common/docs/util/modules/_is_string_.md
T
2019-02-18 10:54:12 +00:00

37 lines
588 B
Markdown

# Functions
<a id="isstring"></a>
## isString
▸ **isString**(value: *`any`*): `boolean`
*Defined in [is/string.ts:19](https://github.com/polkadot-js/common/blob/830c98d/packages/util/src/is/string.ts#L19)*
*__name__*: isString
*__summary__*: Tests for a string.
*__description__*: Checks to see if the input value is a JavaScript string.
*__example__*:
```javascript
import { isString } from '@polkadot/util';
console.log('isString', isString('test')); // => true
```
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `any` |
**Returns:** `boolean`
___