필드 · 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"]

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색