Skip to main content
Module

x/proc/mod3.ts>isString

A better way to work with processes in Deno.
Latest
function isString
Re-export
import { isString } from "https://deno.land/x/proc@0.21.9/mod3.ts";

Checks if the provided input is a string.

This function performs a type check to determine if the provided input is a string. It handles both string literals and instances of the String object.

Parameters

s: unknown

The input to be checked.

Returns

s is string

true if the input is a string, false otherwise.