|
|
|
|
|
by laurent123456
1517 days ago
|
|
I wonder if someone tried to use plain JS as a filtering language? It would be more verbose but it would be easy to remember. For example: [1,2,3] | js "out = 0; for (const n of this) out += n"
That would print "6". `out` would be a special variable you write to to print the result, and `this` would be the input. |
|
[1]: https://github.com/raine/ramda-cli