diff --git a/lib/node_modules/@stdlib/array/base/for-each/README.md b/lib/node_modules/@stdlib/array/base/for-each/README.md
new file mode 100644
index 000000000000..2dd72bee602c
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/README.md
@@ -0,0 +1,159 @@
+
+
+# forEach
+
+> Invoke a callback funcion once for each array element.
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var forEach = require( '@stdlib/array/base/for-each' );
+```
+
+#### forEach( x, fcn\[, thisArg] )
+
+Invokes a callback function once for each array element.
+
+```javascript
+var naryFunction = require( '@stdlib/utils/nary-function' );
+var log = require( '@stdlib/console/log' );
+
+var x = [ 1, 2, 3, 4 ];
+
+forEach( x, naryFunction( log, 1 ) );
+```
+
+The function accepts the following arguments:
+
+- **x**: input array.
+- **fcn**: callback to apply.
+- **thisArg**: callback execution context _(optional)_.
+
+To set the callback function execution context, provide a `thisArg`.
+
+
+
+```javascript
+function accumulate( z ) {
+ this.sum += z;
+}
+
+var x = [ 1, 2, 3, 4 ];
+
+var ctx = {
+ 'sum': 0
+};
+
+forEach( x, accumulate, ctx );
+var sum = ctx.sum;
+// returns 10
+```
+
+The callback function is provided the following arguments:
+
+- **value**: current array element.
+- **index**: current array element index.
+- **arr**: the input array.
+
+
+
+
+
+
+
+
+
+## Notes
+
+- If provided an array-like object having a `forEach` method, the function defers execution to that method and assumes that the method API has the following signature:
+
+ ```text
+ x.forEach( fcn, thisArg )
+ ```
+
+- The function support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]).
+
+
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var naryFunction = require( '@stdlib/utils/nary-function' );
+var log = require( '@stdlib/console/log' );
+var forEach = require( '@stdlib/array/base/for-each' );
+
+var x = discreteUniform( 10, 0, 10, {
+ 'dtype': 'float64'
+});
+
+forEach( x, naryFunction( log, 1 ) );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[@stdlib/array/base/accessor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/accessor
+
+
+
+
diff --git a/lib/node_modules/@stdlib/array/base/for-each/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/for-each/benchmark/benchmark.length.js
new file mode 100644
index 000000000000..999c24b5e348
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/benchmark/benchmark.length.js
@@ -0,0 +1,108 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var zeroTo = require( '@stdlib/array/base/zero-to' );
+var pkg = require( './../package.json' ).name;
+var forEach = require( './../lib' );
+
+
+// FUNCTIONS //
+
+/**
+* Callback invoked for each ndarray element.
+*
+* @private
+* @param {number} value - array element
+* @throws {Error} unexpected error
+*/
+function clbk( value ) {
+ if ( isnan( value ) ) {
+ throw new Error( 'unexpected error' );
+ }
+}
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = zeroTo( len );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ forEach( x, clbk );
+ if ( isnan( x[ i%len ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( x[ i%len ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+
+ f = createBenchmark( len );
+ bench( pkg+':dtype=generic,len='+len, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt b/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt
new file mode 100644
index 000000000000..23f7d781dc22
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt
@@ -0,0 +1,36 @@
+
+{{alias}}( x, fcn[, thisArg] )
+ Invoke a callback function once for each array element.
+
+ The callback function is provided the following arguments:
+
+ - value: current array element.
+ - index: current array element index.
+ - arr: the input array.
+
+ If provided an array-like object having a `forEach` method , the function
+ defers execution to that method and assumes that the method has the
+ following signature:
+
+ x.forEach( clbk, thisArg )
+
+ Parameters
+ ----------
+ x: Array|TypedArray|Object
+ Input array.
+
+ fcn: Function
+ Callback function.
+
+ thisArg: any (optional)
+ Callback function execution context.
+
+ Examples
+ --------
+ > var x = [ 1, 2, 3, 4 ];
+ > function f( v ) { if ( v !== v ) { throw new Error( '...' ); } };
+ > {{alias}}( x, f );
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts
new file mode 100644
index 000000000000..f542aadad06e
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts
@@ -0,0 +1,103 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+import { Collection, AccessorArrayLike } from '@stdlib/types/array';
+
+/**
+* Callback invoked for each array element.
+*/
+type Nullary = ( this: V ) => void;
+
+/**
+* Callback invoked for each array element.
+*
+* @param value - current array element
+*/
+type Unary = ( this: V, value: T ) => void;
+
+/**
+* Callback invoked for each array element.
+*
+* @param value - current array element
+* @param index - current array element index
+*/
+type Binary = ( this: V, value: T, indices: Array ) => void;
+
+/**
+* Callback invoked for each array element.
+*
+* @param value - current array element
+* @param index - current array element index
+* @param arr - input array
+*/
+type Ternary = ( this: V, value: T, indices: Array, arr: U ) => void;
+
+/**
+* Callback invoked for each array element.
+*
+* @param value - current array element
+* @param index - current array element index
+* @param arr - input array
+*/
+type Callback = Nullary | Unary | Binary | Ternary;
+
+/**
+* Invokes a callback function once for each array element.
+*
+* @param x - input array
+* @param fcn - callback function
+* @param thisArg - callback function execution context
+*
+* @example
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var log = require( '@stdlib/console/log' );
+*
+* var x = toAccesorArray( [ 1, 2, 3, 4] );
+*
+* // Apply the callback function:
+* forEach( x, naryFunction( log, 1 ) );
+*/
+declare function forEach( x: AccessorArrayLike, fcn: Callback, V>, thisArg?: ThisParameterType, V>> ): void;
+
+/**
+* Invokes a callback function once for each array element.
+*
+* @param x - input array
+* @param fcn - callback function
+* @param thisArg - callback function execution context
+*
+* @example
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var log = require( '@stdlib/console/log' );
+*
+* var x = [ 1, 2, 3, 4];
+*
+* // Apply the callback function:
+* forEach( x, naryFunction( log, 1 ) );
+*/
+declare function forEach( x: Collection, fcn: Callback, V>, thisArg?: ThisParameterType, V>> ): void;
+
+
+// EXPORTS //
+
+export = forEach;
diff --git a/lib/node_modules/@stdlib/array/base/for-each/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/for-each/docs/types/test.ts
new file mode 100644
index 000000000000..6584204c3ee2
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/docs/types/test.ts
@@ -0,0 +1,102 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+import forEach = require( './index' );
+
+/**
+* Callback function.
+*
+* @param v - array element
+* @throws unexpected error
+*/
+function clbk( v: any ): void {
+ if ( v !== v ) {
+ throw new Error( 'unexpected error' );
+ }
+}
+
+// TESTS //
+
+// The function returns undefined...
+{
+ forEach( [ 1, 2, 3 ], clbk ); // $ExpectType void
+ forEach( new Float64Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Float32Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Int32Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Int16Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Int8Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Uint32Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Uint16Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Uint8Array( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( new Uint8ClampedArray( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+ forEach( toAccessorArray( [ 1, 2, 3 ] ), clbk ); // $ExpectType void
+
+ forEach( [ 1, 2, 3 ], clbk, {} ); // $ExpectType void
+ forEach( new Float64Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Float32Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Int32Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Int16Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Int8Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Uint32Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Uint16Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Uint8Array( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( new Uint8ClampedArray( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+ forEach( toAccessorArray( [ 1, 2, 3 ] ), clbk, {} ); // $ExpectType void
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a collection...
+{
+ forEach( 2, clbk ); // $ExpectError
+ forEach( false, clbk ); // $ExpectError
+ forEach( true, clbk ); // $ExpectError
+ forEach( {}, clbk ); // $ExpectError
+
+ forEach( 2, clbk, {} ); // $ExpectError
+ forEach( false, clbk, {} ); // $ExpectError
+ forEach( true, clbk, {} ); // $ExpectError
+ forEach( {}, clbk, {} ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a function...
+{
+ forEach( [ 1, 2, 3 ], 'abc' ); // $ExpectError
+ forEach( [ 1, 2, 3 ], 2 ); // $ExpectError
+ forEach( [ 1, 2, 3 ], false ); // $ExpectError
+ forEach( [ 1, 2, 3 ], true ); // $ExpectError
+ forEach( [ 1, 2, 3 ], null ); // $ExpectError
+ forEach( [ 1, 2, 3 ], void 0 ); // $ExpectError
+ forEach( [ 1, 2, 3 ], {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], [] ); // $ExpectError
+
+ forEach( [ 1, 2, 3 ], 'abc', {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], 2, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], false, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], true, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], null, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], void 0, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], {}, {} ); // $ExpectError
+ forEach( [ 1, 2, 3 ], [], {} ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ forEach(); // $ExpectError
+ forEach( [ 1, 2, 3 ] ); // $ExpectError
+ forEach( [ 1, 2, 3 ], clbk, {}, 3 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/array/base/for-each/examples/index.js b/lib/node_modules/@stdlib/array/base/for-each/examples/index.js
new file mode 100644
index 000000000000..1550861332e3
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/examples/index.js
@@ -0,0 +1,30 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var naryFunction = require( '@stdlib/utils/nary-function' );
+var log = require( '@stdlib/console/log' );
+var forEach = require( './../lib' );
+
+var x = discreteUniform( 10, 0, 10, {
+ 'dtype': 'float64'
+});
+
+forEach( x, naryFunction( log, 1 ) );
diff --git a/lib/node_modules/@stdlib/array/base/for-each/lib/index.js b/lib/node_modules/@stdlib/array/base/for-each/lib/index.js
new file mode 100644
index 000000000000..7dd6ce1a77a2
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/lib/index.js
@@ -0,0 +1,43 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* Invoke a callback function once for each array element.
+*
+* @module @stdlib/array/base/for-each
+*
+* @example
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var log = require( '@stdlib/console/log' );
+* var forEach = require( '@stdlib/array/base/for-each' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* forEach( x, naryFunction( log, 1 ) );
+*/
+
+// MODULES //
+
+var main = require( './main.js' );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/array/base/for-each/lib/main.js b/lib/node_modules/@stdlib/array/base/for-each/lib/main.js
new file mode 100644
index 000000000000..f890d2074b8f
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/lib/main.js
@@ -0,0 +1,139 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+
+
+// FUNCTIONS //
+
+/**
+* Tests whether an object has a specified method.
+*
+* @private
+* @param {Object} obj - input object
+* @param {string} method - method name
+* @returns {boolean} boolean indicating whether an object has a specified method
+*
+* @example
+* var bool = hasMethod( [], 'forEach' );
+* // returns true
+*
+* @example
+* var bool = hasMethod( [], 'beep' );
+* // returns false
+*/
+function hasMethod( obj, method ) {
+ return ( typeof obj[ method ] === 'function' );
+}
+
+/**
+* Invokes a callback function once for each array element.
+*
+* @private
+* @param {Collection} x - input array
+* @param {Function} clbk - callback function
+* @param {*} thisArg - callback execution context
+* @returns {void}
+*
+* @example
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var log = require( '@stdlib/console/log' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* forEach( x, naryFunction( log, 1 ) );
+*/
+function internal( x, clbk, thisArg ) {
+ var i;
+ for ( i = 0; i < x.length; i++ ) {
+ clbk.call( thisArg, x[ i ], i, x );
+ }
+}
+
+/**
+* Invokes a callback function once for each array element.
+*
+* @private
+* @param {Collection} x - input array
+* @param {Function} clbk - callback function
+* @param {*} thisArg - callback execution context
+* @returns {void}
+*
+* @example
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var log = require( '@stdlib/console/log' );
+*
+* var x = arraylike2object( toAccessorArray( [ 1, 2, 3, 4 ] ) );
+*
+* accessors( x, naryFunction( log, 1 ) );
+*/
+function accessors( x, clbk, thisArg ) {
+ var data;
+ var get;
+ var i;
+
+ data = x.data;
+ get = x.accessors[ 0 ];
+
+ for ( i = 0; i < data.length; i++ ) {
+ clbk.call( thisArg, get( data, i ), i, data );
+ }
+}
+
+
+// MAIN //
+
+/**
+* Invokes a callback function once for each array element.
+*
+* @private
+* @param {Collection} x - input array
+* @param {Function} clbk - callback function
+* @param {*} thisArg - callback execution context
+* @returns {void}
+*
+* @example
+* var naryFunction = require( '@stdlib/utils/nary-function' );
+* var log = require( '@stdlib/console/log' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* forEach( x, naryFunction( log, 1 ) );
+*/
+function forEach( x, clbk, thisArg ) {
+ var obj;
+ if ( hasMethod( x, 'forEach' ) ) {
+ return x.forEach( clbk, thisArg );
+ }
+ obj = arraylike2object( x );
+ if ( obj.accessorProtocol ) {
+ return accessors( obj, clbk, thisArg );
+ }
+ return internal( x, clbk, thisArg );
+}
+
+
+// EXPORTS //
+
+module.exports = forEach;
diff --git a/lib/node_modules/@stdlib/array/base/for-each/package.json b/lib/node_modules/@stdlib/array/base/for-each/package.json
new file mode 100644
index 000000000000..a2201fc9468f
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/package.json
@@ -0,0 +1,64 @@
+{
+ "name": "@stdlib/array/base/for-each",
+ "version": "0.0.0",
+ "description": "Invoke a callback function once for each array element.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "lib": "./lib",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdtypes",
+ "types",
+ "data",
+ "structure",
+ "array",
+ "generic",
+ "callback",
+ "foreach",
+ "for-each",
+ "map"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/array/base/for-each/test/test.js b/lib/node_modules/@stdlib/array/base/for-each/test/test.js
new file mode 100644
index 000000000000..f535a892faa2
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/for-each/test/test.js
@@ -0,0 +1,128 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var AccessorArray = require( '@stdlib/array/base/accessor' );
+var Float64Array = require( '@stdlib/array/float64' );
+var forEach = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof forEach, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function applies a callback to each indexed element in an input array (generic)', function test( t ) {
+ var sum;
+ var x;
+
+ x = [ 1, 2, 3, 4 ];
+ sum = 0;
+
+ forEach( x, clbk );
+
+ t.strictEqual( sum, 10, 'returns expected value' );
+ t.end();
+
+ function clbk( v ) {
+ sum += v;
+ }
+});
+
+tape( 'the function applies a callback to each indexed element in an input array (typed array)', function test( t ) {
+ var sum;
+ var x;
+
+ x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+ sum = 0.0;
+
+ forEach( x, clbk );
+
+ t.strictEqual( sum, 10.0, 'returns expected value' );
+ t.end();
+
+ function clbk( v ) {
+ sum += v;
+ }
+});
+
+tape( 'the function applies a callback to each indexed element in an input array (accessors)', function test( t ) {
+ var sum;
+ var x;
+
+ x = new AccessorArray( [ 1.0, 2.0, 3.0, 4.0 ] );
+ sum = 0.0;
+
+ forEach( x, clbk );
+
+ t.strictEqual( sum, 10.0, 'returns expected value' );
+ t.end();
+
+ function clbk( v ) {
+ sum += v;
+ }
+});
+
+tape( 'the function applies a callback to each indexed element in an input array (array-like object)', function test( t ) {
+ var sum;
+ var x;
+
+ x = {
+ 'length': 4,
+ '0': 1,
+ '1': 2,
+ '2': 3,
+ '3': 4
+ };
+ sum = 0;
+
+ forEach( x, clbk );
+
+ t.strictEqual( sum, 10, 'returns expected value' );
+ t.end();
+
+ function clbk( v ) {
+ sum += v;
+ }
+});
+
+tape( 'the function supports providing an execution context', function test( t ) {
+ var ctx;
+ var x;
+
+ ctx = {
+ 'sum': 0
+ };
+ x = [ 1, 2, 3, 4 ];
+
+ forEach( x, clbk, ctx );
+
+ t.strictEqual( ctx.sum, 10, 'returns expected value' );
+ t.end();
+
+ function clbk( v ) {
+ this.sum += v; // eslint-disable-line no-invalid-this
+ }
+});