massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / lib / vocabularies / validation / enum.ts
index 4b093faf03dc7e1b0e56cb04698f1e6cc65a3107..fa85373c47753251e68a014b1e5044c728cbe77c 100644 (file)
@@ -42,7 +42,7 @@ const def: CodeKeywordDefinition = {
 
     function equalCode(vSchema: Name, i: number): Code {
       const sch = schema[i]
-      return sch && typeof sch === "object"
+      return typeof sch === "object" && sch !== null
         ? _`${eql}(${data}, ${vSchema}[${i}])`
         : _`${data} === ${sch}`
     }