index.js
function flattenValues (report) {
    if (Object.prototype.toString.call(report.values) === '[object Array]') {
      report.values.forEach(function (value) {
        Object.assign(report, value)
      })
    }
    return report
  }
function flattenValues (report) {
    if (Object.prototype.toString.call(report.values) === '[object Array]') {
      report.values.forEach(function (value) {
        Object.assign(report, value)
      })
    }
    return report
  }
function flattenValues ( report ) { if ( Object . prototype . toString . call ( report . values ) === '[object Array]' ) { report . values . forEach ( function ( value ) { Object . assign ( report , value ) } ) } return report }
statreports can come with a value array instead of properties
statreports can come with a value array instead of properties