필드 · Sample

필드 · Sample · word.sample. 생성 메서드 · 예시

word.sample

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

Returns a random word, that can be an adjective, adverb, conjunction, interjection, noun, preposition, or verb.

word.sample(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'.

예시

"innocently"

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

관련 생성기

시나리오 탐색