code: function flatten (expression) {
    const expanded = Array.from(expandInner(expression))
    const flattened = expanded.reduce(function (result, clause) {
      return Object.assign(result, clause)
    }, {})
    return sort([flattened])[0]
  }
docs: Flatten the given expression into an array of all licenses mentioned in the expression.