module.exports = reviewersEditionCompare

var ordinal = require('number-to-words').toWordsOrdinal
var parse = require('reviewers-edition-parse')
var numbers = require('reviewers-edition-parse/numbers')

function reviewersEditionCompare (edition) {
  var parsed = parse(edition)
  if (parsed) {
    return (
      (parsed.draft ? (ordinal(parsed.draft) + ' draft of ') : '') +
      numbers
        .filter(function (number) {
          return number !== 'draft'
        })
        .reduce(function (components, number) {
          return parsed.hasOwnProperty(number)
          ? components.concat(ordinal(parsed[number]) + ' ' + number)
          : components
        }, [])
        .join(', ')
    )
  } else {
    return false
  }
}

var ordinal = require('number-to-words').toWordsOrdinal
var parse = require('reviewers-edition-parse')
var numbers = require('reviewers-edition-parse/numbers')

module.exports = function reviewersEditionCompare (edition) {
  var parsed = parse(edition)
  if (parsed) {
    return (
      (parsed.draft ? (ordinal(parsed.draft) + ' draft of ') : '') +
      numbers
        .filter(function (number) {
          return number !== 'draft'
        })
        .reduce(function (components, number) {
          return parsed.hasOwnProperty(number)
          ? components.concat(ordinal(parsed[number]) + ' ' + number)
          : components
        }, [])
        .join(', ')
    )
  } else {
    return false
  }
}

Put module.exports and function on same line
Put module.exports and function on same line
