编辑 | blame | 历史 | 原始文档

first

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

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: 'en', 'it', 'nl', 'fr'.