Skip to content

Commit

Permalink
fix: param can be optional (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Feb 1, 2022
1 parent 8bb1e6c commit f8a95a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Name {
* @param binary
* @memberof faker.name
*/
gender(binary: boolean): string {
gender(binary?: boolean): string {
if (binary) {
return this.faker.random.arrayElement(
this.faker.definitions.name.binary_gender
Expand Down

0 comments on commit f8a95a1

Please sign in to comment.