Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/strings

Index

Functions

  • hash(str: string): number
  • prettyLineBreak(line: string): string
  • This util will replace the spaces in the last 5/9ths of the string with nbsp;'s and this will prevent those words from being orphaned

    Parameters

    • line: string

      the string to prettify

    Returns string

    • a string
  • titleize(str?: string): string
  • Takes a string, splits up the words that are separated by a single whitespace or special character, capitalizes each word and combines them into a single string. Returns the combined string with leading and trailing whitespaces removed

    Parameters

    • str: string = ''

      the string to titleize

    Returns string

    • a string

Generated using TypeDoc