From b24a2a7d10b3524bd9f8662f1e7ae8060cf8c108 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 5 Dec 2024 23:04:56 -0800 Subject: [PATCH] Revert exists test value to allow zeros. --- GLOBALS.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLOBALS.mjs b/GLOBALS.mjs index 187c9ca..fee5333 100644 --- a/GLOBALS.mjs +++ b/GLOBALS.mjs @@ -59,7 +59,7 @@ export const assert = { return true }, exists: (a) => { - if (!!a === false) { + if (a == null) { throw new Error(`argument is ${typeof a}`) } return a != null -- 2.34.1