Options
All
  • Public
  • Public/Protected
  • All
Menu

Module compare/propertyValueDifferences/getPropertyValueDifferences

Index

References

Functions

References

default

Renames and exports getPropertyValueDifferences

Functions

Const getPropertyValueDifferences

  • Consumes 2 non-null objects and returns the properties that are present in both and have the same keys, but are mapped to differing values.

    Both the key and value it's mapped to in each object is returned.

    remarks

    Both objects must have enumerable key-value properties. If a string is passed as an argument, it's converted into an array.

    Parameters

    • source: unknown

      The non-null object being compared to the passed target object

    • target: unknown

      The non-null object the source object is being compared to

    Returns PropertyValueDifferences

    An object containing the equivalent keys that are present in both the source and target object but mapped to differing values as well as what the values they're mapped to in each object.

Generated using TypeDoc