UNPKG

object-deep-compare

Version:

A type-safe collection of comparison methods for objects and arrays in TypeScript/JavaScript

15 lines (14 loc) 702 B
import { ComparePropertiesResult } from '../types'; /** * Compares the properties of two objects * Returns all the different and common properties * * @param firstObject - First object to compare * @param secondObject - Second object to compare * @return Object containing differences and common properties */ export declare const CompareProperties: <T extends Record<string, any>, U extends Record<string, any>>(firstObject: T, secondObject: U) => ComparePropertiesResult; /** * Memoized version of CompareProperties */ export declare const MemoizedCompareProperties: <T extends Record<string, any>, U extends Record<string, any>>(firstObject: T, secondObject: U) => ComparePropertiesResult;