Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
lodash.forin
Advanced tools
The Lo-Dash function `_.forIn` as a Node.js module generated by lodash-cli.
The lodash.forin package is a utility library that provides a method for iterating over own and inherited enumerable properties of an object. It is part of the larger Lodash library, which is known for its utility functions for common programming tasks.
Iterate over object properties
This feature allows you to iterate over all enumerable properties of an object, including inherited properties. The provided function is invoked for each property.
const forIn = require('lodash.forin');
const object = { 'a': 1, 'b': 2, 'c': 3 };
forIn(object, function(value, key) {
console.log(key, value);
});
The for-own package is a utility for iterating over the own enumerable properties of an object. Unlike lodash.forin, it does not iterate over inherited properties, making it more focused on the object's own properties.
The object.entries package provides a method to return an array of a given object's own enumerable string-keyed property [key, value] pairs. It is a part of the ECMAScript 2017 standard and does not include inherited properties, similar to for-own.
The Lo-Dash function _.forIn
as a Node.js module generated by lodash-cli.
John-David Dalton |
Blaine Bublitz | Kit Cambridge | Mathias Bynens |
FAQs
The lodash method `_.forIn` exported as a module.
The npm package lodash.forin receives a total of 170,991 weekly downloads. As such, lodash.forin popularity was classified as popular.
We found that lodash.forin 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.