swapProps()

Swaps the specified properties between the target object and the source object.

This function is valid in v2.14.0. This function has been downloaded 5 times.

Parameters

{*} target
Target object from which the specified properties will be swapped.
{*} source
Source object from which the specified properties will be swapped.
{Array} keys
Array of keys for the properties that should be swapped between source and target.
{boolean=} opt_dontDelete Optional, Default:false
Indicates whether properties that dont exist should be deleted between objects. If true, non-existent properties will be set to undefined.

Returns

{*}
Returns a reference to target.