index.js 281 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 export default (function (o, c, d) { var proto = c.prototype; proto.isYesterday = function () { var comparisonTemplate = 'YYYY-MM-DD'; var yesterday = d().subtract(1, 'day'); return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate); }; });