Creates a object where the keys and values are based on key/value pair returned by the specified pairing function.

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


{*} obj
Object whose key/value pairs will be sent to the pairing function.
{Function} fnPairer
Pairing function that will take (1) an array containing each key/value pair within obj and (2) a reference to obj. If something is returned that is not undefined or null it should be an array containing the key/value pair to add to opt_initial.
{*=} opt_initial Optional, Default:{}
Object to return from repair() function which will contain the newly paired key/value pairs. If not specified an empty object will be used.


A reference to opt_initial which has the key/value pairs returned by fnPairer added to it.

Required Function

This function directly requires the following function which is included automatically:

  • forOf()
    Traverses all the characters in a string or all of the items in an array or an object, executing a function on each one.