1
0
Fork 0
peertube/server/helpers/custom-validators/misc.ts

15 lines
247 B
TypeScript
Raw Normal View History

2016-07-31 18:58:43 +00:00
function exists (value) {
return value !== undefined && value !== null
}
function isArray (value) {
return Array.isArray(value)
}
// ---------------------------------------------------------------------------
2017-05-15 20:22:03 +00:00
export {
exists,
isArray
}