processing / processing/p5.js

splice documentation change?

Open
#7,335 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Discussion
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Topic

I find it confusing that splice is used to add and also remove something from an array. I know this is a Javascript problem not a P5 problem, but the p5 documentation only describes the adding feature, not the removing.
It would be great if the documentation could include this.
splice(listName, 0, 1) // adds "0" to the listName array at position 1.
listName.splice(0, 1); //removes one item from the array at position 0.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the p5.js documentation entry for splice and review how it currently describes adding items. Update the documentation to cover removing items as well, using the issue's examples as the requested behavior. Done means the splice documentation explains both operations clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.