Data-Cube adds array-oriented programming to JavaScript. See the project website for examples, usage instructions and the docs. See this Observable notebook for a quick overview of Data-Cube.