ai-agent

Proposal Change Array By Copy

Provides additional methods on Array.prototype and TypedArray.prototype to enable changes on the array by returning a new copy of it with the change.
500 stars18 forksHTMLUpdated 8/1/2023100% free · open source
What it does

The proposal-change-array-by-copy tool provides additional methods on Array.prototype and TypedArray.prototype to enable changes on the array by returning a new copy of it with the change, allowing for immutable array modifications.

When to use it
  • When working with immutable data structures and needing to modify arrays without changing the original
  • When requiring a more functional programming approach to array modifications
  • When needing to track changes or maintain a history of array modifications
Ready-to-paste prompt
Try the following example: `let arr = [1, 2, 3]; let newArr = arr.addTo(1, 4); console.log(newArr); // [1, 2, 3, 4]`
Heads up: Note that this proposal is not yet fully implemented in all JavaScript environments and may require a specific version of Node.js or a transpiler like Babel to work correctly
Saves to your device
Use with Claude
New

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

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/proposal-change-array-by-copy && curl -fsSL https://workflowstacks.com/api/skills/proposal-change-array-by-copy/claude-skill -o ~/.claude/skills/proposal-change-array-by-copy/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 Change Array By Copy works
Codeflow
Free to inspect

Proposal Change Array By Copy is a small HTML project (~700 lines across 4 code files). Setup is light: install Node.js, run one command. Last commit 38 months ago, no license file, has a test suite.

Size
Small codebase
~700 lines · 4 code files · 6 min skim
Setup
Light setup
Install Node.js, run one command.
Runs on
Node.js
No API keys detected
HTML 53%JavaScript 47%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    package.json
    Dependencies and the commands it exposes
What's in each folder
.github/CI / automation (GitHub Actions)2 files
READMEHas testsThin docsCI checksNo licenseLast update 38 mo agoArchived — read only
Quick Actions
Details
Creator
tc39
Language
HTML
Category
ai-agent
Published
3/24/2021

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