* Returns a function that executes method on a new Date instance. This is a * byte saving hack. * * @param {string} method * @return {!SyncResolverDef}
(method)
| 49 | * @return {!SyncResolverDef} |
| 50 | */ |
| 51 | function dateMethod(method) { |
| 52 | return () => new Date()[method](); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Returns a function that returns property of screen. This is a byte saving |