UNPKG
@sontrx/typia
Version:
latest (7.6.4)
7.6.4
7.6.3
Superfast runtime validators with only one line
typia.io
samchon/typia
@sontrx/typia
/
src
/
internal
/
_isTypeUint32.ts
6 lines
(4 loc)
•
177 B
text/typescript
View Raw
1
2
3
4
5
6
export
const
_isTypeUint32 = (
value
:
number
):
boolean
=>
Math
.
floor
(value) === value &&
MINIMUM
<= value && value <=
MAXIMUM
;
const
MINIMUM
=
0
;
const
MAXIMUM
=
2
**
32
-
1
;