
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
lodash.flatten
Advanced tools
The lodash method _.flatten exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.flatten
In Node.js:
var flatten = require('lodash.flatten');
See the documentation or package source for more details.
The array-flatten package provides similar functionality to lodash.flatten by flattening nested arrays. It is a lightweight alternative and can be used when you need a simple solution for array flattening without the additional utilities provided by lodash.
The flat package is another alternative that not only flattens arrays but also objects. It provides more flexibility in terms of flattening deeply nested structures, making it a more versatile option compared to lodash.flatten.
FAQs
The lodash method `_.flatten` exported as a module.
The npm package lodash.flatten receives a total of 7,145,154 weekly downloads. As such, lodash.flatten popularity was classified as popular.
We found that lodash.flatten 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.