2016-07-31 14:58:43 -04:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const miscValidators = {
|
|
|
|
exists: exists,
|
2016-08-21 04:08:40 -04:00
|
|
|
isArray: isArray
|
2016-07-31 14:58:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
function exists (value) {
|
|
|
|
return value !== undefined && value !== null
|
|
|
|
}
|
|
|
|
|
|
|
|
function isArray (value) {
|
|
|
|
return Array.isArray(value)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
module.exports = miscValidators
|