Skip to content
Advertisement

Tag: ecmascript-next

Why So Many IANA Time Zones Names?

Javascript allows you to see what time it is in another timezone if you specify the IANA given name of that timezone. For example: Below you can see that IANA provides multiple names within each general timezone: Why is that necessary? For example, both America/Detroit and America/New_York are (generally) in the Eastern Time Zone. Why don’t these two locations share

JavaScript array .reduce with async/await

Seem to be having some issues incorporating async/await with .reduce(), like so: The data object is logged before the this.store completes… I know you can utilise Promise.all with async loops, but does that apply to .reduce()? Answer The problem is that your accumulator values are promises – they’re return values of async functions. To get sequential evaluation (and all but

Advertisement