`Array.prototype.at` docs use "code unit" instead of "item"

Open Beginner friendly
#63,722 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
91/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
documentation

Research direction

Start in src/lib/es2022.array.d.ts at the @param documentation for Array.prototype.at, then compare it with src/lib/es2022.string.d.ts. Update the array documentation to use the appropriate term for an array value, and verify the declaration-file documentation remains consistent.

Written by the indexing model from the issue text.

Description

Domain: lib.d.ts Help Wanted
Acknowledgement
  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment

The @param tag here in the docs for Array.prototype.at uses the term "code unit" instead of the more appropriate term "item" or "element". It was presumably copied from the docs for String.prototype.at here. I'd make a PR but there was an explicit recommendation not to do that for typos.

Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 15h
Merged PRs (30d)
106

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.

More from microsoft/TypeScript

All issues in microsoft/TypeScript

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.