Constructors

Properties

deepClone: (<T>(obj) => T) = deepClone

Type declaration

deepMerge: (<T>(obj1, obj2) => T) = deepMerge

Type declaration

diff: ((originalObj, updatedObj) => object) = diff

Type declaration

    • (originalObj, updatedObj): object
    • Parameters

      • originalObj: object
      • updatedObj: object

      Returns object

findChanges: ((obj1, obj2) => {
    key: string;
    newValue: unknown;
    oldValue: unknown;
}[]) = findChanges

Type declaration

    • (obj1, obj2): {
          key: string;
          newValue: unknown;
          oldValue: unknown;
      }[]
    • Parameters

      • obj1: {
            [key: string]: unknown;
        }
        • [key: string]: unknown
      • obj2: {
            [key: string]: unknown;
        }
        • [key: string]: unknown

      Returns {
          key: string;
          newValue: unknown;
          oldValue: unknown;
      }[]

isObject: ((item) => item is GenericObject) = isObject

Type declaration

isObjectEmpty: ((item) => item is GenericObject) = isObjectEmpty

Type declaration