UNPKG
choo-shortcache
Version:
latest (0.0.0)
0.0.0
choo nanocomponent cache shortcut
choo-shortcache
/
example
/
node_modules
/
right-now
/
browser.js
8 lines
(7 loc)
•
174 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
=
global
.
performance
&&
global
.
performance
.
now
?
function
now
(
) {
return
performance.
now
() } :
Date
.
now
||
function
now
(
) {
return
+
new
Date
}