Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Util

Functions

isAttributes

  • isAttributes(param?: any): param
  • s Determines if parameter is a Attributes based on the historic assumption that anything not a string or renderable is an Attributes.

    Parameters

    • Optional param: any

    Returns param

isRenderable

  • isRenderable(param?: any): param
  • Determines if parameter is a Renderable.

    Parameters

    • Optional param: any

    Returns param

isString

  • isString(param?: any): param
  • Determines if parameter is a a string.

    Parameters

    • Optional param: any

    Returns param

kebabToCamelCase

  • kebabToCamelCase(str: string): string
  • Converts kebab case into camel case.

    Parameters

    • str: string

      String to convert.

    Returns string

merge

  • Merges two simple objects together.

    Parameters

    • Optional priority: SimpleObject

      The priority object will not have any of its properties overriden.

    • Optional object: SimpleObject

      Priority will get merged into this object.

    Returns object

removeSpaces

  • removeSpaces(str: string): string
  • Removes unnecessary spaces and new lines from a string.

    Parameters

    • str: string

      The string to remove spaces from.

    Returns string

Generated using TypeDoc