Skip to content

Conversation

@yossydev
Copy link
Contributor

@yossydev yossydev commented Mar 25, 2025

Description

I changed all instances of deleteCount to skipCount in the documentation for toSpliced.

Motivation

In the first place, the ECMA-262 specification for toSpliced actually uses skipCount, not deleteCount.
The word “delete” implies mutation, which is why it was likely avoided. (tc39/ecma262#2997 (comment))

To align with the ECMA spec, and because “skip” is semantically more accurate than “delete” in this context, I believe it would be better to update it.

Additional details

Also, it seems that the term deleteCount was used during the initial proposal stage of this method.
(https://github.com/tc39/proposal-change-array-by-copy?tab=readme-ov-file#overview)

Related issues and pull requests

@yossydev yossydev requested a review from a team as a code owner March 25, 2025 16:05
@yossydev yossydev requested review from Josh-Cena and removed request for a team March 25, 2025 16:05
@github-actions github-actions bot added Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Mar 25, 2025
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thank you

@github-actions
Copy link
Contributor

@Josh-Cena Josh-Cena merged commit d37e624 into mdn:main Mar 25, 2025
8 checks passed
pepelsbey pushed a commit to pepelsbey/mdn-content that referenced this pull request Mar 26, 2025
…o skipCount. (mdn#38805)

* chore: change deleteCount to skipCount

* Update index.md

---------

Co-authored-by: Joshua Chen <[email protected]>
bramus pushed a commit to bramus/mdn-content that referenced this pull request Apr 1, 2025
…o skipCount. (mdn#38805)

* chore: change deleteCount to skipCount

* Update index.md

---------

Co-authored-by: Joshua Chen <[email protected]>
cssinate pushed a commit to cssinate/content that referenced this pull request Apr 11, 2025
…o skipCount. (mdn#38805)

* chore: change deleteCount to skipCount

* Update index.md

---------

Co-authored-by: Joshua Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants