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"]

请在测试环境使用合成数据。

相关生成器

探索场景模板