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