proposal-flatMap
proposal for flatten and flatMap on arrays (by tc39)
lachlan-miller.me
My own website (by lmiller1990)
proposal-flatMap | lachlan-miller.me | |
---|---|---|
2 | 1 | |
214 | 0 | |
- | - | |
0.0 | 6.3 | |
over 2 years ago | 7 months ago | |
HTML | HTML | |
- | - |
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-flatMap
Posts with mentions or reviews of proposal-flatMap.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-10.
- SmooshGate
-
Pipeline Operator and Partial Application - Functional Programming in JavaScript
If you're doing a series of mutations specific to a custom type in that fashion, then there isn't much benefit. But imagine you want to chain operations on an existing type, whether it's a built-in like String, or a type introduced by a different package like sqlite.Database. To use method chaining you'd have to monkey-patch them, which can lead to all sorts of problems: colliding with other packages that want to monkey-patch the same types, confusing the reader when unfamiliar and seemingly undocumented methods appear (why does the SQLite documentation not mention this sqlite.Database#drop method? Which of my installed packages added that? ), your package breaking when the thing you're monkey-patching changes its API, altering object iterations, etc. The troubles with Prototype.js and MooTools in the '00s showed some of the headaches monkey-patching can lead to when it comes to JS especially, where users expect ever-changing browsers to work with 25-year-old code. (I still support changing flatten to smoosh, though.) You might subclass the existing type or encapsulate it in a new type, but then you're potentially breaking the user's typechecking, preventing the use of any other packages that want to do the same thing, escaping tree shaking, and becoming incompatible with unexpected types (what if the user already subclassed sqlite.Database themselves, and want to apply your transformation to that?).
lachlan-miller.me
Posts with mentions or reviews of lachlan-miller.me.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-20.
-
Pipeline Operator and Partial Application - Functional Programming in JavaScript
Updated my comment above - you can also read the article in the source on GH: https://github.com/lmiller1990/lachlan-miller.me/blob/master/markdown/esnext-pipelines.md
What are some alternatives?
When comparing proposal-flatMap and lachlan-miller.me you can also consider the following projects:
es1995 - ES1995 – The Missing JS Polyfill