Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upProposal: add Array.prototype.remove #1322
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ljharb
Oct 9, 2018
Member
Please see https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md#new-feature-proposals for how best to suggest new features.
(As an aside, .filter seems like a much better non-mutating approach here than two O(n) operations)
|
Please see https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md#new-feature-proposals for how best to suggest new features. (As an aside, |
ljharb
closed this
Oct 9, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jolleekin commentedOct 9, 2018
Surprisingly,
Arrayhas always lacked a method to remove an item. To remove an item, one has to useindexOf(orlastIndexOf) andsplice, which is very inconvenient. It would be nice if the following method (written in TypeScript here) could be added toArray.