Options
All
  • Public
  • Public/Protected
  • All
Menu

Module String

Index

Functions

splitToObj

  • splitToObj(str: string, delim: string | RegExp): object
  • Splits a string at delim and returns an object with the split string parts as keys and the values set to true.

    Parameters

    • str: string
    • delim: string | RegExp

    Returns object

    • [part: string]: boolean

stripWhitespaces

  • stripWhitespaces(str: string): string
  • Removes all whitespace characters from a string.

    Parameters

    • str: string

    Returns string

Generated using TypeDoc