Secret Santa
Installation
yarn add @glennreyes/secretsanta
Usage
const drawSecretSanta = require('@glennreyes/secretsanta');
drawSecretSanta(['Glenn', 'Charmaine', 'Nolan']);
// Returns random selections, eg:
// [
// { giver: 'Nolan', recipient: 'Charmaine' },
// { giver: 'Charmaine', recipient: 'Glenn' },
// { giver: 'Glenn', recipient: 'Nolan' },
// ]
License
MIT