From 65fcc3119c334b75dd13bcfdebf186afdc580a8f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 May 2017 22:22:03 +0200 Subject: First typescript iteration --- server/helpers/custom-validators/misc.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 server/helpers/custom-validators/misc.js (limited to 'server/helpers/custom-validators/misc.js') diff --git a/server/helpers/custom-validators/misc.js b/server/helpers/custom-validators/misc.js deleted file mode 100644 index 052726241..000000000 --- a/server/helpers/custom-validators/misc.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -const miscValidators = { - exists, - isArray -} - -function exists (value) { - return value !== undefined && value !== null -} - -function isArray (value) { - return Array.isArray(value) -} - -// --------------------------------------------------------------------------- - -module.exports = miscValidators -- cgit v1.2.3