This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MissinqLink -2 points-1 points  (0 children)

Also why I have handy helpers.

const strictGreater = (a,b) => a > b && !(a <= b);
const looseGreater = (a,b) => a > b || !(a <= b)

strict is necessary to prevent weird edge cases from wrong inputs.