npm.io
0.1.0 • Published 2 years ago

dupes-of-hazard

Licence
ISC
Version
0.1.0
Deps
2
Size
4 kB
Vulns
0
Weekly
0

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']])