ion-js
ion-js copied to clipboard
DOM `equals` should allow comparisons between `Integer` and other numeric types
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
andJSBI
withInteger
.
Originally posted by @desaikd in https://github.com/amzn/ion-js/pull/695#discussion_r659902626