@@ -234,6 +234,7 @@ import ternary4d = require( './../../../base/ternary4d' );
234234import ternary5d = require( './../../../base/ternary5d' ) ;
235235import toAccessorArray = require( './../../../base/to-accessor-array' ) ;
236236import toDeduped = require( './../../../base/to-deduped' ) ;
237+ import toFilled = require( './../../../base/to-filled' ) ;
237238import toInsertedAt = require( './../../../base/to-inserted-at' ) ;
238239import toReversed = require( './../../../base/to-reversed' ) ;
239240import trues = require( './../../../base/trues' ) ;
@@ -5668,6 +5669,35 @@ interface Namespace {
56685669 */
56695670 toDeduped : typeof toDeduped ;
56705671
5672+ /**
5673+ * Returns a new array with all elements within a specified range replaced with a provided value.
5674+ *
5675+ * @param x - input array
5676+ * @param value - fill value
5677+ * @param start - starting index (inclusive)
5678+ * @param end - ending index (exclusive)
5679+ * @returns output array
5680+ *
5681+ * @example
5682+ * var x = [ 1, 2, 3, 4 ];
5683+ *
5684+ * var out = ns.toFilled( x, 5, 1, 3 );
5685+ * // returns [ 1, 5, 5, 4 ]
5686+ *
5687+ * @example
5688+ * var Float64Array = require( './../../../float64' );
5689+ *
5690+ * var x = [ 1, 2, 3, 4 ];
5691+ *
5692+ * var out = new Float64Array( [ 0, 0, 0, 0 ] );
5693+ * var arr = ns.toFilled.assign( x, 5, 1, 3, out, 1, 0 );
5694+ * // returns <Float64Array>[ 1, 5, 5, 4 ]
5695+ *
5696+ * var bool = ( arr === out );
5697+ * // returns true
5698+ */
5699+ toFilled : typeof toFilled ;
5700+
56715701 /**
56725702 * Returns a new array containing every element from an input array and with a provided value inserted at a specified index.
56735703 *
0 commit comments