SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+31
@@ -0,0 +1,31 @@
|
||||
# first
|
||||
|
||||
```js
|
||||
// usage
|
||||
chance.first()
|
||||
chance.first({ nationality: 'us' })
|
||||
```
|
||||
|
||||
Generate a random first name
|
||||
|
||||
```js
|
||||
Chance.first();
|
||||
=> 'Leila'
|
||||
```
|
||||
|
||||
Optionally specify a gender to limit first names to that gender
|
||||
|
||||
```js
|
||||
Chance.first({ gender: "female" });
|
||||
=> 'Emma'
|
||||
```
|
||||
|
||||
Optionally specify a nationality to limit first names to those most common of that nationality
|
||||
|
||||
```js
|
||||
Chance.first({ nationality: "it" });
|
||||
=> 'Alberto'
|
||||
```
|
||||
|
||||
Note, currently support for nationality is limited to: `'us', 'it'`.
|
||||
|
||||
Reference in new issue
Block a user