From: Chris Duncan Date: Fri, 6 Dec 2024 07:04:56 +0000 (-0800) Subject: Revert exists test value to allow zeros. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=b24a2a7d10b3524bd9f8662f1e7ae8060cf8c108;p=libnemo.git Revert exists test value to allow zeros. --- 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