Current File : //proc/self/root/proc/self/root/usr/lib/node_modules/bower/lib/node_modules/mout/src/object/map.js
define(['./forOwn', '../function/makeIterator_'], function(forOwn, makeIterator) {

    /**
     * Creates a new object where all the values are the result of calling
     * `callback`.
     */
    function mapValues(obj, callback, thisObj) {
        callback = makeIterator(callback, thisObj);
        var output = {};
        forOwn(obj, function(val, key, obj) {
            output[key] = callback(val, key, obj);
        });

        return output;
    }
    return mapValues;
});