19 lines
310 B
JavaScript
19 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
|