const checkExpiration = function()

in platform/core/common/services/fds-storage.service.js [40:50]


const checkExpiration = function (entry) {
    if (isDefinedAndNotNull(entry.expires)) {
        // get the expiration
        const expires = new Date(entry.expires);
        const now = new Date();

        // return whether the expiration date has passed
        return expires.valueOf() < now.valueOf();
    }
    return false;
};