]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/misc.ts
Upgrade express validator to v4
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / misc.ts
1 import 'express-validator'
2
3 function exists (value: any) {
4 return value !== undefined && value !== null
5 }
6
7 function isArray (value: any) {
8 return Array.isArray(value)
9 }
10
11 // ---------------------------------------------------------------------------
12
13 export {
14 exists,
15 isArray
16 }