Options
All
  • Public
  • Public/Protected
  • All
Menu
class
classdesc

Consists of utility methods

Hierarchy

  • utils

Index

Accessors

Static imageExtn

  • get imageExtn(): string[]
  • function

    imageExtn

    description

    Gives an array of image extensions

    Returns string[]

    An array of strings

Methods

Static camelCaseToDashed

  • camelCaseToDashed(value: string): string
  • function

    camelCaseToDashed

    description

    Converts a string from camel-cased to dashed value

    Parameters

    • value: string

      A camel-cased string value

    Returns string

    A dashed valued string

Static cloneDeep

  • cloneDeep(data: any): any

Static dashedToCamelCase

  • dashedToCamelCase(value: string): string
  • function

    dashedToCamelCase

    description

    Converts a string from dashed to camel-cased value

    Parameters

    • value: string

      A dashed valued string

    Returns string

    A camel-cased string value

Static find

  • find<T>(arr: Array<T>, operation: any): T
  • function

    find

    description

    Finds an element in an array

    Type parameters

    • T

    Parameters

    • arr: Array<T>

      An array

    • operation: any

      Finding criteria

    Returns T

    The element

Static makeEllipsis

  • makeEllipsis(str: string, maxLength: number): string
  • function

    makeEllipsis

    description

    Puts in an ellipsis after a string that exceeds a certain length

    Parameters

    • str: string

      A string value

    • maxLength: number

      length after which the ellipsis is to be shown

    Returns string

Static randomNumber

  • randomNumber(min?: number, max?: number): number
  • function

    randomNumber

    description

    Returns a random number

    Parameters

    • Default value min: number = 1

      Minimum value

    • Default value max: number = 9999999

      Maximum value

    Returns number

    A random number