Sha256: 8bfb77e41f4c1b11efb1f0493d44c0f2aeb55579edc2dd6fe688afb3add1f01c
Contents?: true
Size: 626 Bytes
Versions: 14
Compression:
Stored size: 626 Bytes
Contents
var isNative = require('../lang/isNative'); /* Native method references for those with the same name as other `lodash` methods. */ var nativeNow = isNative(nativeNow = Date.now) && nativeNow; /** * Gets the number of milliseconds that have elapsed since the Unix epoch * (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @category Date * @example * * _.defer(function(stamp) { console.log(_.now() - stamp); }, _.now()); * // => logs the number of milliseconds it took for the deferred function to be invoked */ var now = nativeNow || function() { return new Date().getTime(); }; module.exports = now;
Version data entries
14 entries across 7 versions & 1 rubygems