summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/person/last.md
blob: 304e1c5fa326f6007ec9a64f3f86241c72bf7a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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'`.