18 lines
327 B
JavaScript
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
|