]>
Commit | Line | Data |
---|---|---|
fdbda9e3 C |
1 | import 'express-validator' |
2 | ||
69818c93 | 3 | function exists (value: any) { |
e4c55619 C |
4 | return value !== undefined && value !== null |
5 | } | |
6 | ||
69818c93 | 7 | function isArray (value: any) { |
e4c55619 C |
8 | return Array.isArray(value) |
9 | } | |
10 | ||
11 | // --------------------------------------------------------------------------- | |
12 | ||
65fcc311 C |
13 | export { |
14 | exists, | |
15 | isArray | |
16 | } |