Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/mod.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.22.1/mod.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.