Skip to content

Enhance email expression function

Compare
Choose a tag to compare
@jwils0n jwils0n released this 19 Oct 15:05
· 109 commits to master since this release
01f3b35

chance.js' email function isn't very unique, it's common to get something like [email protected], which is lame. This release adds an additional param for appending a timestamp:

Before

email('intuit.com'); // [email protected]

After

email('intuit.com', true); // [email protected]