PeerTube/server/helpers/custom-validators/misc.ts

15 lines
247 B
TypeScript

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