From 09ad42bb49f5cf80765a1a5e6efd8374624e1119 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Wed, 31 Aug 2022 16:29:37 +0300 Subject: [PATCH] Update javascript-blank-value.md --- blog_posts/javascript-blank-value.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog_posts/javascript-blank-value.md b/blog_posts/javascript-blank-value.md index 5f429fccd..b19f9a4b1 100644 --- a/blog_posts/javascript-blank-value.md +++ b/blog_posts/javascript-blank-value.md @@ -67,7 +67,7 @@ const isWhitespaceString = value => typeof value === 'string' && /^\s*$/.test(value); const isEmptyCollection = value => (Array.isArray(value) || value === Object(value)) && - !!Object.keys(value).length; + !Object.keys(value).length; const isInvalidDate = value => value instanceof Date && Number.isNaN(value.getTime()); const isEmptySet = value => value instanceof Set && value.size === 0;