Makes sense, in this case it might've been interesting to create a tuple type for the rules/conditions, and then just write a function to compare them, as you know they will only have 2 values (at least for the example provided) something like:
const areTuplesEqual = (t1: Tuple, t2: Tuple) => { return t1[0] === t2[0] && t1[1] === t2[1]; }
I'm glad you're enjoying it! It's cool that you could take something away from it too!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Makes sense, in this case it might've been interesting to create a tuple type for the rules/conditions, and then just write a function to compare them, as you know they will only have 2 values (at least for the example provided) something like:
I'm glad you're enjoying it! It's cool that you could take something away from it too!