Skip to content

Commit

Permalink
Ternary, bitch
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbean committed Mar 23, 2016
1 parent b1087c8 commit aa7bea7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit aa7bea7

Please sign in to comment.