proposal-upsert
ECMAScript Proposal, specs, and reference implementation for Map.prototype.upsert (by tc39)
proposal-array-grouping
A proposal to make grouping of array items easier (by tc39)
proposal-upsert | proposal-array-grouping | |
---|---|---|
5 | 19 | |
165 | 513 | |
0.0% | - | |
10.0 | 0.0 | |
over 1 year ago | 6 months ago | |
HTML | HTML | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-upsert
Posts with mentions or reviews of proposal-upsert.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-01.
- Map.prototype.emplace
-
When using 'new Map()' object, what is the simplest way to implement checking if a value exists then incrementing it by 1? (If not found, initialize to 0)
There's a stage 2 proposal for map.emplace() that's exactly what you're looking for:
-
Set methods proposal reaches stage 3
I'm also looking forward to map.emplace() and arr.group() and iterator helpers.
-
Is there a concise way to set a key's initial value in a Map object?
Sounds like you want emplace?
-
[AskJS] What are still present issues in contemporary (2022) JavaScript?
There's a proposal to give [emplace to maps](https://github.com/tc39/proposal-upsert).
proposal-array-grouping
Posts with mentions or reviews of proposal-array-grouping.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-19.
-
TC39: Add Object.groupBy and Map.groupBy
Global iterator type is coming: https://github.com/tc39/proposal-iterator-helpers
But a method named `groupBy` on iterators traditionally means a different thing: https://github.com/tc39/proposal-array-grouping/issues/51#is...
Global iterable type it's too late for, since there's many extant iterables in the language and on the web which don't have it in their prototype chain and can't reasonably be changed.
-
What's New in Node.js 21
Array grouping to combine like data into groups using Object.groupBy() and Map.groupBy().
-
Updates from the 97th TC39 meeting
Array Grouping: A proposal to make grouping of array items easier.
-
Snap.js - A competitor to Lodash
They are coming out with array.group() soon, which is supposed to also fulfil the use-case of partitioning :) - https://github.com/tc39/proposal-array-grouping.
-
[AskJS] Is JavaScript missing some built-in methods?
https://github.com/tc39/proposal-array-grouping for those curious
-
Set methods proposal reaches stage 3
I'm also looking forward to map.emplace() and arr.group() and iterator helpers.
-
SmooshGate
At the end of the day, it comes down to whether browser vendors are willing to ship the feature even though it breaks said websites, and they do have visitor data to back those decisions. If the rule was "never break any website ever", you'd be able to block proposals you don't personally like by crafting a website that "gets broken" by that proposal.
At least in the array grouping proposal, they did evaluate amount and popularity of possibly breaking sites, before eventually renaming the method from .groupBy to .group
https://github.com/tc39/proposal-array-grouping/issues/37
-
New ECMAScript 23 array features
The proposal is described here.
-
how can I split an array into multiple arrays based on a property?
Remarkably, this is now a TC39 proposal.
-
Upcoming ECMAScript features I'm excited about
Proposal, Polyfill