Skip to content

Commit d1a5e58

Browse files
committed
Auto-generated commit
1 parent 9e6ac79 commit d1a5e58

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ A total of 2 issues were closed in this release:
3737

3838
<details>
3939

40+
- [`abb0dc3`](https://github.com/stdlib-js/stdlib/commit/abb0dc38783210623e67f19a5bb95b3998f75ff7) - **docs:** update examples and descriptions _(by Athan Reines)_
4041
- [`95d0bbc`](https://github.com/stdlib-js/stdlib/commit/95d0bbc4b76c57dba4b4edd343dcd046490d4a51) - **bench:** test for primitive value _(by Athan Reines)_
4142
- [`e3a2173`](https://github.com/stdlib-js/stdlib/commit/e3a2173a24bd8634f333cace626fc2d71740ebd3) - **feat:** add `every` method to `array/fixed-endian-factory` [(#3200)](https://github.com/stdlib-js/stdlib/pull/3200) _(by Aayush Khanna, Athan Reines)_
4243
- [`b34732c`](https://github.com/stdlib-js/stdlib/commit/b34732cf655db60fbc798e12952f88c3edb07eaf) - **feat:** add `at` method to `array/fixed-endian-factory` [(#3184)](https://github.com/stdlib-js/stdlib/pull/3184) _(by Aayush Khanna, Athan Reines)_

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ Returns an array element located at integer position (index) `i`, with support f
349349
var Float64ArrayFE = fixedEndianFactory( 'float64' );
350350

351351
var arr = new Float64ArrayFE( 'little-endian', [ 1.0, 2.0, 3.0 ] );
352+
// returns <Float64ArrayFE>
352353

353354
var out = arr.at( 0 );
354355
// returns 1.0
@@ -363,6 +364,7 @@ If provided an out-of-bounds index, the method returns `undefined`.
363364
var Float64ArrayFE = fixedEndianFactory( 'float64' );
364365

365366
var arr = new Float64ArrayFE( 'little-endian', [ 1.0, 2.0, 3.0 ] );
367+
// returns <Float64ArrayFE>
366368

367369
var v = arr.at( 100 );
368370
// returns undefined
@@ -385,12 +387,13 @@ function isNegative( v ) {
385387
var Float64ArrayFE = fixedEndianFactory( 'float64' );
386388

387389
var arr = new Float64ArrayFE( 'little-endian', [ -1.0, -2.0, -3.0, -4.0 ] );
390+
// returns <Float64ArrayFE>
388391

389392
var bool = arr.every( isNegative );
390393
// returns true
391394
```
392395

393-
The invoked function is provided three arguments:
396+
The `predicate` function is provided three arguments:
394397

395398
- **value**: current array element.
396399
- **index**: current array element index.
@@ -407,6 +410,7 @@ function isPositive( v, i ) {
407410
var Float64ArrayFE = fixedEndianFactory( 'float64' );
408411

409412
var arr = new Float64ArrayFE( 'little-endian', [ 1.0, 2.0, -3.0 ] );
413+
// returns <Float64ArrayFE>
410414

411415
var context = {
412416
'count': 0
@@ -433,6 +437,7 @@ function log( v, i ) {
433437
var Float64ArrayFE = fixedEndianFactory( 'float64' );
434438

435439
var arr = new Float64ArrayFE( 'little-endian', 3 );
440+
// returns <Float64ArrayFE>
436441

437442
arr.set( 1.5, 0 );
438443
arr.set( 2.5, 1 );
@@ -463,6 +468,7 @@ function fcn( v, i ) {
463468
var Float64ArrayFE = fixedEndianFactory( 'float64' );
464469

465470
var arr = new Float64ArrayFE( 'little-endian', 3 );
471+
// returns <Float64ArrayFE>
466472

467473
var context = {
468474
'count': 0
@@ -488,6 +494,7 @@ Returns an array element located at a nonnegative integer position (index) `i`.
488494
var Float64ArrayFE = fixedEndianFactory( 'float64' );
489495

490496
var arr = new Float64ArrayFE( 'little-endian', 10 );
497+
// returns <Float64ArrayFE>
491498

492499
// Set the first element:
493500
arr.set( 1.0, 0 );
@@ -503,6 +510,7 @@ If provided an out-of-bounds index, the method returns `undefined`.
503510
var Float64ArrayFE = fixedEndianFactory( 'float64' );
504511

505512
var arr = new Float64ArrayFE( 'little-endian', 10 );
513+
// returns <Float64ArrayFE>
506514

507515
var v = arr.get( 100 );
508516
// returns undefined
@@ -570,6 +578,7 @@ Serializes an array as a string.
570578
var Float64ArrayFE = fixedEndianFactory( 'float64' );
571579

572580
var arr = new Float64ArrayFE( 'little-endian', [ 1.0, 2.0, 3.0 ] );
581+
// returns <Float64ArrayFE>
573582

574583
var str = arr.toString();
575584
// returns '1,2,3'

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
545545
* @memberof TypedArray.prototype
546546
* @type {Function}
547547
* @param {Function} predicate - predicate function
548-
* @param {*} [thisArg] - function invocation context
548+
* @param {*} [thisArg] - predicate function execution context
549549
* @throws {TypeError} `this` must be a typed array instance
550550
* @throws {TypeError} first argument must be a function
551551
* @returns {boolean} boolean indicating whether all elements pass a test

0 commit comments

Comments
 (0)