lepu-test-platform-web/node_modules/core-js/modules/es.date.now.js

10 lines
204 B
JavaScript

var $ = require('../internals/export');
// `Date.now` method
// https://tc39.es/ecma262/#sec-date.now
$({ target: 'Date', stat: true }, {
now: function now() {
return new Date().getTime();
}
});