UNPKG
@yoroi/common
Version:
latest (6.0.1)
6.0.1
6.0.0
2.0.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
The Common package of Yoroi SDK
github.com/Emurgo/yoroi/packages/common
@yoroi/common
/
lib
/
module
/
cache
/
is-expired.js
6 lines
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
import
{ isArray }
from
'../utils/parsers'
;
export
function
isExpired
(
cacheInfo
) {
const
expires =
isArray
(cacheInfo) ? cacheInfo[
1
].
expires
: cacheInfo.
expires
;
return
expires <
Date
.
now
(); }
//# sourceMappingURL=is-expired.js.map