secret-santa-generator

0.1.6 • Public • Published

secret-santa

secretSanta(namesArray).

  • namesArray is an array containing grantees names.
  • Returns Object.
  const secretSanta = require('secret-santa-generator')
  
  const namesArray = ['Narek', 'Gor', 'Gor K.', 'Sergey', 'Grig', 'Shav']

  const namesTable = secretSanta.buildSecretSantaTable(namesArray)
  // The result object.
   {
     'Narek': 'Gor K.',
     'Gor': 'Shav',
     'Gor K.': 'Grig',
     'Grig': 'Sergey',
     'Sergey': 'Narek',
     'Shav': 'Gor' 
   }

Readme

Keywords

Package Sidebar

Install

npm i secret-santa-generator

Weekly Downloads

15

Version

0.1.6

License

ISC

Unpacked Size

6.33 kB

Total Files

7

Last publish

Collaborators

  • narekhovhannisyan