Champ · Unique Array
Champ · Unique Array · helpers.uniqueArray. Méthode de génération · Exemple
helpers.uniqueArray
Options du générateur
Générez des données pour les voir ici.
Paramètres & Exemple
Takes an array of strings or function that returns a string and outputs a unique array of strings based on that source. This method does not store the unique state between invocations.
helpers.uniqueArray(source: ReadonlyArray<T> | (() => T), length: number)- source
- The strings to choose from or a function that generates a string.
- length
- The number of elements to generate.
Exemple
["beta","alpha"]Utilisez des données synthétiques dans un environnement de test.