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']])
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']])
npm i dupes-of-hazard
122
0.1.0
ISC
4.47 kB
11