You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
373 B
15 lines
373 B
2 years ago
|
// TODO: Remove from `core-js@4`
|
||
|
var $ = require('../internals/export');
|
||
|
var uncurryThis = require('../internals/function-uncurry-this');
|
||
|
|
||
|
var $Date = Date;
|
||
|
var getTime = uncurryThis($Date.prototype.getTime);
|
||
|
|
||
|
// `Date.now` method
|
||
|
// https://tc39.es/ecma262/#sec-date.now
|
||
|
$({ target: 'Date', stat: true }, {
|
||
|
now: function now() {
|
||
|
return getTime(new $Date());
|
||
|
}
|
||
|
});
|