フィールド · Unique Array

フィールド · Unique Array · helpers.uniqueArray. 生成メソッド · 例

helpers.uniqueArray

生成設定

生成したデータはここに表示されます。

パラメーター & 例

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.

例

["beta","alpha"]

テスト環境で合成データを使用してください。

関連ジェネレーター

シナリオを見る