]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/misc.ts
First typescript iteration
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / misc.ts
1 function exists (value) {
2 return value !== undefined && value !== null
3 }
4
5 function isArray (value) {
6 return Array.isArray(value)
7 }
8
9 // ---------------------------------------------------------------------------
10
11 export {
12 exists,
13 isArray
14 }