Class ObjectUtil

Utilities to operate on objects

Hierarchy

  • ObjectUtil

Constructors

Methods

Constructors

Methods

  • Clone an object

    Type Parameters

    • T

    Parameters

    • source: T

    Returns T

  • Deep merge two key value objects

    Parameters

    • o1: Record<string, any>
    • o2: any

    Returns any

  • Simple JSON path function

    eg. const obj = { foo : { bar: { test: 1 } } }

    Object.path(obj, 'foo.bar.test'); // 1

    Parameters

    • obj: KeyValue
    • path: string

    Returns any

    The value from the path or undefined if not found

Generated using TypeDoc