Created
July 21, 2017 15:52
-
-
Save harrietty/e61bf6188b16111e430bf490c2a46650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function formatJobs (list) { | |
| return list.reduce((acc, job) => { | |
| return `${acc}${job.job} in ${job.location} closing on ${moment(job.closing).format('LL')}\n\n`; | |
| }, 'We found:\n\n'); | |
| } | |
| module.exports = { | |
| extractListingsFromHTML, | |
| formatJobs | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment