Skip to content

Commit 7622983

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent af083fb commit 7622983

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/node_modules/@stdlib/array/complex128/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ To invoke a function for each `src` value, provide a callback function. If `src`
339339
var Complex128 = require( '@stdlib/complex/float64/ctor' );
340340
var real = require( '@stdlib/complex/float64/real' );
341341
var imag = require( '@stdlib/complex/float64/imag' );
342+
342343
function map( z ) {
343344
return new Complex128( real(z)*2.0, imag(z)*2.0 );
344345
}
@@ -773,6 +774,7 @@ Returns a new array containing the elements of an array which pass a test implem
773774
```javascript
774775
var real = require( '@stdlib/complex/float64/real' );
775776
var imag = require( '@stdlib/complex/float64/imag' );
777+
776778
function predicate( v ) {
777779
return ( real( v ) === imag( v ) );
778780
}
@@ -841,6 +843,7 @@ Returns the first element in an array for which a predicate function returns a t
841843
```javascript
842844
var real = require( '@stdlib/complex/float64/real' );
843845
var imag = require( '@stdlib/complex/float64/imag' );
846+
844847
function predicate( v ) {
845848
return ( real( v ) === imag( v ) );
846849
}
@@ -867,6 +870,7 @@ To set the function execution context, provide a `thisArg`.
867870
```javascript
868871
var real = require( '@stdlib/complex/float64/real' );
869872
var imag = require( '@stdlib/complex/float64/imag' );
873+
870874
function predicate( v, i ) {
871875
this.count += 1;
872876
return ( i >= 0 && real( v ) === imag( v ) );
@@ -959,6 +963,7 @@ Returns the last element in an array for which a predicate function returns a tr
959963
```javascript
960964
var real = require( '@stdlib/complex/float64/real' );
961965
var imag = require( '@stdlib/complex/float64/imag' );
966+
962967
function predicate( v ) {
963968
return ( real( v ) === imag( v ) );
964969
}
@@ -985,6 +990,7 @@ To set the function execution context, provide a `thisArg`.
985990
```javascript
986991
var real = require( '@stdlib/complex/float64/real' );
987992
var imag = require( '@stdlib/complex/float64/imag' );
993+
988994
function predicate( v, i ) {
989995
this.count += 1;
990996
return ( i >= 0 && real( v ) === imag( v ) );

lib/node_modules/@stdlib/array/complex128/lib/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,6 @@ setReadOnly( Complex128Array, 'of', function of() {
550550
* @returns {(Complex128|void)} array element
551551
*
552552
* @example
553-
*
554553
* var arr = new Complex128Array( 10 );
555554
*
556555
* var z = arr.at( 0 );
@@ -882,7 +881,6 @@ setReadOnly( Complex128Array.prototype, 'every', function every( predicate, this
882881
* @returns {Complex128Array} modified array
883882
*
884883
* @example
885-
*
886884
* var arr = new Complex128Array( 3 );
887885
*
888886
* arr.fill( new Complex128( 1.0, 1.0 ), 1 );
@@ -961,7 +959,6 @@ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end
961959
* @returns {Complex128Array} complex number array
962960
*
963961
* @example
964-
*
965962
* function predicate( v ) {
966963
* return ( real( v ) === imag( v ) );
967964
* }
@@ -1016,7 +1013,6 @@ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, th
10161013
* @returns {(Complex128|void)} array element or undefined
10171014
*
10181015
* @example
1019-
*
10201016
* function predicate( v ) {
10211017
* return ( real( v ) === imag( v ) );
10221018
* }

0 commit comments

Comments
 (0)