You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
294 B
23 lines
294 B
# zip
|
|
|
|
```js
|
|
// usage
|
|
chance.zip()
|
|
chance.zip({plusfour: true})
|
|
```
|
|
|
|
Generate a random (U.S.) zip code.
|
|
|
|
```js
|
|
chance.zip();
|
|
=> '90210'
|
|
```
|
|
|
|
Can optionally specify that it ought to return a [Zip+4][zip+4]:
|
|
|
|
```js
|
|
chance.zip({plusfour: true});
|
|
=> '01035-1838'
|
|
```
|
|
|
|
[zip+4]: http://vq.io/19rzsve
|
|
|