Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 29, 2023
1 parent 401a602 commit 09e67b9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ idx = arr.lastIndexOf( new Complex64( 2.0, -2.0 ), 0 );

#### Complex64Array.prototype.map( callbackFn\[, thisArg] )

Returns a new array with each element being the result of the callback function.
Returns a new array with each element being the result of a provided callback function.

```javascript
var Complex64 = require( '@stdlib/complex-float32' );
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ type UnaryMapFcn<U> = ( this: U, value: Complex64 ) => ComplexLike | ArrayLike<n
*
* @param value - current array element
* @param index - current array element index
* @returns transformed
* @returns transformed value
*/
type BinaryMapFcn<U> = ( this: U, value: Complex64, index: number ) => ComplexLike | ArrayLike<number>;

Expand Down Expand Up @@ -722,11 +722,11 @@ declare class Complex64Array implements Complex64ArrayInterface {
lastIndexOf( searchElement: ComplexLike, fromIndex?: number ): number;

/**
* Returns a new array with each element being the result of the callback function.
* Returns a new array with each element being the result of a provided callback function.
*
* @param fcn - callback function
* @param thisArg - execution context
* @returns new array containing elements which are the result of the callback function
* @returns new array containing transformed elements
*
* @example
* var Complex64 = require( '@stdlib/complex-float32' );
Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ setReadOnlyAccessor( Complex64Array.prototype, 'length', function get() {
});

/**
* Returns a new array with each element being the result of the callback function.
* Returns a new array with each element being the result of a provided callback function.
*
* @name map
* @memberof Complex64Array.prototype
Expand Down
4 changes: 2 additions & 2 deletions test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ tape( 'the method returns an empty array if operating on an empty complex number
t.end();
});

tape( 'the method returns a new complex number array containing elements which are the result of callback function', function test( t ) {
tape( 'the method returns a new complex number array containing elements which are the result of a provided callback function', function test( t ) {
var expected;
var actual;
var arr;
Expand Down Expand Up @@ -185,7 +185,7 @@ tape( 'the method supports a map function which returns a two-element array cont
}
});

tape( 'the method throws an error if provided a map function which does not return complex number or array of length 2 containing real and imaginary components', function test( t ) {
tape( 'the method throws an error if provided a map function which does not return a complex number or an array of length 2 containing real and imaginary components', function test( t ) {
var clbks;
var arr;
var i;
Expand Down

0 comments on commit 09e67b9

Please sign in to comment.