source: imaps-frontend/node_modules/core-js/modules/es.date.now.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 399 bytes
Line 
1'use strict';
2// TODO: Remove from `core-js@4`
3var $ = require('../internals/export');
4var uncurryThis = require('../internals/function-uncurry-this');
5
6var $Date = Date;
7var thisTimeValue = uncurryThis($Date.prototype.getTime);
8
9// `Date.now` method
10// https://tc39.es/ecma262/#sec-date.now
11$({ target: 'Date', stat: true }, {
12 now: function now() {
13 return thisTimeValue(new $Date());
14 }
15});
Note: See TracBrowser for help on using the repository browser.