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
Describe the bug
Properties of an object are considered undefined unless set, but an explicit undefined value is taken into consideration when determining if isInt or isFloat succeeds due to the use of hasOwnProperty.
Describe the bug
Properties of an object are considered
undefined
unless set, but an explicitundefined
value is taken into consideration when determining ifisInt
orisFloat
succeeds due to the use ofhasOwnProperty
.validator.js/src/lib/isInt.js
Lines 18 to 21 in b958bd7
Examples
Maybe it's just my opinion, but I think that last one should also return
true
.Additional context
Validator.js version:
[email protected]
Node.js version:
Node 18.17.1
OS platform:
linux
The text was updated successfully, but these errors were encountered: