From dc7dd15b2b2977e8f3f40e71b8be3643ad91039e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Fri, 15 Mar 2024 13:33:10 +0100 Subject: [PATCH] Do not display null entries --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index aa1aa33..d831b48 100644 --- a/index.js +++ b/index.js @@ -191,7 +191,9 @@ function expandSetLike(obj) { function mapLikeToKeyValueArray(obj) { const entries = []; for (const key in obj) { - entries.push([key, obj[key]]); + if (obj[key] !== null) { + entries.push([key, obj[key]]); + } } return entries; }