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
406 B
23 lines
406 B
# last
|
|
|
|
```js
|
|
// usage
|
|
chance.last()
|
|
chance.last({ nationality: 'en' })
|
|
```
|
|
|
|
Generate a random last name
|
|
|
|
```js
|
|
Chance.last();
|
|
=> 'Mago'
|
|
```
|
|
|
|
Optionally specify a nationality to limit first names to those most common of that nationality
|
|
|
|
```js
|
|
Chance.last({ nationality: 'it' });
|
|
=> 'Giovannini'
|
|
```
|
|
|
|
Note, currently support for nationality is limited to: `'en', 'it', 'nl', 'uk', 'de', 'jp', 'es', 'fr'`.
|
|
|