secret-santa-generator

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

/secret-santa-generator/

    Package Sidebar

    Install

    npm i secret-santa-generator

    Weekly Downloads

    95

    Version

    0.1.22

    License

    ISC

    Unpacked Size

    7.54 kB

    Total Files

    7

    Last publish

    Collaborators

    • narekhovhannisyan