A small library that get the next date with the specified day
npm install date-of-week
var dateOfWeek = require('date-of-week');
var formattedNum = dateOfWeek(0);
Output should be Date object set to next sunday
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.