Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Like Array.prototype.reduce
but works on Object and accepts optional
this
value
var reduce = require("reduce")
reduce({
key: "value"
, key2: "value2"
, ...
}, function (acc, value, key) {
/* real code */
acc[key] = value
return acc
}, {
this: "context"
}, {
initial: "value"
})
npm install reduce
v1.0.3 - 2024-05-23
285b9c2
336d47c
auto-changelog
2c84bba
63b6956
nyc
for coverage e1c54bf
@ljharb/eslint-config
, eslint
, tape
311270e
aud
explicitly e5080e1
SECURITY.md
4bb7107
engines.node
fe78d29
object-keys
52f927b
FAQs
A better [].reduce
The npm package reduce receives a total of 201,576 weekly downloads. As such, reduce popularity was classified as popular.
We found that reduce demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.