unique-pairs
v1.0.2
Published
Given an array of strings, return an object where each field/value is unique
Downloads
1
Readme
unique-pairs
Given an array of strings, return an object where each field/value is unique
Installation
npm install unique-pairs
Usage
import { getUniquePairs } from "unique-pairs"
console.log(getUniquePairs(["John", "Johanna", "Jane"]))
// Example output:
{ John: 'Jane', Johanna: 'John', Jane: 'Johanna' }