This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/api/assets/utils/helperQueryNumber.js

7 lines
164 B
JavaScript
Raw Permalink Normal View History

2020-08-03 12:04:07 +02:00
function helperQueryNumber (value, defaultValue) {
if (value && !isNaN(value)) return parseInt(value)
return defaultValue
}
2020-08-03 12:04:07 +02:00
module.exports = helperQueryNumber