UNPKG

happy-dom-without-node

Version:

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

15 lines 379 B
/** * Cookie expire utility. */ export default class CookieExpireUtility { /** * Returns "true" if cookie has expired. * * @param cookie Cookie. * @returns "true" if cookie has expired. */ static hasExpired(cookie) { return cookie.expires && cookie.expires.getTime() < Date.now(); } } //# sourceMappingURL=CookieExpireUtility.js.map