• Add all attributes from the source attributes or container to the target container. This function has performance and memory implications as it immediately copies all key-value pairs from the source to the target container, handling both plain attribute objects and other attribute containers.

    Parameters

    Returns void

    3.4.0

    const target = createAttributeContainer(config, "target");
    const source = { key1: "value1", key2: "value2" };
    addAttributes(target, source);

    // Or from another container
    const sourceContainer = createAttributeContainer(config, "source");
    sourceContainer.set("key3", "value3");
    addAttributes(target, sourceContainer);