<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw" -->

---
title: JavaScript finally has Set intersection, and 15 other...
description: A walkthrough of what actually shipped in ES2025 and what's newly approved for ES2026, including Set intersection/union/difference methods, iterator helpers,...
canonical: https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaScript finally has Set intersection, and 15 other things you missed. | daily.dev
og:description: A walkthrough of what actually shipped in ES2025 and what's newly approved for ES2026, including Set intersection/union/difference methods, iterator helpers,...
og:url: https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw
og:image: https://api.daily.dev/og/posts/hqcFxCFRW.png
og:image:alt: JavaScript finally has Set intersection, and 15 other things you missed.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript finally has Set intersection, and 15 other things you missed.

**[JavaScript Developer](https://daily.dev/sources/jsdeveloper)** · [@kiriakiangelakis](https://daily.dev/kiriakiangelakis) · 1 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of what actually shipped in ES2025 and what's newly approved for ES2026, including Set intersection/union/difference methods, iterator helpers, Map.getOrInsert, Array.fromAsync, Math.sumPrecise, Error.isError, RegExp.escape, and native Uint8Array base64/hex conversion. Temporal, the using declaration, and import defer didn't make the ES2026 cut but have mature polyfills and browser support already. Each feature includes a before/after code snippet and browser support notes. The piece also flags that AI coding assistants were trained before these features shipped, so they default to outdated JavaScript patterns, and offers a ruleset to drop into Claude Code, .cursorrules, or Copilot instructions to correct this.

## Content

ES2025 is done and TC39 has approved the ES2026 candidate, and a good chunk of it is already in your browser. Neciu Dan walks through what landed and what it replaces: iterator helpers, the new Set methods, Map.getOrInsert, and Array.fromAsync, plus Math.sumPrecise, Error.isError, RegExp.escape, and native Uint8Array base64/hex. Temporal, using, and import defer missed the ES2026 cut, but the polyfills and browser implementations are mature enough to use today.

Every feature comes with a before/after snippet and browser support notes. The last section is the useful twist: models were trained before any of this shipped, so your AI assistant keeps writing 2022 JavaScript — there's a ready-made ruleset you can drop into Claude Code, .cursorrules, or Copilot instructions to fix that. [What's actually new in JavaScript (and what's coming next).](https://neciudan.dev/whats-new-in-javascript)

## Similar posts on daily.dev

- [What's actually new in JavaScript \(and what's coming next\)](https://daily.dev/posts/what-s-actually-new-in-javascript-and-what-s-coming-next--nffnrggpd) · Neciu Dan · 66 upvotes · 5 comments
- [ES2025 Features You Should Actually Use](https://daily.dev/posts/es2025-features-you-should-actually-use-v4tpe3tjs) · The T-Shaped Dev · 13 upvotes · 0 comments
- [ES2026 Is Here: 10 Features That Halve Your JavaScript](https://daily.dev/posts/es2026-is-here-10-features-that-halve-your-javascript-jyussl4hc) · Medium · 3 upvotes · 1 comments
- [ES2026 JavaScript Features: Complete Developer Guide](https://daily.dev/posts/es2026-javascript-features-complete-developer-guide-mp5blizq1) · Alex CloudStar · 103 upvotes · 11 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw","headline":"JavaScript finally has Set intersection, and 15 other things you missed.","text":"A walkthrough of what actually shipped in ES2025 and what's newly approved for ES2026, including Set intersection/union/difference methods, iterator helpers, Map.getOrInsert, Array.fromAsync, Math.sumPrecise, Error.isError, RegExp.escape, and native Uint8Array base64/hex conversion. Temporal, the using declaration, and import defer didn't make the ES2026 cut but have mature polyfills and browser support already. Each feature includes a before/after code snippet and browser support notes. The piece also flags that AI coding assistants were trained before these features shipped, so they default to outdated JavaScript patterns, and offers a ruleset to drop into Claude Code, .cursorrules, or Copilot instructions to correct this.","url":"https://daily.dev/posts/javascript-finally-has-set-intersection-and-15-other-things-you-missed--hqcfxcfrw","datePublished":"2026-08-26T05:34:14.225Z","dateModified":"2026-08-26T05:34:34.450Z","author":{"@type":"Person","name":"kiriaki angelakis","url":"https://daily.dev/kiriakiangelakis","image":"https://media.daily.dev/image/upload/s--o-rGj93Y--/f_auto/v1772089926/avatars/avatar_KL8jRghYayum4dF2CvgQ5?_a=BAMAMiiu0","description":"I am a Bug hunter.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":110}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/jsdeveloper","name":"JavaScript Developer"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JavaScript Developer","item":"https://daily.dev/squads/jsdeveloper"},{"@type":"ListItem","position":3,"name":"JavaScript finally has Set intersection, and 15 other things you missed."}]}
```

