ion-js icon indicating copy to clipboard operation
ion-js copied to clipboard

DOM `equals` should allow comparisons between `Integer` and other numeric types

Open zslayton opened this issue 3 years ago • 0 comments

equals is intended to provide intuitive value-based comparisons. Right now, any comparison between a DOM Integer and any other numeric type (besides JSBI) is false. This behavior is appropriate for ionEquals, but surprising for equals.


No it only allows number and JSBI with Integer.

Originally posted by @desaikd in https://github.com/amzn/ion-js/pull/695#discussion_r659902626

zslayton avatar Jun 28 '21 17:06 zslayton