SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+23
@@ -0,0 +1,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'`.
|
||||
Reference in new issue
Block a user