
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
lodash.isempty
Advanced tools
The lodash.isempty package is a utility function that checks if a value is empty. It can handle various types of values including objects, arrays, strings, and more. This package is part of the Lodash library, which is a popular utility library for JavaScript.
Check if an object is empty
This feature allows you to check if an object is empty. An empty object has no enumerable properties.
const isEmpty = require('lodash.isempty');
const obj = {};
console.log(isEmpty(obj)); // true
Check if an array is empty
This feature allows you to check if an array is empty. An empty array has no elements.
const isEmpty = require('lodash.isempty');
const arr = [];
console.log(isEmpty(arr)); // true
Check if a string is empty
This feature allows you to check if a string is empty. An empty string has no characters.
const isEmpty = require('lodash.isempty');
const str = '';
console.log(isEmpty(str)); // true
Check if a value is null or undefined
This feature allows you to check if a value is null or undefined, which are considered empty.
const isEmpty = require('lodash.isempty');
const value = null;
console.log(isEmpty(value)); // true
The is-empty package is a simple utility to check if a value is empty. It supports objects, arrays, strings, and other types. Compared to lodash.isempty, it is a more lightweight solution with fewer dependencies.
The empty-value package provides a function to check if a value is empty. It supports a wide range of types including objects, arrays, strings, and more. It is similar to lodash.isempty but focuses solely on checking for emptiness without the additional utilities provided by Lodash.
The lodash method _.isEmpty
exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.isempty
In Node.js:
var isEmpty = require('lodash.isempty');
See the documentation or package source for more details.
FAQs
The lodash method `_.isEmpty` exported as a module.
We found that lodash.isempty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.