unique-pairs

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i unique-pairs

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

2.84 kB

Total Files

5

Last publish

Collaborators

  • albingroen