deleted common/libs/inputValidator.js
This commit is contained in:
parent
3cf43d04ad
commit
f0d00b3815
|
@ -1,15 +0,0 @@
|
|||
export function isInt(n) {
|
||||
return Number(n) === n && n % 1 === 0;
|
||||
}
|
||||
|
||||
export function isFloat(n) {
|
||||
return Number(n) === n && n % 1 !== 0;
|
||||
}
|
||||
|
||||
export function isEmpty(n) {
|
||||
return n === ''
|
||||
}
|
||||
|
||||
export function isFloatOrInt(n) {
|
||||
return (isFloat(n) || isInt(n))
|
||||
}
|
Loading…
Reference in New Issue