Options
All
  • Public
  • Public/Protected
  • All
Menu

Module obj

Index

Functions

applyMixins

  • applyMixins(derivedCtor: any, baseCtors: any[]): void

copyObject

  • copyObject<T>(object: T): T
  • Copy an object, creating a new object and leaving the old intact

    Type parameters

    • T

    Parameters

    • object: T

    Returns T

dotize

  • dotize(obj: any, prefix?: any): any
  • Flatten an object to a dot notated associative array

    Parameters

    • obj: any
    • Optional prefix: any

    Returns any

getParts

  • getParts(str: any): any

objectExists

  • objectExists(obj: any, parts: any): boolean
  • Check if a child of the object exists using dot notation

    Parameters

    • obj: any
    • parts: any

    Returns boolean

objectGet

  • objectGet(obj?: any, parts?: any, create?: any): any
  • Get a child of the object using dot notation

    Parameters

    • Optional obj: any
    • Optional parts: any
    • Optional create: any

    Returns any

objectSet

  • objectSet(obj: any, parts: any, value: any): any
  • Set a value of a child of the object using dot notation

    Parameters

    • obj: any
    • parts: any
    • value: any

    Returns any

recurse

  • recurse(value: Object, fn: Function, fnContinue?: Function): any
  • Parameters

    • value: Object
    • fn: Function
    • Optional fnContinue: Function

    Returns any