proposal-array-grouping
proposal-array-from-async
proposal-array-grouping | proposal-array-from-async | |
---|---|---|
19 | 7 | |
513 | 172 | |
- | 2.3% | |
0.0 | 6.6 | |
6 months ago | 5 months ago | |
HTML | HTML | |
MIT License | BSD 3-clause "New" or "Revised" License |
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-array-grouping
-
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
proposal-array-from-async
- Goodbye, Node.js Buffer
-
How async/await runs inside forEach, and why it probably doesn't do what you expect
Others have mentioned for await, which probably isn't ideal in the case of getting users by id since it'll only do one request at a time, which is less efficient. There's a proposal for Array.fromAsync() that'll essentially do the same thing...
-
Updates from the 92nd TC39 meeting
Array.fromAsync: Array.fromAsync is to for await as Array.from is to for.
-
New ECMAScript 23 array features
The proposal is described here.
-
Getting async data using map arrow method
It's only a stage 2 spec, but Array.fromAsync() would handle exactly what you want. Polyfill exists too.
-
Updates from the 87th meeting of TC39
Array.fromAsync: Like Array.from but it converts an async iterable (or a sync iterable of promises) to a promise that will resolve to an array.
-
Updates from the 85th meeting of TC39
Array.fromAsync Like Array.from but for async iterators.
What are some alternatives?
es1995 - ES1995 – The Missing JS Polyfill
proposal-class-static-block - ECMAScript class static initialization blocks
retro-random-number
proposal-relative-indexing-method - A TC39 proposal to add an .at() method to all the basic indexable classes (Array, String, TypedArray)
proposal-regexp-r-escape - Regular Expression `\R` Escape for ECMAScript
streams - Streams Standard
proposal-string-cooked - ECMAScript proposal for String.cooked built-in template tag
nodejs-polars - nodejs front-end of polars
proposal-function-pipe-flow - A proposal to standardize helper functions for serial function application and function composition.
proposal-extractors - Extractors for ECMAScript
proposal-iterator-helpers - Methods for working with iterators in ECMAScript
proposal-arraybuffer-base64 - TC39 proposal for Uint8Array<->base64/hex