]> zoso.dev Git - libnemo.git/commitdiff
Revert exists test value to allow zeros.
authorChris Duncan <chris@zoso.dev>
Fri, 6 Dec 2024 07:04:56 +0000 (23:04 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 6 Dec 2024 07:04:56 +0000 (23:04 -0800)
GLOBALS.mjs

index 187c9ca31a97ab10602624934a50efdb6a71a857..fee53333cca51a42351a32ac6144a820344f9c7a 100644 (file)
@@ -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