mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v4.14.2.
This commit is contained in:
8
now.js
8
now.js
@@ -1,3 +1,5 @@
|
||||
var root = require('./_root');
|
||||
|
||||
/**
|
||||
* Gets the timestamp of the number of milliseconds that have elapsed since
|
||||
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
||||
@@ -14,8 +16,8 @@
|
||||
* }, _.now());
|
||||
* // => Logs the number of milliseconds it took for the deferred invocation.
|
||||
*/
|
||||
function now() {
|
||||
return Date.now();
|
||||
}
|
||||
var now = function() {
|
||||
return root.Date.now();
|
||||
};
|
||||
|
||||
module.exports = now;
|
||||
|
||||
Reference in New Issue
Block a user