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

19 lines
310 B
JavaScript
Raw Normal View History

2016-07-31 20:58:43 +02:00
'use strict'
const miscValidators = {
exists,
isArray
2016-07-31 20:58:43 +02:00
}
function exists (value) {
return value !== undefined && value !== null
}
function isArray (value) {
return Array.isArray(value)
}
// ---------------------------------------------------------------------------
module.exports = miscValidators