Add tslint (#151)
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
@name isString
|
||||
@signature isString (value: any): boolean
|
||||
@summary Tests for a string.
|
||||
@description
|
||||
Checks to see if the input value is a JavaScript string.
|
||||
@example
|
||||
import { isString } from '@polkadot/util';
|
||||
|
||||
console.log('isString', isString('test')); // => true
|
||||
*/
|
||||
* @name isString
|
||||
* @signature isString (value: any): boolean
|
||||
* @summary Tests for a string.
|
||||
* @description
|
||||
* Checks to see if the input value is a JavaScript string.
|
||||
* @example
|
||||
* import { isString } from '@polkadot/util';
|
||||
*
|
||||
* console.log('isString', isString('test')); // => true
|
||||
*/
|
||||
export default function isString (value: any): value is string {
|
||||
return typeof value === 'string';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user