Skip to content

Commit

Permalink
the 1
Browse files Browse the repository at this point in the history
  • Loading branch information
novalagung committed Oct 18, 2018
1 parent 19d79ae commit d32fa6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class SkeetOverflow {
doJonSkeetifiedTheReputation(reputationString, reputationLength = 12, unit = true) {
const reputation = this.doParseReputationString(reputationString)

if (Math.abs(reputation - this.jonSkeetReputation) < 100000) {
return 'The 1'
}

const calculatedReputation = (reputation / this.jonSkeetReputation).toFixed(20)
const jonSkeetifiedReputation = String(calculatedReputation).slice(0, reputationLength)

Expand Down

0 comments on commit d32fa6b

Please sign in to comment.