1.0.2 • Published 3 years ago

unique-pairs v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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' }
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago