I want to manipulate arrays in JS in a similar fashion with Java Streams.
So
arr.map().map().map()
Will do only one iteration.
How can I achieve that without a library?
This is similar to LINQ in DotNet. And there are a lot of library that do that for you already.
You might want to check out linq.js. It follows the .NET lambda syntax and looks to be well integrated in a Microsoft environment.
Pros
Cons
Others Similarly Library are:
You can also check Rx for Javascript
For a very nice, complete set of functional list operations, try: http://osteele.com/sources/javascript/functional/
For more information on how to use just javascript to manipute your list, Please check https://gist.github.com/DanDiplo/30528387da41332ff22b