aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/misc.ts
blob: 83f50a7fef69e92325d07d5c6fb0e8a29ccaa50f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function exists (value) {
  return value !== undefined && value !== null
}

function isArray (value) {
  return Array.isArray(value)
}

// ---------------------------------------------------------------------------

export {
  exists,
  isArray
}