Our great sponsors
-
ppipe
pipes values through functions, an alternative to using the proposed pipe operator ( |> ) for ES
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I've been experimenting with this via a babel plugin for a while.
The difference in ergonomics is huge, and it's readable too!
At first, I was so excited to try it, I wanted to "simulate it" via some library I developed: https://github.com/egeozcan/ppipe Then I realized it was super hard to add typings for it (I use Typescript nearly exclusively these days).
Anyway, I can't wait this to be adopted by Typescript!
You can type it, take a look at pipe and pipe1 in [0].
[0] https://github.com/preludejs/generator/tree/master/src
How so? Looks like filter builds a new array, and so does map? And both while-loops over the entire input?
https://github.com/lodash/lodash/blob/master/filter.js
https://github.com/lodash/lodash/blob/master/map.js
With a quick search I found this:
https://hackernoon.com/es6-lodash-native-javascript-nodejs-e...
Which seems to indicate little difference?