src/aria/pageEngine/utils/PageEngineUtils.js
function (container, keyName) {
            for (var element in container) {
                if (container.hasOwnProperty(element)) {
                    container[element][keyName] = element;
                }
            }
        }
function (container, keyName) {
            for (var element in container) {
                if (container.hasOwnProperty(element)) {
                    container[element][keyName] = element;
                }
            }
        }
function ( container , keyName ) { for ( var element in container ) { if ( container . hasOwnProperty ( element ) ) { container [ element ] [ keyName ] = element ; } } }
Go through all the values of an object and adds the corresponding value inside its entries using the provided
keyName
@param {Object} container
@param {String} keyName
Go through all the values of an object and adds the corresponding value inside its entries using the provided keyName