pair()

Takes an array of arrays (each inner array being a key-value pair) and returns the object with the keys and values set accordingly.

This function is valid in v2.7.0 to v2.14.0. This function has been downloaded 40 times.

Parameters

{Array} pairs
An array of arrays where the inner arrays are key-value pairs. The keys and values will be assigned to opt_objToAugment.
{Object=} opt_objToAugment Optional, Default:{}
If specified this is the object that will be augmented according to the keys and values found in pairs.

Returns

{Object}
A reference to opt_objToAugment.