The assign task copies all enumerable properties from a source object to a target object. It returns a modified target object with properties and values pushed from the source object. The target object is the first parameter and is also used as the return value (targetObject).
Suppose you have an ordered list of emails in a collection and you want to assign them into a numbered list. The target object and the source object will be given the numerical assignments in the final list.
In the example below:
a has been assigned the value 1 in the target object.b has been assigned the value 2 in the sourceN object."b": 2 is copied to the target object, and targetObject returns the combined result "a": 1, "b": 2.

