Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "object"

Index

Functions

Const diffObject

  • diffObject<T>(a: IObjectOf<T> | undefined | null, b: IObjectOf<T> | undefined | null, mode?: DiffMode, _equiv?: Predicate2<any>): ObjectDiff<T>
  • Type parameters

    • T

    Parameters

    • a: IObjectOf<T> | undefined | null
    • b: IObjectOf<T> | undefined | null
    • Default value mode: DiffMode = DiffMode.FULL
    • Default value _equiv: Predicate2<any> = equiv

    Returns ObjectDiff<T>

Const diffObjectDist

  • diffObjectDist(a: IObjectOf<any> | undefined | null, b: IObjectOf<any> | undefined | null, _equiv: Predicate2<any>): { distance: number }
  • Parameters

    • a: IObjectOf<any> | undefined | null
    • b: IObjectOf<any> | undefined | null
    • _equiv: Predicate2<any>

    Returns { distance: number }

    • distance: number

Const diffObjectFull

  • diffObjectFull(a: IObjectOf<any> | undefined | null, b: IObjectOf<any> | undefined | null, _equiv: Predicate2<any>): { adds: string[]; dels: string[]; distance: number; edits: any[] }
  • Parameters

    • a: IObjectOf<any> | undefined | null
    • b: IObjectOf<any> | undefined | null
    • _equiv: Predicate2<any>

    Returns { adds: string[]; dels: string[]; distance: number; edits: any[] }

    • adds: string[]
    • dels: string[]
    • distance: number
    • edits: any[]

Generated using TypeDoc