Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Utilities

Index

Functions

getBaseName

  • getBaseName(filePath: string): string

getExtension

  • getExtension(filePath: string): string

getKey

  • getKey(text: string): string
  • Returns the universal key for the given text.

    Parameters

    • text: string

      Text to generate key from

    Returns string

getNorm

  • getNorm(text: string): string
  • Normalize a text to lower case characters and space only.

    Parameters

    • text: string

      Text to filter

    Returns string

getParentPath

  • getParentPath(path: string): string

removeBrackets

  • removeBrackets(str: string): string

rotate

  • rotate(text: string): string

splat

  • splat<T>(obj: object): Array<T>
  • Simplifies nested arrays and object properties to a single array of values.

    Type parameters

    • T

    Parameters

    • obj: object

      Object to reduce

    Returns Array < T >

trimSpaces

  • trimSpaces(str: string): string

Generated using TypeDoc