1
0
Fork 0
peertube/server/helpers/custom-validators/misc.js
2016-08-21 10:41:04 +02:00

18 lines
327 B
JavaScript

'use strict'
const miscValidators = {
exists: exists,
isArray: isArray
}
function exists (value) {
return value !== undefined && value !== null
}
function isArray (value) {
return Array.isArray(value)
}
// ---------------------------------------------------------------------------
module.exports = miscValidators