I was testing a snippet of code, then I found this:
2.1.2 :016 > 1 === (1..12)
=> false
2.1.2 :017 > (1..12) === 1
=> true
2.1.2 :018 >
Why does the order matter in this boolean expression?
I was testing a snippet of code, then I found this:
2.1.2 :016 > 1 === (1..12)
=> false
2.1.2 :017 > (1..12) === 1
=> true
2.1.2 :018 >
Why does the order matter in this boolean expression?