parent
befe5ec4b5
commit
75606eb9a0
4 changed files with 20 additions and 17 deletions
@ -1,6 +1,6 @@ |
||||
import { InputTestArgs } from '../../types/TestInputFunction'; |
||||
|
||||
const testNotBlank: (args: InputTestArgs) => boolean = ({ value }) => |
||||
value !== ''; |
||||
value ? String(value).length > 0 : false; |
||||
|
||||
export default testNotBlank; |
||||
|
@ -1,6 +1,6 @@ |
||||
import { InputTestArgs } from '../../types/TestInputFunction'; |
||||
|
||||
const testRange: (args: InputTestArgs) => boolean = ({ max, min, value }) => |
||||
value >= min && value <= max; |
||||
value ? value >= min && value <= max : false; |
||||
|
||||
export default testRange; |
||||
|
Loading…
Reference in new issue