4 ms·
Libraries like underscore are possible because of JS having composable primitives. JS has many many warts, and the for-loop is a good example of this. And the
by jampekka 1y ago
Libraries like underscore are possible because of JS having composable primitives.
JS has many many warts, and the for-loop is a good example of this. And the _.each is a good example how the core JS allows for working around it.
- bvrmn 1y agoBut underscore is literally a bunch of functions taking lambdas. Python also has functions and lambdas. [1] shows it could provide the same interface. I don't get what composable primitives JS has. [1]: https://pydash.readthedocs.io/en/latest/ https://pydash.readthedocs.io/en/latest/