1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00
Peertube/server/helpers/custom-validators/misc.ts
2017-05-20 09:57:40 +02:00

14 lines
247 B
TypeScript

function exists (value) {
return value !== undefined && value !== null
}
function isArray (value) {
return Array.isArray(value)
}
// ---------------------------------------------------------------------------
export {
exists,
isArray
}