Skip to content

Commit

Permalink
style(birthday): clean up comments and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardolima committed Oct 12, 2022
1 parent 99ffa05 commit a93b78b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions chance.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,6 @@
});
}

// console.debug(options)

return this.date(options);
};

Expand Down
2 changes: 1 addition & 1 deletion docs/person/birthday.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ chance.birthday({ year: chance.year({ min: 1450, max: 1500 }) });
=> Fri Nov 26 1469 09:17:13 GMT-0500 (EST)
```

Can specify maxAge and/or minAge. This will return a date which yields to an age beteween the given range. Attention on limits: the full day of birthdays are considered to be part of the allowed range (from the first milisecond of the minimun date to the last second of the maximun date).
Can specify maxAge and/or minAge. This will return a date which yields to an age between the given range. Attention on limits: the full day of birthdays are considered to be part of the allowed range (from the first millisecond of the minimum date to the last second of the maximum date).

```js
chance.birthday({minAge: 18, maxAge: 21});
Expand Down

0 comments on commit a93b78b

Please sign in to comment.