mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-18 14:07:31 +00:00
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…
x
Reference in New Issue
Block a user