Skip to main content
Module

x/unitest/deps.ts>isString

🃏 Deno-first universal unit testing framework
Latest
function isString
import { isString } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument is type of string or not.

Examples

Example 1

isString('hello world') // true
isString(1000) // false

Parameters

value: unknown
  • Input any value

Returns

value is string

The result of typeof val === 'string'