Skip to main content
Module

x/sfv_parser/deps.ts>isString

Structured Field Values for HTTP parser and serializer
Latest
function isString
import { isString } from "https://deno.land/x/sfv_parser@1.1.0/deps.ts";

Whether the input is string or not.

Examples

Example 1

import { isString } from "https://deno.land/x/isx@$VERSION/is_string.ts"
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"
assertEquals(isString('hello world'), true)
assertEquals(isString(1000), false)

Parameters

input: unknown
  • Any input.

Returns

input is string