text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.isYesterday = isYesterday;
  
  var _isSameDay = require("./is-same-day");
  
  function isYesterday(date, timeZone) {
    var now = new Date();
    var yesterday = new Date(now.valueOf() - 24 * 60 * 60 * 1000);
    return (0, _isSameDay.isSameDay)(date, yesterday, timeZone);
  }