1.0.3 • Published 2 years ago

secret-friend v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

secret-friend

Usage example

Let's suppose you have friends: Arthur, Bob, Clara

const genSecretFriends = require("secret-friend");

const friends = ["Arthur", "Bob", "Clara"];
const tuples = genSecretFriends(friends);

console.log(tuples);
/**
 * [
 *   { from: 'Arthur', to: 'Bob' }, // Arthur gives a gift to Bob
 *   { from: 'Bob', to: 'Carla' }, // Bob gives a gift to Carla
 *   { from: 'Carla', to: 'Arthur' }, // Carla gives a gift to Arthur
 * ]
 */
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago