lib: add validateInteger() validator · nodejs/node@a0cfb0c · GitHub
Skip to content

Commit a0cfb0c

Browse files
cjihrigcodebytere
authored andcommitted
lib: add validateInteger() validator
This allows validation of integers that are not int32 or uint32. PR-URL: #20851 Fixes: #20844 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Backport-PR-URL: #21171 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
1 parent 6a098ad commit a0cfb0c

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

lib/internal/validators.js

Lines changed: 16 additions & 1 deletion

0 commit comments

Comments
 (0)