« get me outta code hell

basic page writes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/validators.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-20 00:24:56 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-20 00:24:56 -0400
commit71de050864a42afcaeb409c11b9c792653cf2f1b (patch)
tree63e8b1d3d03db4f3504b9c3a65d57223c61b39e2 /src/data/validators.js
parentf26ad2e27e9c7ca61b6ae5e9b3587786d911a2df (diff)
basic page writes
Diffstat (limited to 'src/data/validators.js')
-rw-r--r--src/data/validators.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index 83922229..ca10833e 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -81,6 +81,13 @@ export function isCountingNumber(number) {
     return true;
 }
 
+export function isWholeNumber(number) {
+    isInteger(number);
+    isPositiveOrZero(number);
+
+    return true;
+}
+
 export function isString(value) {
     return isType(value, 'string');
 }