Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES2023: Change Array by copy #1667

Closed
1 task done
azu opened this issue May 12, 2023 · 8 comments · Fixed by #1679
Closed
1 task done

ES2023: Change Array by copy #1667

azu opened this issue May 12, 2023 · 8 comments · Fixed by #1679
Labels
Lang: ES2023 ECMAScript 2023

Comments

@azu
Copy link
Collaborator

azu commented May 12, 2023

Change Array by copy

これは対応しないといけない。
詳細はIssueを切って考える

  • Array.prototype.toReversed() -> Array
  • Array.prototype.toSorted(compareFn) -> Array
  • Array.prototype.toSpliced(start, deleteCount, ...items) -> Array
  • Array.prototype.with(index, value) -> Array

配列 · JavaScript Primer #jsprimer

方向としては

  • 非破壊、破壊を手前にして、それぞれを並べて書く
  • 破壊をおいてから、非破壊という概念としてまとめて書く

Originally posted by @azu in #1658 (comment)

Blocker

@azu azu added the Lang: ES2023 ECMAScript 2023 label May 12, 2023
@azu
Copy link
Collaborator Author

azu commented May 12, 2023

@azu
Copy link
Collaborator Author

azu commented Jun 20, 2023

Array.prototype.toSorted() - JavaScript | MDN

Firefoxがまだ実装していない

@azu azu mentioned this issue Jun 29, 2023
9 tasks
@azu
Copy link
Collaborator Author

azu commented Jul 5, 2023

Firefox 115 for developers - Mozilla | MDN
Firefox 115でサポート

@azu
Copy link
Collaborator Author

azu commented Jul 9, 2023

@azu

This comment was marked as duplicate.

@azu
Copy link
Collaborator Author

azu commented Jul 9, 2023

配列、Record/Tuple、Iterator Helperがこの数年でまとまって変わるので、
大まかな方針を考えた。

これはそれぞれ次の章に対応する

@azu
Copy link
Collaborator Author

azu commented Jul 10, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lang: ES2023 ECMAScript 2023
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant