]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/helpers/custom-validators/misc.ts
Video blacklist refractoring
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / misc.ts
CommitLineData
fdbda9e3
C
1import 'express-validator'
2
69818c93 3function exists (value: any) {
e4c55619
C
4 return value !== undefined && value !== null
5}
6
69818c93 7function isArray (value: any) {
e4c55619
C
8 return Array.isArray(value)
9}
10
11// ---------------------------------------------------------------------------
12
65fcc311
C
13export {
14 exists,
15 isArray
16}