main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 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`
|
---|
3 | var $ = require('../internals/export');
|
---|
4 | var uncurryThis = require('../internals/function-uncurry-this');
|
---|
5 |
|
---|
6 | var $Date = Date;
|
---|
7 | var 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.