Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .agents/tools/programming/modern-javascript-skill/es2016-es2017.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# ES2016 & ES2017 Features

Array.includes(), exponentiation operator, async/await, Object.values(), Object.entries(), String.padStart(), String.padEnd(), Object.getOwnPropertyDescriptors(), trailing commas in functions, SharedArrayBuffer, Atomics.

## ES2016 (ES7)

The smallest ECMAScript release with just two features.

### Array.prototype.includes()

Check if array contains a value (handles `NaN` correctly).
Expand Down Expand Up @@ -42,14 +38,10 @@ let x = 2;
x **= 3; // x = 8
```

---

## ES2017 (ES8)

### Async Functions

Syntactic sugar over Promises for cleaner asynchronous code.

```javascript
// ❌ Promise chains
function fetchUser(id) {
Expand Down Expand Up @@ -177,8 +169,6 @@ greet(

### SharedArrayBuffer and Atomics

Low-level multi-threading primitives (advanced).

```javascript
// Create shared memory
const buffer = new SharedArrayBuffer(16);
Expand Down
Loading