Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/ndarray/base/includes/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
if ( !isComplexLike( value ) ) {
return false;
}
// TODO: consider adding something like `complex/base/complex2object` where we normalize a user-provided complex-like object to a standardized object shape

Check warning on line 271 in lib/node_modules/@stdlib/ndarray/base/includes/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: consider adding something like...'
value = {
're': real( value ),
'im': imag( value )
Expand Down Expand Up @@ -305,7 +305,8 @@
}
// Check whether we were provided an empty ndarray...
if ( len === 0 ) {
return true;
// An empty array is a trivial case in which an array does not contain a search element:
return false;
}
// Determine whether the ndarray is one-dimensional and thus readily translates to a one-dimensional strided array...
if ( ndims === 1 ) {
Expand Down
Loading