dupes-of-hazard
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

dupes-of-hazard

Dukes of Hazard

Given an array of values, return all the values that are duplicated.

import { getDupes } from 'dupes-of-hazard'

const arr = [['id'], ['foo'], ['id'], ['bar']]
getDupes(arr)
// new Set([['id']])

Readme

Keywords

Package Sidebar

Install

npm i dupes-of-hazard

Weekly Downloads

58

Version

0.1.0

License

ISC

Unpacked Size

4.47 kB

Total Files

11

Last publish

Collaborators

  • sp-dev