vis-util
    Preparing search index...

    Function fillIfDefined

    • Fill an object with a possibly partially defined other object.

      Only copies values for the properties already present in a. That means an object is not created on a property if only the b object has it.

      Type Parameters

      • T extends object

      Parameters

      • a: T

        The object that will have it's properties updated.

      • b: Partial<T>

        The object with property updates.

      • allowDeletion: boolean = false

        If true, delete properties in a that are explicitly set to null in b.

      Returns void