0.1.0 • Published 7 months ago
dupes-of-hazard v0.1.0
dupes-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']])
0.1.0
7 months ago