diff --git a/lib/node_modules/@stdlib/array/base/to-filled/README.md b/lib/node_modules/@stdlib/array/base/to-filled/README.md
new file mode 100644
index 000000000000..6f707c503aa5
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/README.md
@@ -0,0 +1,163 @@
+
+
+# toFilled
+
+> Return a new array with all elements within a specified range replaced with a provided value.
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var toFilled = require( '@stdlib/array/base/to-filled' );
+```
+
+#### toFilled( x, value, start, end )
+
+Returns a new array with all elements within a specified range replaced with a provided value.
+
+```javascript
+var x = [ 1, 2, 3, 4 ];
+
+var out = toFilled( x, 5, 1, 3 );
+// returns [ 1, 5, 5, 4 ]
+
+out = toFilled( x, 6, -3, -1 );
+// returns [ 1, 6, 6, 4 ]
+```
+
+The function accepts the following arguments:
+
+- **x**: an input array.
+- **value**: fill value.
+- **start**: starting index (inclusive).
+- **end**: ending index (exclusive).
+
+#### toFilled.assign( x, value, start, end, out, stride, offset )
+
+Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+
+```javascript
+var x = [ 1, 2, 3, 4 ];
+
+var out = [ 0, 0, 0, 0 ];
+var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+// returns [ 1, 5, 5, 4 ]
+
+var bool = ( arr === out );
+// returns true
+```
+
+The function accepts the following arguments:
+
+- **x**: an input array.
+- **value**: fill value.
+- **start**: starting index (inclusive).
+- **end**: ending index (exclusive).
+- **out**: output array.
+- **stride**: output array stride.
+- **offset**: output array offset.
+
+
+
+
+
+
+
+
+
+## Notes
+
+- Negative indices are resolved relative to the last array element, with the last element corresponding to `-1`.
+
+
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var logEachMap = require( '@stdlib/console/log-each-map' );
+var naryFunction = require( '@stdlib/utils/nary-function' );
+var papply = require( '@stdlib/utils/papply' );
+var toFilled = require( '@stdlib/array/base/to-filled' );
+
+// Define an array:
+var opts = {
+ 'dtype': 'generic'
+};
+var x = discreteUniform( 10, -100, 100, opts );
+
+// Define an array containing random fill values:
+var values = discreteUniform( 100, -10000, 10000, opts );
+
+// Define parallel arrays containing random fill ranges:
+var starts = discreteUniform( values.length, 0, x.length-1, opts );
+var ends = discreteUniform( values.length, 1, x.length, opts );
+
+// Randomly fill ranges of the input array:
+logEachMap( 'fill with %d in [%d, %d) => x = [%s]', values, starts, ends, naryFunction( papply( toFilled, x ), 3 ) );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.assign.length.js b/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.assign.length.js
new file mode 100644
index 000000000000..a4b6763f78e6
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.assign.length.js
@@ -0,0 +1,99 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 pow = require( '@stdlib/math/base/special/pow' );
+var isArray = require( '@stdlib/assert/is-array' );
+var ones = require( '@stdlib/array/base/ones' );
+var zeros = require( '@stdlib/array/base/zeros' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var toFilled = require( './../lib' );
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len );
+ var x = ones( len );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var v;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ v = toFilled.assign( x, i, 0, len, out, 1, 0 );
+ if ( typeof v !== 'object' ) {
+ b.fail( 'should return an array' );
+ }
+ }
+ b.toc();
+ if ( !isArray( v ) ) {
+ b.fail( 'should return an array' );
+ }
+ 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( format( '%s:assign:dtype=generic,len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.length.js
new file mode 100644
index 000000000000..0d953352319b
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/benchmark/benchmark.length.js
@@ -0,0 +1,97 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 pow = require( '@stdlib/math/base/special/pow' );
+var isArray = require( '@stdlib/assert/is-array' );
+var ones = require( '@stdlib/array/base/ones' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var toFilled = require( './../lib' );
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = ones( len );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var out;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ out = toFilled( x, i, 0, len );
+ if ( out.length !== len ) {
+ b.fail( 'unexpected length' );
+ }
+ }
+ b.toc();
+ if ( !isArray( out ) ) {
+ b.fail( 'should return an array' );
+ }
+ 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( format( '%s:dtype=generic,len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/docs/repl.txt b/lib/node_modules/@stdlib/array/base/to-filled/docs/repl.txt
new file mode 100644
index 000000000000..6c52dcf3317e
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/docs/repl.txt
@@ -0,0 +1,83 @@
+
+{{alias}}( x, value, start, end )
+ Returns a new array with all elements within a specified range replaced
+ with a provided value.
+
+ Negative indices are resolved relative to the last array element, with the
+ last element corresponding to `-1`.
+
+ Parameters
+ ----------
+ x: ArrayLikeObject
+ Input array.
+
+ value: any
+ Fill value.
+
+ start: integer
+ Starting index (inclusive).
+
+ end: integer
+ Ending index (exclusive).
+
+ Returns
+ -------
+ out: ArrayLikeObject
+ Output array.
+
+ Examples
+ --------
+ > var x = [ 1, 2, 3, 4 ];
+ > {{alias}}( x, 5, 1, 3 )
+ [ 1, 5, 5, 4 ]
+ > {{alias}}( x, 6, -3, -1 )
+ [ 1, 6, 6, 4 ]
+
+
+{{alias}}.assign( x, value, start, end, out, stride, offset )
+ Copies elements from one array to another array and replaces all elements
+ within a specified range with a provided value.
+
+ Negative indices are resolved relative to the last array element, with the
+ last element corresponding to `-1`.
+
+ Parameters
+ ----------
+ x: ArrayLikeObject
+ Input array.
+
+ value: any
+ Fill value.
+
+ start: integer
+ Starting index (inclusive).
+
+ end: integer
+ Ending index (exclusive).
+
+ out: ArrayLikeObject
+ Output array.
+
+ stride: integer
+ Output array stride.
+
+ offset: integer
+ Output array offset.
+
+ Returns
+ -------
+ out: ArrayLikeObject
+ Output array.
+
+ Examples
+ --------
+ > var x = [ 1, 2, 3, 4 ];
+ > var out = [ 0, 0, 0, 0 ];
+ > var arr = {{alias}}.assign( x, 5, 1, 3, out, 1, 0 )
+ [ 1, 5, 5, 4 ]
+ > var bool = ( arr === out )
+ true
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/to-filled/docs/types/index.d.ts
new file mode 100644
index 000000000000..09f24047314f
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/docs/types/index.d.ts
@@ -0,0 +1,248 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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, RealTypedArray, ComplexTypedArray, AccessorArrayLike } from '@stdlib/types/array';
+import { ComplexLike } from '@stdlib/types/complex';
+
+/**
+* Interface describing `toFilled`.
+*/
+interface ToFilled {
+ /**
+ * Returns a new array with all elements within a specified range replaced with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @returns output array
+ *
+ * @example
+ * var Complex128Array = require( '@stdlib/array/complex128' );
+ * var Complex128 = require( '@stdlib/complex/float64/ctor' );
+ *
+ * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ *
+ * var out = toFilled( x, new Complex128( 7.0, 8.0 ), 1, 2 );
+ * // returns [ 1.0, 2.0, 7.0, 8.0, 5.0, 6.0 ]
+ */
+ ( x: T, value: ComplexLike, start: number, end: number ): T;
+
+ /**
+ * Returns a new array with all elements within a specified range replaced with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @returns output array
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+ *
+ * var out = toFilled( x, 5.0, 1, 3 );
+ * // returns [ 1.0, 5.0, 5.0, 4.0 ]
+ */
+ ( x: T, value: number, start: number, end: number ): T; // eslint-disable-line @typescript-eslint/unified-signatures
+
+ /**
+ * Returns a new array with all elements within a specified range replaced with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1, 2, 3, 4 ];
+ *
+ * var out = toFilled( x, 5, 1, 3 );
+ * // returns [ 1, 5, 5, 4 ]
+ */
+ ( x: Collection, value: U, start: number, end: number ): Array;
+
+ /**
+ * Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @param out - output array
+ * @param stride - output array stride
+ * @param offset - output array offset
+ * @returns output array
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var x = [ 1, 2, 3, 4 ];
+ *
+ * var out = new Float64Array( [ 0, 0, 0, 0 ] );
+ * var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+ * // returns [ 1, 5, 5, 4 ]
+ *
+ * var bool = ( arr === out );
+ * // returns true
+ */
+ assign( x: Collection | AccessorArrayLike, value: number, start: number, end: number, out: T, stride: number, offset: number ): T;
+
+ /**
+ * Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @param out - output array
+ * @param stride - output array stride
+ * @param offset - output array offset
+ * @returns output array
+ *
+ * @example
+ * var Complex128Array = require( '@stdlib/array/complex128' );
+ * var Complex128 = require( '@stdlib/complex/float64/ctor' );
+ *
+ * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ *
+ * var out = new Complex128Array( x.length );
+ * var arr = toFilled.assign( x, new Complex128( 7.0, 8.0 ), 1, 2, out, 1, 0 );
+ * // returns [ 1.0, 2.0, 7.0, 8.0, 5.0, 6.0 ]
+ *
+ * var bool = ( arr === out );
+ * // returns true
+ */
+ assign( x: Collection | AccessorArrayLike, value: ComplexLike, start: number, end: number, out: T, stride: number, offset: number ): T; // eslint-disable-line @typescript-eslint/unified-signatures
+
+ /**
+ * Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @param out - output array
+ * @param stride - output array stride
+ * @param offset - output array offset
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1, 2, 3, 4 ];
+ *
+ * var out = [ 0, 0, 0, 0 ];
+ * var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+ * // returns [ 1, 5, 5, 4 ]
+ *
+ * var bool = ( arr === out );
+ * // returns true
+ */
+ assign( x: Collection | AccessorArrayLike, value: U, start: number, end: number, out: Array, stride: number, offset: number ): Array;
+
+ /**
+ * Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @param out - output array
+ * @param stride - output array stride
+ * @param offset - output array offset
+ * @returns output array
+ *
+ * @example
+ * var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+ *
+ * var x = toAccessorArray( [ 1, 2, 3, 4 ] );
+ *
+ * var out = toAccessorArray( [ 0, 0, 0, 0 ] );
+ * var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+ *
+ * var v = out.get( 1 );
+ * // returns 5
+ *
+ * var bool = ( arr === out );
+ * // returns true
+ */
+ assign( x: Collection | AccessorArrayLike, value: U, start: number, end: number, out: AccessorArrayLike, stride: number, offset: number ): AccessorArrayLike;
+
+ /**
+ * Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+ *
+ * @param x - input array
+ * @param value - fill value
+ * @param start - starting index (inclusive)
+ * @param end - ending index (exclusive)
+ * @param out - output array
+ * @param stride - output array stride
+ * @param offset - output array offset
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1, 2, 3, 4 ];
+ *
+ * var out = [ 0, 0, 0, 0 ];
+ * var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+ * // returns [ 1, 5, 5, 4 ]
+ *
+ * var bool = ( arr === out );
+ * // returns true
+ */
+ assign( x: Collection | AccessorArrayLike, value: U, start: number, end: number, out: Collection, stride: number, offset: number ): Collection;
+}
+
+/**
+* Returns a new array with all elements within a specified range replaced with a provided value.
+*
+* @param x - input array
+* @param value - fill value
+* @param start - starting index (inclusive)
+* @param end - ending index (exclusive)
+* @returns output array
+*
+* @example
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = toFilled( x, 5, 1, 3 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = new Float64Array( [ 0, 0, 0, 0 ] );
+* var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( arr === out );
+* // returns true
+*/
+declare var toFilled: ToFilled;
+
+
+// EXPORTS //
+
+export = toFilled;
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/to-filled/docs/types/test.ts
new file mode 100644
index 000000000000..bcc6de582da0
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/docs/types/test.ts
@@ -0,0 +1,204 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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.
+*/
+
+/* eslint-disable space-in-parens */
+
+import Complex128Array = require( '@stdlib/array/complex128' );
+import Complex64Array = require( '@stdlib/array/complex64' );
+import toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+import toFilled = require( './index' );
+
+
+// TESTS //
+
+// The function returns an updated array...
+{
+ toFilled( [ 1, 2, 3, 4 ], 5, 1, 3 ); // $ExpectType number[]
+ toFilled( new Complex128Array( 5 ), { 're': 1.0, 'im': 1.0 }, 0, 1 ); // $ExpectType Complex128Array
+ toFilled( new Complex64Array( 5 ), { 're': 1.0, 'im': 1.0 }, 0, 1 ); // $ExpectType Complex64Array
+ toFilled( toAccessorArray( [ 1, 2, 3, 4 ] ), 5, 1, 3 ); // $ExpectType number[]
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a collection...
+{
+ toFilled( 5, 5, 1, 3 ); // $ExpectError
+ toFilled( true, 5, 1, 3 ); // $ExpectError
+ toFilled( false, 5, 1, 3 ); // $ExpectError
+ toFilled( null, 5, 1, 3 ); // $ExpectError
+ toFilled( void 0, 5, 1, 3 ); // $ExpectError
+ toFilled( {}, 5, 1, 3 ); // $ExpectError
+ toFilled( ( x: number ): number => x, 5, 1, 3 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+
+ toFilled( x, 5, 'abc', 3 ); // $ExpectError
+ toFilled( x, 5, true, 3 ); // $ExpectError
+ toFilled( x, 5, false, 3 ); // $ExpectError
+ toFilled( x, 5, null, 3 ); // $ExpectError
+ toFilled( x, 5, void 0, 3 ); // $ExpectError
+ toFilled( x, 5, [ '1' ], 3 ); // $ExpectError
+ toFilled( x, 5, {}, 3 ); // $ExpectError
+ toFilled( x, 5, ( x: number ): number => x, 3 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+
+ toFilled( x, 5, 1, 'abc' ); // $ExpectError
+ toFilled( x, 5, 1, true ); // $ExpectError
+ toFilled( x, 5, 1, false ); // $ExpectError
+ toFilled( x, 5, 1, null ); // $ExpectError
+ toFilled( x, 5, 1, void 0 ); // $ExpectError
+ toFilled( x, 5, 1, [ '1' ] ); // $ExpectError
+ toFilled( x, 5, 1, {} ); // $ExpectError
+ toFilled( x, 5, 1, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const x = [ 1, 2, 3, 4 ];
+
+ toFilled(); // $ExpectError
+ toFilled( x ); // $ExpectError
+ toFilled( x, 5 ); // $ExpectError
+ toFilled( x, 5, 1 ); // $ExpectError
+ toFilled( x, 5, 1, 3, 0 ); // $ExpectError
+}
+
+// Attached to the main export is an `assign` method which returns a collection...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const y = new Complex128Array( 4 );
+
+ toFilled.assign( x, 5, 1, 3, [ 0, 0, 0, 0 ], 1, 0 ); // $ExpectType number[]
+ toFilled.assign( x, 5, 1, 3, new Float64Array( 4 ), 1, 0 ); // $ExpectType Float64Array
+ toFilled.assign( x, 5, 1, 3, new Float32Array( 4 ), 1, 0 ); // $ExpectType Float32Array
+ toFilled.assign( x, 5, 1, 3, new Int32Array( 4 ), 1, 0 ); // $ExpectType Int32Array
+ toFilled.assign( x, 5, 1, 3, new Int16Array( 4 ), 1, 0 ); // $ExpectType Int16Array
+ toFilled.assign( x, 5, 1, 3, new Int8Array( 4 ), 1, 0 ); // $ExpectType Int8Array
+ toFilled.assign( x, 5, 1, 3, new Uint32Array( 4 ), 1, 0 ); // $ExpectType Uint32Array
+ toFilled.assign( x, 5, 1, 3, new Uint16Array( 4 ), 1, 0 ); // $ExpectType Uint16Array
+ toFilled.assign( x, 5, 1, 3, new Uint8Array( 4 ), 1, 0 ); // $ExpectType Uint8Array
+ toFilled.assign( x, 5, 1, 3, new Uint8ClampedArray( 4 ), 1, 0 ); // $ExpectType Uint8ClampedArray
+ toFilled.assign( y, { 're': 1.0, 'im': 1.0 }, 0, 1, new Complex128Array( 4 ), 1, 0 ); // $ExpectType Complex128Array
+ toFilled.assign( y, { 're': 1.0, 'im': 1.0 }, 0, 1, new Complex64Array( 4 ), 1, 0 ); // $ExpectType Complex64Array
+}
+
+// The compiler throws an error if the `assign` method is provided a first argument which is not an array-like object...
+{
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign( 1, 5, 1, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( true, 5, 1, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( false, 5, 1, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( null, 5, 1, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( void 0, 5, 1, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( {}, 5, 1, 3, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided a third argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign( x, 5, '1', 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, true, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, false, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, null, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, void 0, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, [], 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, {}, 3, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, ( x: number ): number => x, 3, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign( x, 5, 1, '1', out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, true, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, false, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, null, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, void 0, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, [], out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, {}, out, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided a fifth argument which is not an array-like object...
+{
+ const x = [ 1, 2, 3, 4 ];
+
+ toFilled.assign( x, 5, 1, 3, 1, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, true, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, false, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, null, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, void 0, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, {}, 1, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, ( x: number ): number => x, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided a sixth argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign( x, 5, 1, 3, out, '1', 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, true, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, false, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, null, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, void 0, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, [], 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, {}, 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, ( x: number ): number => x, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided a seventh argument which is not a number...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign( x, 5, 1, 3, out, 1, '1' ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, true ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, false ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, null ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, void 0 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, [] ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, {} ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the `assign` method is provided an unsupported number of arguments...
+{
+ const x = [ 1, 2, 3, 4 ];
+ const out = [ 0, 0, 0, 0 ];
+
+ toFilled.assign(); // $ExpectError
+ toFilled.assign( x ); // $ExpectError
+ toFilled.assign( x, 5 ); // $ExpectError
+ toFilled.assign( x, 5, 1 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1 ); // $ExpectError
+ toFilled.assign( x, 5, 1, 3, out, 1, 0, {} ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/examples/index.js b/lib/node_modules/@stdlib/array/base/to-filled/examples/index.js
new file mode 100644
index 000000000000..2a446ba2def3
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/examples/index.js
@@ -0,0 +1,41 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 logEachMap = require( '@stdlib/console/log-each-map' );
+var naryFunction = require( '@stdlib/utils/nary-function' );
+var papply = require( '@stdlib/utils/papply' );
+var toFilled = require( './../lib' );
+
+// Define an array:
+var opts = {
+ 'dtype': 'generic'
+};
+var x = discreteUniform( 10, -100, 100, opts );
+
+// Define an array containing random fill values:
+var values = discreteUniform( 100, -10000, 10000, opts );
+
+// Define parallel arrays containing random fill ranges:
+var starts = discreteUniform( values.length, 0, x.length-1, opts );
+var ends = discreteUniform( values.length, 1, x.length, opts );
+
+// Randomly fill ranges of the input array:
+logEachMap( 'fill with %d in [%d, %d) => x = [%s]', values, starts, ends, naryFunction( papply( toFilled, x ), 3 ) );
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/lib/assign.js b/lib/node_modules/@stdlib/array/base/to-filled/lib/assign.js
new file mode 100644
index 000000000000..2bad799286e0
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/lib/assign.js
@@ -0,0 +1,246 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 isComplexDataType = require( '@stdlib/array/base/assert/is-complex-floating-point-data-type' );
+var isBooleanDataType = require( '@stdlib/array/base/assert/is-boolean-data-type' );
+var isComplexLike = require( '@stdlib/assert/is-complex-like' );
+var Boolean = require( '@stdlib/boolean/ctor' );
+var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+var reinterpret = require( '@stdlib/strided/base/reinterpret-complex' );
+var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' );
+var real = require( '@stdlib/complex/float64/real' );
+var imag = require( '@stdlib/complex/float64/imag' );
+
+
+// FUNCTIONS //
+
+/**
+* Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+*
+* @private
+* @param {Collection} x - input array
+* @param {*} value - fill value
+* @param {integer} start - starting index (inclusive)
+* @param {integer} end - ending index (exclusive)
+* @param {Collection} out - output array
+* @param {integer} stride - output array stride
+* @param {NonNegativeInteger} offset - output array offset
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = [ 0, 0, 0, 0 ];
+* var arr = indexed( x, 5, 1, 3, out, 1, 0 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( arr === out );
+* // returns true
+*/
+function indexed( x, value, start, end, out, stride, offset ) {
+ var io;
+ var i;
+
+ io = offset;
+ for ( i = 0; i < x.length; i++ ) {
+ if ( i >= start && i < end ) {
+ out[ io ] = value;
+ } else {
+ out[ io ] = x[ i ];
+ }
+ io += stride;
+ }
+ return out;
+}
+
+/**
+* Copies elements from one accessor array to another accessor array and replaces all elements within a specified range with a provided value.
+*
+* @private
+* @param {Object} x - input array object
+* @param {*} value - fill value
+* @param {integer} start - starting index (inclusive)
+* @param {integer} end - ending index (exclusive)
+* @param {Object} out - output array object
+* @param {integer} stride - output array stride
+* @param {NonNegativeInteger} offset - output array offset
+* @returns {Collection} output array
+*
+* @example
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+*
+* var x = toAccessorArray( [ 1, 2, 3, 4 ] );
+*
+* var out = toAccessorArray( [ 0, 0, 0, 0 ] );
+* var arr = accessors( arraylike2object( x ), 5, 1, 3, arraylike2object( out ), 1, 0 );
+*
+* var v = arr.get( 1 );
+* // returns 5
+*/
+function accessors( x, value, start, end, out, stride, offset ) {
+ var xdata;
+ var odata;
+ var xget;
+ var oset;
+ var io;
+ var i;
+
+ xdata = x.data;
+ odata = out.data;
+
+ xget = x.accessors[ 0 ];
+ oset = out.accessors[ 1 ];
+
+ io = offset;
+ for ( i = 0; i < xdata.length; i++ ) {
+ if ( i >= start && i < end ) {
+ oset( odata, io, value );
+ } else {
+ oset( odata, io, xget( xdata, i ) );
+ }
+ io += stride;
+ }
+ return odata;
+}
+
+/**
+* Copies elements from one complex array to another complex array and replaces all elements within a specified range with a provided value.
+*
+* @private
+* @param {Collection} x - real-valued floating-point input array view
+* @param {ComplexLike} value - fill value
+* @param {integer} start - starting index (inclusive)
+* @param {integer} end - ending index (exclusive)
+* @param {Collection} out - real-valued floating-point output array view
+* @param {integer} stride - output array stride
+* @param {NonNegativeInteger} offset - output array offset
+* @returns {Collection} output array view
+*
+* @example
+* var Complex128 = require( '@stdlib/complex/float64/ctor' );
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+*
+* var out = new Float64Array( 4 );
+* var arr = complex( x, new Complex128( 5.0, 6.0 ), 0, 1, out, 1, 0 );
+* // returns [ 5.0, 6.0, 3.0, 4.0 ]
+*/
+function complex( x, value, start, end, out, stride, offset ) {
+ var so;
+ var re;
+ var im;
+ var io;
+ var i;
+ var j;
+
+ so = stride * 2; // multiply by 2, as real-valued array consists of interleaved real and imaginary components
+ io = offset * 2;
+ re = real( value );
+ im = imag( value );
+ for ( i = 0; i < x.length/2; i++ ) {
+ j = i * 2;
+ if ( i >= start && i < end ) {
+ out[ io ] = re;
+ out[ io+1 ] = im;
+ } else {
+ out[ io ] = x[ j ];
+ out[ io+1 ] = x[ j+1 ];
+ }
+ io += so;
+ }
+ return out;
+}
+
+
+// MAIN //
+
+/**
+* Copies elements from one array to another array and replaces all elements within a specified range with a provided value.
+*
+* @param {Collection} x - input array
+* @param {*} value - fill value
+* @param {integer} start - starting index (inclusive)
+* @param {integer} end - ending index (exclusive)
+* @param {Collection} out - output array
+* @param {integer} stride - output array stride
+* @param {NonNegativeInteger} offset - output array offset
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = [ 0, 0, 0, 0 ];
+* var arr = assign( x, 5, 1, 3, out, 1, 0 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( arr === out );
+* // returns true
+*/
+function assign( x, value, start, end, out, stride, offset ) {
+ var len;
+ var xo;
+ var oo;
+
+ len = x.length;
+ if ( start < 0 ) {
+ start += len;
+ if ( start < 0 ) {
+ start = 0;
+ }
+ }
+ if ( end < 0 ) {
+ end += len; // if `end` is still negative, that is fine, as `x` will simply be copied without modification
+ } else if ( end > len ) {
+ end = len;
+ }
+ xo = arraylike2object( x );
+ oo = arraylike2object( out );
+ if ( xo.accessorProtocol || oo.accessorProtocol ) {
+ // Note: we only explicitly support a limited set of dtype-to-dtype pairs, as this function should not be concerned with casting rules, etc. That is left to userland...
+ if (
+ isComplexDataType( xo.dtype ) &&
+ isComplexDataType( oo.dtype ) &&
+ isComplexLike( value )
+ ) {
+ complex( reinterpret( x, 0 ), value, start, end, reinterpret( out, 0 ), stride, offset ); // eslint-disable-line max-len
+ return out;
+ }
+ if (
+ isBooleanDataType( xo.dtype ) &&
+ isBooleanDataType( oo.dtype )
+ ) {
+ indexed( reinterpretBoolean( x, 0 ), Boolean( value ), start, end, reinterpretBoolean( out, 0 ), stride, offset ); // eslint-disable-line max-len
+ return out;
+ }
+ accessors( xo, value, start, end, oo, stride, offset );
+ return out;
+ }
+ indexed( x, value, start, end, out, stride, offset );
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = assign;
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/lib/index.js b/lib/node_modules/@stdlib/array/base/to-filled/lib/index.js
new file mode 100644
index 000000000000..49a9b6949da1
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/lib/index.js
@@ -0,0 +1,61 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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';
+
+/**
+* Return a new array with all elements within a specified range replaced with a provided value.
+*
+* @module @stdlib/array/base/to-filled
+*
+* @example
+* var toFilled = require( '@stdlib/array/base/to-filled' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = toFilled( x, 5, 1, 3 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* @example
+* var toFilled = require( '@stdlib/array/base/to-filled' );
+*
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = [ 0, 0, 0, 0 ];
+* var arr = toFilled.assign( x, 5, 1, 3, out, 1, 0 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( arr === out );
+* // returns true
+*/
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var main = require( './main.js' );
+var assign = require( './assign.js' );
+
+
+// MAIN //
+
+setReadOnly( main, 'assign', assign );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/lib/main.js b/lib/node_modules/@stdlib/array/base/to-filled/lib/main.js
new file mode 100644
index 000000000000..08c09dc5a829
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/lib/main.js
@@ -0,0 +1,66 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 slice = require( '@stdlib/array/base/slice' );
+var fill = require( '@stdlib/array/base/fill' );
+
+
+// MAIN //
+
+/**
+* Returns a new array with all elements within a specified range replaced with a provided value.
+*
+* @param {Collection} x - input array
+* @param {*} value - fill value
+* @param {integer} start - starting index (inclusive)
+* @param {integer} end - ending index (exclusive)
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1, 2, 3, 4 ];
+*
+* var out = toFilled( x, 5, 1, 3 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( out === x );
+* // returns false
+*
+* @example
+* var Int32Array = require( '@stdlib/array/int32' );
+*
+* var x = new Int32Array( [ 1, 2, 3, 4 ] );
+*
+* var out = toFilled( x, 5, 1, 3 );
+* // returns [ 1, 5, 5, 4 ]
+*
+* var bool = ( out === x );
+* // returns false
+*/
+function toFilled( x, value, start, end ) {
+ var out = slice( x, 0, x.length );
+ return fill( out, value, start, end );
+}
+
+
+// EXPORTS //
+
+module.exports = toFilled;
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/package.json b/lib/node_modules/@stdlib/array/base/to-filled/package.json
new file mode 100644
index 000000000000..58a4d90d429e
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/package.json
@@ -0,0 +1,65 @@
+{
+ "name": "@stdlib/array/base/to-filled",
+ "version": "0.0.0",
+ "description": "Return a new array with all elements within a specified range replaced with a provided value.",
+ "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",
+ "base",
+ "array",
+ "typed",
+ "collection",
+ "vector",
+ "fill",
+ "filled",
+ "set",
+ "setter",
+ "copy"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/test/test.assign.js b/lib/node_modules/@stdlib/array/base/to-filled/test/test.assign.js
new file mode 100644
index 000000000000..8867cab99fe6
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/test/test.assign.js
@@ -0,0 +1,345 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 Int32Array = require( '@stdlib/array/int32' );
+var Float64Array = require( '@stdlib/array/float64' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var BooleanArray = require( '@stdlib/array/bool' );
+var AccessorArray = require( '@stdlib/array/base/accessor' );
+var Complex128 = require( '@stdlib/complex/float64/ctor' );
+var isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
+var isSameAccessorArray = require( '@stdlib/assert/is-same-accessor-array' );
+var isEqualBooleanArray = require( '@stdlib/assert/is-equal-booleanarray' );
+var zeros = require( '@stdlib/array/zeros' );
+var toFilled = require( './../lib/assign.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof toFilled, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (generic)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = [ 1, 2, 3, 4 ];
+
+ out = zeros( x.length, 'generic' );
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'generic' );
+ expected = [ 1, 0, 5, 0, 5, 0, 4, 0 ];
+ actual = toFilled( x, 5, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'generic' );
+ expected = [ 0, 4, 0, 5, 0, 5, 0, 1 ];
+ actual = toFilled( x, 5, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (float64)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ out = zeros( x.length, 'float64' );
+ expected = new Float64Array( [ 1.0, 5.0, 5.0, 4.0 ] );
+ actual = toFilled( x, 5.0, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'float64' );
+ expected = new Float64Array( [ 1.0, 0.0, 5.0, 0.0, 5.0, 0.0, 4.0, 0.0 ] );
+ actual = toFilled( x, 5.0, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'float64' );
+ expected = new Float64Array( [ 0.0, 4.0, 0.0, 5.0, 0.0, 5.0, 0.0, 1.0 ] );
+ actual = toFilled( x, 5.0, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (int32)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = new Int32Array( [ 1, 2, 3, 4 ] );
+
+ out = zeros( x.length, 'int32' );
+ expected = new Int32Array( [ 1, 5, 5, 4 ] );
+ actual = toFilled( x, 5, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'int32' );
+ expected = new Int32Array( [ 1, 0, 5, 0, 5, 0, 4, 0 ] );
+ actual = toFilled( x, 5, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length*2, 'int32' );
+ expected = new Int32Array( [ 0, 4, 0, 5, 0, 5, 0, 1 ] );
+ actual = toFilled( x, 5, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (complex128)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ out = zeros( x.length, 'complex128' );
+ expected = new Complex128Array( [ 1.0, 2.0, 7.0, 8.0, 5.0, 6.0 ] );
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), 1, 2, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ out = zeros( x.length*2, 'complex128' );
+ expected = new Complex128Array( [ 1.0, 2.0, 0.0, 0.0, 7.0, 8.0, 0.0, 0.0, 5.0, 6.0, 0.0, 0.0 ] ); // eslint-disable-line max-len
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), 1, 2, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ out = zeros( x.length*2, 'complex128' );
+ expected = new Complex128Array( [ 0.0, 0.0, 5.0, 6.0, 0.0, 0.0, 7.0, 8.0, 0.0, 0.0, 1.0, 2.0 ] ); // eslint-disable-line max-len
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), 1, 2, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (bool)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = new BooleanArray( [ false, false, true, true ] );
+
+ out = new BooleanArray( x.length );
+ expected = new BooleanArray( [ false, true, true, true ] );
+ actual = toFilled( x, true, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isEqualBooleanArray( actual, expected ), true, 'returns expected value' );
+
+ out = new BooleanArray( x.length*2 );
+ expected = new BooleanArray( [ false, false, true, false, true, false, true, false ] );
+ actual = toFilled( x, true, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isEqualBooleanArray( actual, expected ), true, 'returns expected value' );
+
+ out = new BooleanArray( x.length*2 );
+ expected = new BooleanArray( [ false, true, false, false, false, false, false, false ] );
+ actual = toFilled( x, false, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isEqualBooleanArray( actual, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (accessors)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = new AccessorArray( [ 1, 2, 3, 4 ] );
+
+ out = new AccessorArray( zeros( x.length, 'generic' ) );
+ expected = new AccessorArray( [ 1, 5, 5, 4 ] );
+ actual = toFilled( x, 5, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameAccessorArray( actual, expected ), true, 'returns expected value' );
+
+ out = new AccessorArray( zeros( x.length*2, 'generic' ) );
+ expected = new AccessorArray( [ 1, 0, 5, 0, 5, 0, 4, 0 ] );
+ actual = toFilled( x, 5, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameAccessorArray( actual, expected ), true, 'returns expected value' );
+
+ out = new AccessorArray( zeros( x.length*2, 'generic' ) );
+ expected = new AccessorArray( [ 0, 4, 0, 5, 0, 5, 0, 1 ] );
+ actual = toFilled( x, 5, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.strictEqual( isSameAccessorArray( actual, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function copies elements to another array and replaces all elements within a specified range with a provided value (array-like)', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = {
+ 'length': 4,
+ '0': 1,
+ '1': 2,
+ '2': 3,
+ '3': 4
+ };
+
+ out = {
+ 'length': 4,
+ '0': 0,
+ '1': 0,
+ '2': 0,
+ '3': 0
+ };
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, 1, 3, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ isEqual( actual, expected );
+
+ out = {
+ 'length': 8,
+ '0': 0,
+ '1': 0,
+ '2': 0,
+ '3': 0,
+ '4': 0,
+ '5': 0,
+ '6': 0,
+ '7': 0
+ };
+ expected = [ 1, 0, 5, 0, 5, 0, 4, 0 ];
+ actual = toFilled( x, 5, 1, 3, out, 2, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ isEqual( actual, expected );
+
+ out = {
+ 'length': 8,
+ '0': 0,
+ '1': 0,
+ '2': 0,
+ '3': 0,
+ '4': 0,
+ '5': 0,
+ '6': 0,
+ '7': 0
+ };
+ expected = [ 0, 4, 0, 5, 0, 5, 0, 1 ];
+ actual = toFilled( x, 5, 1, 3, out, -2, out.length-1 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ isEqual( actual, expected );
+
+ t.end();
+
+ function isEqual( actual, expected ) {
+ var i;
+ for ( i = 0; i < expected.length; i++ ) {
+ t.strictEqual( actual[ i ], expected[ i ], 'returns expected value' );
+ }
+ }
+});
+
+tape( 'the function clamps `start` and `end` indices to array bounds', function test( t ) {
+ var expected;
+ var actual;
+ var out;
+ var x;
+
+ x = [ 1, 2, 3, 4 ];
+
+ out = zeros( x.length, 'generic' );
+ expected = [ 5, 5, 5, 5 ];
+ actual = toFilled( x, 5, -10, 100, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length, 'generic' );
+ expected = [ 1, 2, 3, 4 ];
+ actual = toFilled( x, 5, 10, 100, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length, 'generic' );
+ expected = [ 1, 2, 3, 4 ];
+ actual = toFilled( x, 5, 0, -10, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ out = zeros( x.length, 'generic' );
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, -3, -1, out, 1, 0 );
+
+ t.strictEqual( actual, out, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/test/test.js b/lib/node_modules/@stdlib/array/base/to-filled/test/test.js
new file mode 100644
index 000000000000..4b7ff5134421
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/test/test.js
@@ -0,0 +1,41 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 hasOwnProp = require( '@stdlib/assert/has-own-property' );
+var hasMethod = require( '@stdlib/assert/is-method' );
+var toFilled = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof toFilled, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'attached to the main export is an `assign` method', function test( t ) {
+ t.strictEqual( hasOwnProp( toFilled, 'assign' ), true, 'returns expected value' );
+ t.strictEqual( hasMethod( toFilled, 'assign' ), true, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/array/base/to-filled/test/test.main.js b/lib/node_modules/@stdlib/array/base/to-filled/test/test.main.js
new file mode 100644
index 000000000000..900c34cc1b18
--- /dev/null
+++ b/lib/node_modules/@stdlib/array/base/to-filled/test/test.main.js
@@ -0,0 +1,276 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 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 Int32Array = require( '@stdlib/array/int32' );
+var Float64Array = require( '@stdlib/array/float64' );
+var Complex128Array = require( '@stdlib/array/complex128' );
+var AccessorArray = require( '@stdlib/array/base/accessor' );
+var Complex128 = require( '@stdlib/complex/float64/ctor' );
+var isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' );
+var isArray = require( '@stdlib/assert/is-array' );
+var isFloat64Array = require( '@stdlib/assert/is-float64array' );
+var isInt32Array = require( '@stdlib/assert/is-int32array' );
+var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
+var toFilled = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof toFilled, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (generic)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = [ 1, 2, 3, 4 ];
+
+ expected = [ 5, 5, 5, 5 ];
+ actual = toFilled( x, 5, 0, x.length );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, 1, 3 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 6, 6, 4 ];
+ actual = toFilled( x, 6, -3, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (float64)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ expected = new Float64Array( [ 5.0, 5.0, 5.0, 5.0 ] );
+ actual = toFilled( x, 5.0, 0, x.length );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = new Float64Array( [ 1.0, 5.0, 5.0, 4.0 ] );
+ actual = toFilled( x, 5.0, 1, 3 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = new Float64Array( [ 1.0, 6.0, 6.0, 4.0 ] );
+ actual = toFilled( x, 6.0, -3, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (int32)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = new Int32Array( [ 1, 2, 3, 4 ] );
+
+ expected = new Int32Array( [ 5, 5, 5, 5 ] );
+ actual = toFilled( x, 5, 0, x.length );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = new Int32Array( [ 1, 5, 5, 4 ] );
+ actual = toFilled( x, 5, 1, 3 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = new Int32Array( [ 1, 6, 6, 4 ] );
+ actual = toFilled( x, 6, -3, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (complex128)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ expected = new Complex128Array( [ 7.0, 8.0, 7.0, 8.0, 7.0, 8.0 ] );
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), 0, x.length );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isComplex128Array( actual ), true, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ expected = new Complex128Array( [ 1.0, 2.0, 7.0, 8.0, 5.0, 6.0 ] );
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), 1, 2 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isComplex128Array( actual ), true, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ expected = new Complex128Array( [ 1.0, 2.0, 7.0, 8.0, 5.0, 6.0 ] );
+ actual = toFilled( x, new Complex128( 7.0, 8.0 ), -2, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isComplex128Array( actual ), true, 'returns expected value' );
+ t.strictEqual( isSameComplex128Array( actual, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (accessors)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = new AccessorArray( [ 1, 2, 3, 4 ] );
+
+ expected = [ 5, 5, 5, 5 ];
+ actual = toFilled( x, 5, 0, 4 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, 1, 3 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 6, 6, 4 ];
+ actual = toFilled( x, 6, -3, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a new array with all elements within a specified range replaced with a provided value (array-like)', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = {
+ 'length': 4,
+ '0': 1,
+ '1': 2,
+ '2': 3,
+ '3': 4
+ };
+
+ expected = [ 5, 5, 5, 5 ];
+ actual = toFilled( x, 5, 0, 4 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 5, 5, 4 ];
+ actual = toFilled( x, 5, 1, 3 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 6, 6, 4 ];
+ actual = toFilled( x, 6, -3, -1 );
+
+ t.notEqual( actual, x, 'returns different reference' );
+ t.strictEqual( isArray( actual ), true, 'returns expected value' );
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function clamps `start` and `end` indices to array bounds', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+
+ x = [ 1, 2, 3, 4 ];
+
+ expected = [ 5, 5, 5, 5 ];
+ actual = toFilled( x, 5, -10, 100 );
+
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 2, 3, 4 ];
+ actual = toFilled( x, 5, 10, 100 );
+
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 2, 3, 4 ];
+ actual = toFilled( x, 5, 0, -10 );
+
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ expected = [ 1, 2, 3, 4 ];
+ actual = toFilled( x, 5, 2, 2 );
+
+ t.deepEqual( actual, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns an empty array if provided an array of length `0`', function test( t ) {
+ var expected;
+ var actual;
+
+ expected = [];
+ actual = toFilled( [], 5, 0, 0 );
+
+ t.deepEqual( actual, expected, 'returns expected value' );
+ t.end();
+});