Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isString

  • isString(val: unknown): boolean
  • Checks if the given value is a string.

    example

    isString('foo'); // true isString(''); // true isString({}); // false isString([]); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is a string.

Legend

  • Function

Generated using TypeDoc