Skip to content

Commit 553b0ac

Browse files
committed
Auto-generated commit
1 parent 378d7e1 commit 553b0ac

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
##### Features
6666

67+
- [`4623339`](https://github.com/stdlib-js/stdlib/commit/46233390b61053807a2b8ce901c1f03974bd04f9) - update namespace TypeScript declarations [(#6275)](https://github.com/stdlib-js/stdlib/pull/6275)
6768
- [`a612b3d`](https://github.com/stdlib-js/stdlib/commit/a612b3dee234a1218596793d2d3be311154eb799) - add `fillBy` to namespace
6869
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706)
6970
- [`04f5785`](https://github.com/stdlib-js/stdlib/commit/04f5785ed011a7b0701eba10274cf4308f16bbad) - add `scatterFilled` to namespace
@@ -1316,6 +1317,7 @@ A total of 13 people contributed to this release. Thank you to the following con
13161317

13171318
<details>
13181319

1320+
- [`4623339`](https://github.com/stdlib-js/stdlib/commit/46233390b61053807a2b8ce901c1f03974bd04f9) - **feat:** update namespace TypeScript declarations [(#6275)](https://github.com/stdlib-js/stdlib/pull/6275) _(by stdlib-bot)_
13191321
- [`9d448eb`](https://github.com/stdlib-js/stdlib/commit/9d448eb903bf7121e982f913209f92b1eeaf49e2) - **docs:** update namespace table of contents [(#6276)](https://github.com/stdlib-js/stdlib/pull/6276) _(by stdlib-bot)_
13201322
- [`a612b3d`](https://github.com/stdlib-js/stdlib/commit/a612b3dee234a1218596793d2d3be311154eb799) - **feat:** add `fillBy` to namespace _(by Athan Reines)_
13211323
- [`ab96811`](https://github.com/stdlib-js/stdlib/commit/ab968115af31dba0958736eeb1fc1fd73903c16c) - **feat:** add `array/base/fill-by` _(by Athan Reines)_

base/docs/types/index.d.ts

+33
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import everyByRight = require( './../../../base/every-by-right' );
8585
import fancySlice = require( './../../../base/fancy-slice' );
8686
import fancySliceAssign = require( './../../../base/fancy-slice-assign' );
8787
import fill = require( './../../../base/fill' );
88+
import fillBy = require( './../../../base/fill-by' );
8889
import filled = require( './../../../base/filled' );
8990
import filledBy = require( './../../../base/filled-by' );
9091
import filled2d = require( './../../../base/filled2d' );
@@ -1947,6 +1948,38 @@ interface Namespace {
19471948
*/
19481949
fill: typeof fill;
19491950

1951+
/**
1952+
* Fills all elements within a portion of an array according to a provided callback function.
1953+
*
1954+
* @param x - input array
1955+
* @param start - starting index (inclusive)
1956+
* @param end - ending index (exclusive)
1957+
* @param fcn - callback function
1958+
* @param thisArg - callback function execution context
1959+
* @returns modified input array
1960+
*
1961+
* @example
1962+
* function fcn() {
1963+
* return 4;
1964+
* }
1965+
*
1966+
* var x = [ 1, 2, 3 ];
1967+
*
1968+
* var out = ns.fillBy( x, 4, 0, 3 );
1969+
* // returns [ 4, 4, 4 ]
1970+
*
1971+
* @example
1972+
* function fcn() {
1973+
* return 8;
1974+
* }
1975+
*
1976+
* var x = [ 1, 2, 3, 4, 5, 6 ];
1977+
*
1978+
* var out = ns.fillBy( x, 8, 0, 3 );
1979+
* // returns [ 8, 8, 8, 4, 5, 6 ]
1980+
*/
1981+
fillBy: typeof fillBy;
1982+
19501983
/**
19511984
* Returns a filled "generic" array.
19521985
*

0 commit comments

Comments
 (0)