Function isRefDisjoint

Given two Property Bags (i.e any z.isRef, incl Objects, Arrays, Set, Maps, Symbols, Boxed primitives etc), it returns true if there are NO common/shared References in their entries/elements/properties.

Values like Arrays, Sets and Maps by default are compared by their "normal" contents, i.e their entries / elements. You can pass props: 'all' to compare them by their props as well.

  • Parameters

    • oa1: object

      The first Object (order doesn't matter)

    • oa2: object

      The second Object

    • Optionaloptions: IsRefDisjointOptions

      TisRefDisjointOptions extends IloopOptions, to control the behavior of this function (which keys/values to consider etc).

      You can also use :

      • depth: boolean = true if true (default), then all nested references are considered. If number, then it is the max depth to consider. If false or 0, only top-level references are considered.

    Returns boolean