mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v4.13.0.
This commit is contained in:
7
now.js
7
now.js
@@ -5,7 +5,6 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 2.4.0
|
||||
* @type {Function}
|
||||
* @category Date
|
||||
* @returns {number} Returns the timestamp.
|
||||
* @example
|
||||
@@ -13,8 +12,10 @@
|
||||
* _.defer(function(stamp) {
|
||||
* console.log(_.now() - stamp);
|
||||
* }, _.now());
|
||||
* // => Logs the number of milliseconds it took for the deferred function to be invoked.
|
||||
* // => Logs the number of milliseconds it took for the deferred invocation.
|
||||
*/
|
||||
var now = Date.now;
|
||||
function now() {
|
||||
return Date.now();
|
||||
}
|
||||
|
||||
export default now;
|
||||
|
||||
Reference in New Issue
Block a user