Champ · Word

Champ · Word · lorem.word. Méthode de génération · Exemple

lorem.word

Options du générateur

Générez des données pour les voir ici.

Paramètres & Exemple

Generates a word of a specified length.

lorem.word(options?: number | { length?: NumberOrRange; strategy?: LengthStrategyType; })
options
The expected length of the word or the options to use.
options.length
The expected length of the word.
options.strategy
The strategy to apply when no words with a matching length are found. Defaults to 'fail'.

Exemple

"sordeo"

Utilisez des données synthétiques dans un environnement de test.

Générateurs associés

Explorer les scénarios