backend: GET et POST /comments/:functionId
This commit is contained in:
6
api/assets/utils/helperQueryNumber.js
Normal file
6
api/assets/utils/helperQueryNumber.js
Normal file
@ -0,0 +1,6 @@
|
||||
function helperQueryNumber(value, defaultValue) {
|
||||
if (value && !isNaN(value)) return parseInt(value);
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
module.exports = helperQueryNumber;
|
Reference in New Issue
Block a user