diff --git a/index.js b/index.js index e85bcd1a..5fe379ba 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,5 @@ function isThirteen(n, strictEquality) { - if (strictEquality === true) { - return n === 13; - } - - return n == 13; + return (strictEquality === true) ? n === 13 || n == 13; } module.exports = isThirteen;