vis-util
    Preparing search index...

    Function selectiveBridgeObject

    • This recursively redirects the prototype of JSON objects to the referenceObject. This is used for default options.

      Type Parameters

      • F extends string
      • V

      Parameters

      • fields: F[]

        Names of properties to be bridged.

      • referenceObject: Record<F, V>

        The original object.

      Returns null | Record<F, V>

      A new object inheriting from the referenceObject.