Skip to content

Commit 4a5ce60

Browse files
committed
Auto-generated commit
1 parent 6b3af7c commit 4a5ce60

File tree

14 files changed

+22229
-1
lines changed

14 files changed

+22229
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`76ea5a8`](https://github.com/stdlib-js/stdlib/commit/76ea5a8e8d964f78aa953ae4822345d3c1e3a6ae) - add missing tests to `ndarray/base/includes` [(#7304)](https://github.com/stdlib-js/stdlib/pull/7304)
1314
- [`f7c56f9`](https://github.com/stdlib-js/stdlib/commit/f7c56f9f6bdc0a64518d7ed0def31c9a3753b206) - add support for `float16`, `complex32`, `int64`, and `uint64` dtypes
1415
- [`d979fb3`](https://github.com/stdlib-js/stdlib/commit/d979fb33794fae5c14e2bbc78a77387ab8a407cb) - add support for `float16`, `complex32`, `int64`, and `uint64` dtypes
1516
- [`6ccfa0f`](https://github.com/stdlib-js/stdlib/commit/6ccfa0fe61914f7812d55608d963affdb4500b2d) - add support for `float16`, `complex32`, `int64`, and `uint64` dtypes
@@ -482,6 +483,7 @@ A total of 20 issues were closed in this release:
482483

483484
<details>
484485

486+
- [`76ea5a8`](https://github.com/stdlib-js/stdlib/commit/76ea5a8e8d964f78aa953ae4822345d3c1e3a6ae) - **feat:** add missing tests to `ndarray/base/includes` [(#7304)](https://github.com/stdlib-js/stdlib/pull/7304) _(by Muhammad Haris, Athan Reines)_
485487
- [`82ef59a`](https://github.com/stdlib-js/stdlib/commit/82ef59aadd8de578d9a57780108e3ff4cb440dfe) - **bench:** ensure values are within bounds _(by Athan Reines)_
486488
- [`bd03989`](https://github.com/stdlib-js/stdlib/commit/bd03989d684053a787d91f33dc9f7e5963d8f478) - **fix:** add missing table _(by Athan Reines)_
487489
- [`f7c56f9`](https://github.com/stdlib-js/stdlib/commit/f7c56f9f6bdc0a64518d7ed0def31c9a3753b206) - **feat:** add support for `float16`, `complex32`, `int64`, and `uint64` dtypes _(by Athan Reines)_

base/includes/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ function includes( arrays ) {
305305
}
306306
// Check whether we were provided an empty ndarray...
307307
if ( len === 0 ) {
308-
return true;
308+
// An empty array is a trivial case in which an array does not contain a search element:
309+
return false;
309310
}
310311
// Determine whether the ndarray is one-dimensional and thus readily translates to a one-dimensional strided array...
311312
if ( ndims === 1 ) {

0 commit comments

Comments
 (0)