Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string

Utility functions for string.

Index

Functions

Functions

quoteIfString

  • quoteIfString(arg: unknown): string
  • Wraps a value in quotes if it is a string.

    Parameters

    • arg: unknown

      The arg to check if it should be quoted.

    Returns string

    The toString version of arg, wrapped in quotes if it was originally a string.

Generated using TypeDoc