code: function mapValues (mapping) {
        var result = {}
        for (var property in mapping) {
          result[property] = parseInt(values[mapping[property]], 10)
        }
        return result
      }
docs: console.log (values)