Skip to content
 
 

Repository files navigation

ES2026 JavaScript Exploration

This repository explores upcoming JavaScript (ECMAScript 2026) features and practical modernizations.

Feature: Replace Array.prototype.reduce with Math.sumPrecise

This exploration focuses on updating numerical reduction patterns across the codebase by using a precise summation helper instead of raw reduce.

Previously:

const arr = [0.1, 0.2, 0.3];
arr.reduce((a, b) => a + b) // 0.6000000000000001

Now:

Math.sumPrecise([0.1, 0.2, 0.3]) // 0.6

This feature is intended to reduce floating-point rounding errors and improve numeric stability in JavaScript projects.

TypeScript Build Exploration

This repository includes a TypeScript build exploration under ts-build/.

The sample project demonstrates:

  • TypeScript decorators with experimentalDecorators
  • Bundling with esbuild
  • Serving the output with a simple local development server

Run the demo from ts-build/ using the provided scripts in ts-build/package.json.

Update => Outdated: Exploring jsonModules in ES2025

This commit focuses on the new jsonModules feature introduced in ES2025.

git checkout jsonModules

Related Proposals

  • Iterator Helpers Proposal (TC39-Stage 4) – Adds handy methods like map, filter, take, and more to JavaScript's Iterator prototype via a standard-stage TC39 proposal. (GitHub repo)

Angular Framework Fix (Arrow Functions in Templates)

The following links document a developer-led exploration carried out as part of regular learning, covering an issue related to arrow functions in Angular templates and how it was fixed in the Angular framework.

About

JavaScript, one commit at a time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages