Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/shallowDifferences

Index

Type aliases

Functions

Type aliases

DiffResult

DiffResult: { added: string[]; deleted: string[]; unchanged: string[]; updated: string[] }

Type declaration

  • added: string[]
  • deleted: string[]
  • unchanged: string[]
  • updated: string[]

Functions

Const shallowDifferences

  • shallowDifferences(base: Record<string, any>, target: Record<string, any>): DiffResult
  • Gets shallow arraysDifference of two objects, grouping keys into how they have changed

    template

    extends object

    Parameters

    • base: Record<string, any>
    • target: Record<string, any>

    Returns DiffResult

Generated using TypeDoc