* Optimize the map and forEach functions in DenseMatrix.js
* Changed index back to Array from Uint32Array and clone it using index.slice(0) instead of [...index]
* Fixed merge conflicts with the fast callback optimization
* Fixed the documentation for _forEach()
* Fixed _forEach comment and made it return an immutable index array
* Resolved DenseMatrix unit test suggestions
---------
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
* Implement reduceCallback
* Add jsdocs
* implement simplifyCallback in other functions
* Moved recurse to array.js
* Format
* Separate transform callback
* forEach transform
* Renamed applyCallback to simplifyCallback
* Simplified index transform
* renamed to reducedCallback and simplifiedCallback to simpleCallback
* chore: fix linting issue
* Added forEach benchmark
* renamed simplifyCallback to optimizeCallback
---------
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
* fix: disable parser functions in the CLI (security issue)
* fix: ensure `ObjectWrappingMap` doesn't allow deleting unsafe properties (security issue)
* fix: enable using methods and (safe) properties on plain arrays
* docs: update the "Less vulnerable expression parser" section in the docs
* chore: fix typos and linting issues
* chore: keep functions like `simplify` enabled in the CLI
* docs: update the security page
* fix: ensure `ObjectWrappingMap.keys` cannot list unsafe properties
* fix: when overwriting a rawArgs function with a non-rawArgs function it was still called with raw arguments
* docs: fix a typo
* Removed maxArgumentCount in favor of applyCallback
* Making a pure _recurse function
* Added cbrt tests, removed unnecesary changes in functions.
* Fixed main bottleneck
* Restored back function before unintended change
* Fix format
---------
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
* feat: export util functions `isMap`, `isPartitionedMap`, and `isObjectWrappingMap` and improve the documentation of `scope` (see #3150)
* chore: fix broken unit tests
* docs: refine the explanation about scopes