Skip to content

fx-flow v0.7.0 / pipe/strict / isString

Function: isString()

isString<A>(args): args is Include&lt;A, string&gt;

Check whether args is a string.

Type parameters

A

Parameters

args: A

Returns

args is Include&lt;A, string&gt;

Example

typescript
isString("a"); // true
isString(2); // false

More examples

Source

packages/core/src/pipe/strict/isString.ts:14

Released under the MIT License.