Back to feed
Dev.to
Dev.to
5/9/2026
Shipped v2 of go-js-array-methods — JS-style Filter, Map, Reduce for Go slices

Shipped v2 of go-js-array-methods — JS-style Filter, Map, Reduce for Go slices

Short summary

go-js-array-methods v2 adds 30+ JavaScript-style array methods to Go with generics support and immutable-by-default semantics. Both functional and chainable APIs available, with honest design trade-offs documented. Directly applicable for developers frequently switching between JavaScript and Go.

  • 30+ methods (Filter, Map, Reduce, etc.) mirroring JS Array.prototype
  • Generics-powered, immutable by default, chainable syntax available
  • Clear trade-offs documented: no Sort reimplementation, Go's slices.Sort preferred

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Explore more