필드 · Postal code
필드 · Postal code · location.zipCode. 생성 메서드 · 예시
location.zipCode
생성 설정
데이터를 생성하면 결과가 표시됩니다.
매개변수 & 예시
Generates random zip code from specified format. If format is not specified, the locale's zip format is used.
location.zipCode(options?: string | { state?: string; format?: string; })- options
- The format used to generate the zip code or an options object.
- options.state
- The state to generate the zip code for. If the current locale does not have a corresponding postcode_by_state definition, an error is thrown.
- options.format
- The optional format used to generate the zip code. By default, a random format is used from the locale zip formats. This won't be used if the state option is specified.
예시
"16064-3811"테스트 환경에서 합성 데이터를 사용하세요.