]>
Commit | Line | Data |
---|---|---|
1 | 'use strict' | |
2 | ||
3 | const miscValidators = { | |
4 | exists, | |
5 | isArray | |
6 | } | |
7 | ||
8 | function exists (value) { | |
9 | return value !== undefined && value !== null | |
10 | } | |
11 | ||
12 | function isArray (value) { | |
13 | return Array.isArray(value) | |
14 | } | |
15 | ||
16 | // --------------------------------------------------------------------------- | |
17 | ||
18 | module.exports = miscValidators |