Skip to content

Commit d0bd8f1

Browse files
committed
Auto-generated commit
1 parent 87b82bb commit d0bd8f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

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

427427
<details>
428428

429+
- [`b3d811d`](https://github.com/stdlib-js/stdlib/commit/b3d811d4d6ba1aed9aa1c5e012bba252c99929b6) - **refactor:** reorder expressions _(by Athan Reines)_
429430
- [`d76442e`](https://github.com/stdlib-js/stdlib/commit/d76442e623bf8b7e8e4d50b80e90315b84cbf771) - **refactor:** add missing assertion _(by Athan Reines)_
430431
- [`aec1d1b`](https://github.com/stdlib-js/stdlib/commit/aec1d1b77f2f320cf740954b3c8147b1c90aded7) - **chore:** add TODO _(by Athan Reines)_
431432
- [`f99ec78`](https://github.com/stdlib-js/stdlib/commit/f99ec78d011d093ea3a102371d615f636a643b0a) - **refactor:** add missing assertion _(by Athan Reines)_

count-if/lib/assign.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ function assign( x, y, options, predicate, thisArg ) {
103103
if ( !isndarrayLike( y ) ) {
104104
throw new TypeError( format( 'invalid argument. Second argument must be an ndarray-like object. Value: `%s`.', y ) );
105105
}
106-
N = ndims( x );
107-
108106
// Case: assign( x, y, predicate )
109107
if ( nargs < 4 ) {
110108
cb = options;
@@ -137,6 +135,7 @@ function assign( x, y, options, predicate, thisArg ) {
137135
else {
138136
throw new TypeError( format( 'invalid argument. Fourth argument must be a function. Value: `%s`.', predicate ) );
139137
}
138+
N = ndims( x );
140139
opts = objectAssign( {}, defaults );
141140
if ( flg ) {
142141
err = validate( opts, N, o );

0 commit comments

Comments
 (0)