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.
30 lines
388 B
30 lines
388 B
4 weeks ago
|
# ssn
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.ssn()
|
||
|
chance.ssn({ ssnFour: true })
|
||
|
chance.ssn({ dashes: false })
|
||
|
```
|
||
|
|
||
|
Generate a random social security number.
|
||
|
|
||
|
```js
|
||
|
chance.ssn();
|
||
|
=> '411-90-0070'
|
||
|
```
|
||
|
|
||
|
Optionally provide option of getting only the last four
|
||
|
|
||
|
```js
|
||
|
chance.ssn({ ssnFour: true });
|
||
|
=> '2938'
|
||
|
```
|
||
|
|
||
|
Optionally specify dashes be removed
|
||
|
|
||
|
```js
|
||
|
chance.ssn({ dashes: false });
|
||
|
=> '293839295'
|
||
|
```
|