Rule proposal: `prefer-date-now`
See original GitHub issuePrefer Date.now()
over new Date().getTime()
.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
Because Date.now()
is shorter and nicer.
Fail
new Date().getTime();
Pass
Date.now();
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
SEC Proposed Rules
SEC Proposed Rules · Regulation NMS: Minimum Pricing Increments, Access Fees, and Transparency of Better Priced Orders · File No: S7-30-22 · Comments...
Read more >The Most Curious Rule Proposal in Securities and Exchange ...
The Proposed Rules are of three categories: Disclosure Rules, Audit Rules, and Prohibited Activity Rules. These comments relate solely to the ...
Read more >SEC's Proposed Preferential Treatment Rule: Does the Side ...
By Jennifer Kalmanides. On February 9, 2022, the Securities and Exchange Commission (the “SEC”) unveiled a slate of newly proposed rules, ...
Read more >sindresorhus/eslint-plugin-unicorn (Raised $2856.00)
Rule proposal: No default parameter options ... Rule proposal: Don't import `util` Node.js core module directly ... Rule proposal: `prefer-date-now`.
Read more >SEC Revisits Shareholder Proposal Rule | WilmerHale
... amendments to the proxy rules governing proxy voting advice and (b) proposing amendments to the shareholder proposal rule in Rule 14a-8.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+
can’t@papb 👍🏻