Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 355 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 355 Bytes

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