deep-object-diff
deep-object-diff copied to clipboard
Added TS generic
Because there is no way to define the output of the type, and we should avoid updatedDiff(objectA, objectB) as MyType
we introduce generics. Now we can just do updatedDiff<MyType>(objectA, objectB)
. Or just updatedDiff(objectA, objectB)
if the compile can type guessing.