UNPKG

jsfakeit

Version:

![alt text](https://raw.githubusercontent.com/Anirban20001962/jsfakeit/main/logo.png)

13 lines (12 loc) 465 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.word = void 0; const word_1 = require("../data/word"); const chooseRand_1 = require("../helper/chooseRand"); const strings_1 = require("../helper/strings"); /** Word will generate a random word*/ const word = () => { const randKey = (0, strings_1.randomString)(Object.keys(word_1.Word)); return (0, chooseRand_1.chooseRand)(randKey, word_1.Word); }; exports.word = word;