lib/map.js
function _mapObject(data, schema, options) {
    return Object
        .keys(schema)
        .reduce(function (memo, key) {
            memo[key] = _mapDataValue(data, schema[key]);
            return memo;
        }, options.keep ? _clone(data) : {});
}
function _mapObject(data, schema, options) {
    return Object
        .keys(schema)
        .reduce(function (memo, key) {
            memo[key] = _mapDataValue(data, schema[key]);
            return memo;
        }, options.keep ? _clone(data) : {});
}
function _mapObject ( data , schema , options ) { return Object . keys ( schema ) . reduce ( function ( memo , key ) { memo [ key ] = _mapDataValue ( data , schema [ key ] ) ; return memo ; } , options . keep ? _clone ( data ) : { } ) ; }
Returns a new object with its new aspect from an object schema
@param data Object to map
@param schema Fields to map
@param options Options
@returns {*}
@private
Returns a new object with its new aspect from an object schema