
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
array-duplicated
Advanced tools
Return duplicated values in a given Array
arrayDuplicated(['a', 2, 'b', true, 'b', 12, 'b', true, ['a']]) //=> ['b', true];
npm install array-duplicated
import arrayDuplicated from 'array-duplicated';
array: Array<any>
Return: Array
It finds duplicated values in the Array
and returns an Array
of them.
arrayDuplicated([0, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //=> [1]
"Duplicated" means a value is identical to another value in the ECMAScript same-value equality level.
arrayDuplicated([-1, 1]); //=> []
ISC License © 2017 - 2018 Shinnosuke Watanabe
FAQs
Return an Array of duplicated values in a given Array
The npm package array-duplicated receives a total of 14 weekly downloads. As such, array-duplicated popularity was classified as not popular.
We found that array-duplicated 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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.