src/api.js
function getArguments(req) {
    const result = req.body || {};
    for (let i in req.query) {
        result[i] = req.query[i];
    }
    return result;
}
function getArguments(req) {
    const result = req.body || {};
    for (let i in req.query) {
        result[i] = req.query[i];
    }
    return result;
}
function getArguments ( req ) { const result = req . body || { } ; for ( let i in req . query ) { result [ i ] = req . query [ i ] ; } return result ; }
This function is currently modifying req.body for performance though could be changed if it ever caused problems.
This function is currently modifying req . body for performance though could be changed if it ever caused problems .