---
title: "Discussion on \"Lodash: _.isEmpty() - Check falsy values\" | Hashnode"
description: "Discussion on \"Lodash: _.isEmpty() - Check falsy values\". _.isEmpty(): Matches undefined, null, false & empty arrays, obj, strings\nconst _ = require('lodash');\n\nconsole.log(\n  _.isEmpty(undefined),\n  _.isEmpty(null),\n  _.isEmpty(false)\n  _.isEmpty([]),\n  _.isEmpty({}),\n  _.isEmpty(\"\"),\n); // true x 6"
url: "https://hashnode.com/posts/lodash-isempty-check-falsy-values/60d0bad4a6a3a25dadf61679"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lodash: \_.isEmpty() - Check falsy values](https://codedrops.hashnode.dev/lodash-isempty-check-falsy-values?utm_source=hashnode&utm_medium=feed)

\_.isEmpty(): Matches undefined, null, false & empty arrays, obj, strings const \_ = require('lodash'); console.log( \_.isEmpty(undefined), \_.isEmpty(null), \_.isEmpty(false) \_.isEmpty(\[\]), \_.isEmpty({}), \_.isEmpty(""), ); // true x 6

Jun 21, 2021 · 1 min read · codedrops.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#lodash](https://hashnode.com/tag/lodash)

## Written by

[Mehul Lakhanpal](https://hashnode.com/@ml318097)

@ml318097 · Bangalore, India

  
[View profile](https://hashnode.com/@ml318097)

Full-stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
