1
0
Fork 0
peertube/server/helpers/custom-validators/misc.js
2016-10-02 12:19:02 +02:00

18 lines
310 B
JavaScript

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