quanyawei
2023-10-20 e5f4a463ed9a9af66035f72da8e8aef54a07baad
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);
  };
});