blob: b1291ba7a5b38a8f91a9e5a6f1d14c068d1731ee (
plain) (
tree)
|
|
function exists (value: any) {
return value !== undefined && value !== null
}
function isArray (value: any) {
return Array.isArray(value)
}
// ---------------------------------------------------------------------------
export {
exists,
isArray
}
declare global {
namespace ExpressValidator {
export interface Validator {
exists,
isArray
}
}
}
|