()
| 449 | } |
| 450 | |
| 451 | export function totalUniqueSlugs() { |
| 452 | const numAdjectives = adjective.length; |
| 453 | const numNouns = noun.length; |
| 454 | const numNumbers = numbers.length; |
| 455 | const nums: any = { |
| 456 | adjective: numAdjectives, |
| 457 | noun: numNouns, |
| 458 | numbers: numNumbers, |
| 459 | }; |
| 460 | const numWords = 3; |
| 461 | const partsOfSpeech = order; |
| 462 | let combos = 1; |
| 463 | for (let i = 0; i < numWords; i++) { |
| 464 | combos *= nums[partsOfSpeech[i]]; |
| 465 | } |
| 466 | return combos; |
| 467 | } |
| 468 | |
| 469 | export function generateRandomWordSlug() { |
| 470 | return generateSlug(); |
no outgoing calls
no test coverage detected