Skip to content

hap-fluent / isString

Function: isString() ​

ts
function isString(value): value is string;

Defined in: packages/hap-fluent/src/type-guards.ts:106

Determine whether value is a string.

Parameters ​

ParameterTypeDescription
valueunknownValue to test.

Returns ​

value is string

true if typeof value === 'string'.

Released under the Apache-2.0 License.