Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Text

A Format.Utils sub-module containing methods related to text operations.

Index

Functions

insert

  • insert(value: string, startIndex: number, insertValue: string): string
  • Returns a new string in which a specified string is inserted at a specified index position in the value instance.

    Parameters

    • value: string

      The string into which to insert.

    • startIndex: number

      The zero-based index position of the insertion.

    • insertValue: string

      The string to insert.

    Returns string

    A new string that is equivalent to the value instance, but with insertValue inserted at position startIndex.

isNullOrWhitespace

  • isNullOrWhitespace(value: string): boolean
  • Indicates whether the specified string is undefined, null, "", or consists only of white-space characters.

    Parameters

    • value: string

      The string to test.

    Returns boolean

    true if the value parameter is undefined, null, "", or if value consists exclusively of white-space characters.

Generated using TypeDoc