Get the last sunday (not the recent sunday of the week)
$ npm install --save last-sunday
const lastSunday = require('last-sunday');
const lastSundayDt = lastSunday();
//=> 'Sun Oct 14 2018' (It'll return the last sunday, not the recent sunday)
MIT © Ashik Nesin