Try it
Add the skill to a bot, then ask your Chief of Staff:
“Use the JavaScript Idioms skill on this: [describe the job, or paste your notes].”
Optional chaining (?.) short-circuits at the first null or undefined and returns undefined for the entire chain. Nullish coalescing (??) triggers the right side only when the left side is null or undefined -- not for 0, "", false, or NaN.
What it covers
- Pattern Applied