/**
 * Enhance an object.
 * @function serverside.middleware._enhanceObject
 * @param {object} object - Object to enhance.
 * @param {object} extension - Enhancement.
 * @protected
 * @ignore
 * @author Taka Okunishi
 */
module.exports = function (object, extension) {
    for (var key in extension) {
        if (extension.hasOwnProperty(key)) {
            object[key] = object[key] || extension[key];
        }
    }
};