typia
Version:
Superfast runtime validators with only one line
9 lines • 396 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._isTypeUint64 = void 0;
const _isTypeUint64 = (value) => Math.floor(value) === value && MINIMUM <= value && value <= MAXIMUM;
exports._isTypeUint64 = _isTypeUint64;
// The maximum is `2 ** 64 - 1`, the uint64 upper bound.
const MINIMUM = 0;
const MAXIMUM = 2 ** 64 - 1;
//# sourceMappingURL=_isTypeUint64.js.map