ai-agent

Proposal Optional Chaining Assignment

`a?.b = c` proposal
198 stars3 forksUpdated 1/23/2024100% free · open source
What it does

The proposal-optional-chaining-assignment tool allows you to assign a value to a property of an object using optional chaining, making it easier to handle nested objects and avoid null pointer exceptions.

When to use it
  • When working with deeply nested objects and you need to assign a value to a property that may not exist
  • When you want to simplify your code and reduce the number of null checks
  • When you're using a library or framework that returns nested objects and you need to assign values to properties within those objects
Ready-to-paste prompt
const obj = { a: { b: null } }; obj.a?.b = 'value'; console.log(obj.a.b);
Heads up: Make sure your environment supports the `?.` syntax, as it is not supported in older browsers or Node.js versions, and you may need to use a transpiler like Babel to use this syntax in older environments
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

⚡ Runs out of the box

A prompt/skill package — nothing to install beyond adding it to your AI tool.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/proposal-optional-chaining-assignment && curl -fsSL https://workflowstacks.com/api/skills/proposal-optional-chaining-assignment/claude-skill -o ~/.claude/skills/proposal-optional-chaining-assignment/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Proposal Optional Chaining Assignment works
Codeflow
Free to inspect

Proposal Optional Chaining Assignment is a documents-only repository (1 doc file) — something you read, not something you run. There is nothing to install. Last commit 32 months ago, MIT license.

Size
Documents only
1 document · 2 min skim
Setup
Nothing to install
A guide / curated list. Just read it and follow the links.
Runs on
Nowhere — you read it
A reading resource, not a program.
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
What's in each folder
.github/CI / automation (GitHub Actions)2 files
READMECI checksMIT licenseLast update 32 mo ago
Quick Actions
Details
Creator
tc39
Category
ai-agent
Published
6/30/2023

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.