index.js
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]
}
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]
}
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 ] }
Flatten the given expression into an array of all licenses mentioned in the expression.
Flatten the given expression into an array of all licenses mentioned in the expression .