Skip to content

Commit 7e2cdcf

Browse files
committed
Auto-generated commit
1 parent 1ce3b11 commit 7e2cdcf

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`513fc61`](https://github.com/stdlib-js/stdlib/commit/513fc61205a9a4748a1e4ecc58c664a11f443ec4) - update `array/base` TypeScript declarations [(#12090)](https://github.com/stdlib-js/stdlib/pull/12090)
1314
- [`91f9e66`](https://github.com/stdlib-js/stdlib/commit/91f9e662810fe97879caefabb9fdd92c3ee7d3ec) - add `toFilled` to namespace
1415
- [`e007cc9`](https://github.com/stdlib-js/stdlib/commit/e007cc9a39f4a47b7de07c3b13b147f9c8a454a4) - add `array/base/to-filled` [(#11954)](https://github.com/stdlib-js/stdlib/pull/11954)
1516
- [`ffc488f`](https://github.com/stdlib-js/stdlib/commit/ffc488fef22a3f7e6bda7c2b4ec4bbbe9a9eecbf) - add `Float16Array` to namespace
@@ -274,6 +275,7 @@ A total of 38 issues were closed in this release:
274275

275276
<details>
276277

278+
- [`513fc61`](https://github.com/stdlib-js/stdlib/commit/513fc61205a9a4748a1e4ecc58c664a11f443ec4) - **feat:** update `array/base` TypeScript declarations [(#12090)](https://github.com/stdlib-js/stdlib/pull/12090) _(by stdlib-bot)_
277279
- [`c534f97`](https://github.com/stdlib-js/stdlib/commit/c534f971488b2a5ebacca4dccf73a9d9b4e09bc7) - **docs:** update namespace table of contents [(#12092)](https://github.com/stdlib-js/stdlib/pull/12092) _(by stdlib-bot)_
278280
- [`91f9e66`](https://github.com/stdlib-js/stdlib/commit/91f9e662810fe97879caefabb9fdd92c3ee7d3ec) - **feat:** add `toFilled` to namespace _(by Athan Reines)_
279281
- [`e007cc9`](https://github.com/stdlib-js/stdlib/commit/e007cc9a39f4a47b7de07c3b13b147f9c8a454a4) - **feat:** add `array/base/to-filled` [(#11954)](https://github.com/stdlib-js/stdlib/pull/11954) _(by Muhammad Haris, Athan Reines)_

base/docs/types/index.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ import ternary4d = require( './../../../base/ternary4d' );
234234
import ternary5d = require( './../../../base/ternary5d' );
235235
import toAccessorArray = require( './../../../base/to-accessor-array' );
236236
import toDeduped = require( './../../../base/to-deduped' );
237+
import toFilled = require( './../../../base/to-filled' );
237238
import toInsertedAt = require( './../../../base/to-inserted-at' );
238239
import toReversed = require( './../../../base/to-reversed' );
239240
import 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

Comments
 (0)