« get me outta code hell

html: blank: offer isBlank() instead - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-18 16:44:35 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-18 16:44:50 -0300
commitca1a9cc612394722c92c39a073fdcd60abf03f64 (patch)
treec149e673d6a7c2d4e5dc4854c2b737aca2eda3fa /src
parent09a0ab6dd1b7cf3b0f97d820c443b3a4f4291c8f (diff)
html: blank: offer isBlank() instead
Diffstat (limited to 'src')
-rw-r--r--src/html.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/html.js b/src/html.js
index b95d00e1..42083845 100644
--- a/src/html.js
+++ b/src/html.js
@@ -286,7 +286,11 @@ export const validators = {
   },
 };
 
-export function blank() {
+export function blank(...args) {
+  if (args.length) {
+    throw new Error(`Passed arguments - did you mean isBlank() instead?`)
+  }
+
   return [];
 }