From e823d0f1c0935cf8c2c04c582aa99e9d51fe62fa Mon Sep 17 00:00:00 2001 From: Rudraksh Raina <1819rudraksh@gmail.com> Date: Tue, 14 Oct 2025 13:39:49 +0530 Subject: [PATCH 1/4] fixed issues #8227 #8235 --- .../assert/is-nonpositive-integer-array/examples/index.js | 3 +-- .../@stdlib/utils/some-by-right/examples/index.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js index d54303fb4e55..c176e3afaf0e 100644 --- a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js @@ -16,9 +16,8 @@ * limitations under the License. */ -/* eslint-disable no-new-wrappers */ - 'use strict'; + 'use strict'; var Number = require( '@stdlib/number/ctor' ); var isNonPositiveIntegerArray = require( './../lib' ); diff --git a/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js b/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js index 1db41922db1b..8440b5944fb5 100644 --- a/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js +++ b/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js @@ -29,9 +29,9 @@ var bool; var arr; var i; -arr = new Array( 100 ); -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = randu(); +arr = []; +for ( i = 0; i < 100; i++ ) { + arr.push( randu() ); } bool = someByRight( arr, 5, threshold ); From 1618c8af8b975e8099a4556fc8c758558b3b0277 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 14 Oct 2025 06:47:42 -0700 Subject: [PATCH 2/4] style: remove space Signed-off-by: Athan --- .../assert/is-nonpositive-integer-array/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js index c176e3afaf0e..a9d0d0a25bc4 100644 --- a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js @@ -17,7 +17,7 @@ */ 'use strict'; - 'use strict'; +'use strict'; var Number = require( '@stdlib/number/ctor' ); var isNonPositiveIntegerArray = require( './../lib' ); From aeb6b9b3064eff13bcd56f264257834fd1cac52f Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 14 Oct 2025 06:47:55 -0700 Subject: [PATCH 3/4] Discard changes to lib/node_modules/@stdlib/utils/some-by-right/examples/index.js --- .../@stdlib/utils/some-by-right/examples/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js b/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js index 8440b5944fb5..1db41922db1b 100644 --- a/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js +++ b/lib/node_modules/@stdlib/utils/some-by-right/examples/index.js @@ -29,9 +29,9 @@ var bool; var arr; var i; -arr = []; -for ( i = 0; i < 100; i++ ) { - arr.push( randu() ); +arr = new Array( 100 ); +for ( i = 0; i < arr.length; i++ ) { + arr[ i ] = randu(); } bool = someByRight( arr, 5, threshold ); From 26f4c0af2fba8a245e130a3af9321d420a1f9604 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 14 Oct 2025 06:48:28 -0700 Subject: [PATCH 4/4] chore: remove duplicate directive Signed-off-by: Athan --- .../assert/is-nonpositive-integer-array/examples/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js index a9d0d0a25bc4..83840e664da3 100644 --- a/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonpositive-integer-array/examples/index.js @@ -16,7 +16,6 @@ * limitations under the License. */ -'use strict'; 'use strict'; var Number = require( '@stdlib/number/ctor' );