Files
ccc-obfuscated-code/node_modules/chance/docs/person/first.md
Pipi Chen b8a3516cd6 update
2020-05-07 01:02:44 +08:00

497 B

first

// usage
chance.first()
chance.first({ nationality: 'us' })

Generate a random first name

Chance.first();
=> 'Leila'

Optionally specify a gender to limit first names to that gender

Chance.first({ gender: "female" });
=> 'Emma'

Optionally specify a nationality to limit first names to those most common of that nationality

Chance.first({ nationality: "it" });
=> 'Alberto'

Note, currently support for nationality is limited to: 'us', 'it'.