You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add an option which would compare primitives and boxed values of the same type with ==? I would not want any type conversions, only for these tests to be swapped when the option is enabled.
The text was updated successfully, but these errors were encountered:
Yeah, I'd like for should.js to ignore when strings have been boxed when testing with eql(), including strings within deep comparisons. I personally don't anticipate comparison numbers or booleans as well, but for consistency it would make sense for the option to apply to them as well. So I guess it would be better to check A.valueOf() === B.valueOf().
Would it be possible to add an option which would compare primitives and boxed values of the same type with
==
? I would not want any type conversions, only for these tests to be swapped when the option is enabled.The text was updated successfully, but these errors were encountered: