uiconfig.js
    Preparing search index...

    Function copyPrimitive

    • Copies a primitive value or an object that implements the PrimitiveValObject interface. If the target is an array, it will copy the values from the source array to the target array. If the target is an object that implements the PrimitiveValObject interface, it will call the copy method on the target. If the target is not an array or an object that implements the PrimitiveValObject interface, it will return a clone of the source value.

      Type Parameters

      Parameters

      • a: T

        The target primitive value to copy to.

      • b: T

        The source primitive value to copy from.

      Returns T

      The target primitive value after copying the source value to it, or a clone of the source value if the target is not an array or an object that implements the PrimitiveValObject interface.