Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Write robust JavaScript with async patterns, type coercion handling, and modern ES2023+ features.
Write robust JavaScript with async patterns, type coercion handling, and modern ES2023+ features.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
User needs JavaScript expertise โ from core language features to modern patterns. Agent handles async/await, closures, module systems, and ES2023+ features.
TopicFileAsync patternsasync.mdType coercion rulescoercion.mdArray and object methodscollections.mdModern ES featuresmodern.md
== coerces: "0" == false is true โ use === always NaN !== NaN โ use Number.isNaN(), not === NaN typeof null === "object" โ check === null explicitly Objects compare by reference โ {} === {} is false
Regular functions: this depends on call site โ lost in callbacks Arrow functions: this from lexical scope โ use for callbacks setTimeout(obj.method) loses this โ use arrow or .bind() Event handlers: this is element in regular function, undefined in arrow (if no outer this)
Loop variable captured by reference โ let in loop or IIFE to capture value var hoisted to function scope โ creates single binding shared across iterations Returning function from loop: all share same variable โ use let per iteration
sort(), reverse(), splice() mutate original โ use toSorted(), toReversed(), toSpliced() (ES2023) push(), pop(), shift(), unshift() mutate โ spread [...arr, item] for immutable delete arr[i] leaves hole โ use splice(i, 1) to remove and reindex Spread and Object.assign are shallow โ nested objects still reference original
Forgetting await returns Promise, not value โ easy to miss without TypeScript forEach doesn't await โ use for...of for sequential async Promise.all fails fast โ one rejection rejects all, use Promise.allSettled if need all results Unhandled rejection crashes in Node โ always .catch() or try/catch with await
0.1 + 0.2 !== 0.3 โ floating point, use integer cents or toFixed() for display parseInt("08") works now โ but parseInt("0x10") is 16, watch prefixes Number("") is 0, Number(null) is 0 โ but Number(undefined) is NaN Large integers lose precision over 2^53 โ use BigInt for big numbers
for...in iterates keys (including inherited) โ use for...of for values for...of on objects fails โ objects aren't iterable, use Object.entries() Object.keys() skips non-enumerable โ Reflect.ownKeys() gets all including symbols
[] + [] is "" โ arrays coerce to strings [] + {} is "[object Object]" โ object toString {} + [] is 0 in console โ {} parsed as block, not object "5" - 1 is 4, "5" + 1 is "51" โ minus coerces, plus concatenates
"use strict" at top of file or function โ catches silent errors Implicit globals throw in strict โ x = 5 without declaration fails this is undefined in strict functions โ not global object Duplicate parameters and with forbidden
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.