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;