UNPKG

typia

Version:

Superfast runtime validators with only one line

9 lines (7 loc) 280 B
const _httpParameterReadNumber = (value) => value !== "null" ? toNumber(value) : null; const toNumber = (str) => { const value = Number(str); return isNaN(value) ? str : value; }; export { _httpParameterReadNumber }; //# sourceMappingURL=_httpParameterReadNumber.mjs.map