
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
make-unique
Advanced tools
Creates and makes an array without duplicates. Even with array of objects with a specified matcher.
Creates and makes an array without duplicates. Even with array of objects with a specified matcher.
If no matcher specified, it will use Set if Set is available in V8.
$ npm install make-unique --save
let unique = require('make-unique')
unique([1, 2, 3, 1]) // [1, 2, 3]
Array the input arrayfunction(a, b) if matcher returns true, then it will treat a equals to b.Cleans an array of objects with a specified filter to tell unique how to determine if two items are the 'same'
unique([
{a: 1},
{a: 2},
{a: 1}
], (a, b) => {
// if `a` and `b` contain the same `.a`, they are the 'same'
return a.a === b.a
})
// [
// {a: 1},
// {a: 2}
// ]
MIT
FAQs
Creates and makes an array without duplicates. Even with array of objects with a specified matcher.
The npm package make-unique receives a total of 1,888 weekly downloads. As such, make-unique popularity was classified as popular.
We found that make-unique demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.