Skip to content

Commit 2f0045e

Browse files
committed
Auto-generated commit
1 parent 755e998 commit 2f0045e

File tree

3 files changed

+807
-36
lines changed

3 files changed

+807
-36
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
##### Features
6666

67+
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706)
6768
- [`04f5785`](https://github.com/stdlib-js/stdlib/commit/04f5785ed011a7b0701eba10274cf4308f16bbad) - add `scatterFilled` to namespace
6869
- [`5682699`](https://github.com/stdlib-js/stdlib/commit/56826996a6bc1179b9b99e33f81c814100a8fb78) - add `scattered` to namespace
6970
- [`af3a2de`](https://github.com/stdlib-js/stdlib/commit/af3a2dece5c5d061c2ca2e13693a867cd4e77a97) - add `fill` to namespace
@@ -122,6 +123,7 @@
122123

123124
##### Features
124125

126+
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706)
125127
- [`d11aaf3`](https://github.com/stdlib-js/stdlib/commit/d11aaf3e4ea651384185655584eea9c5b8ca9ae2) - add `isSortedAscending` to namespace
126128
- [`8b1548f`](https://github.com/stdlib-js/stdlib/commit/8b1548fb45c1ff131f5edac20cb984344a2d28ec) - update namespace TypeScript declarations [(#3190)](https://github.com/stdlib-js/stdlib/pull/3190)
127129

@@ -1092,6 +1094,7 @@ A total of 12 people contributed to this release. Thank you to the following con
10921094

10931095
<details>
10941096

1097+
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - **feat:** update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706) _(by stdlib-bot)_
10951098
- [`cff470f`](https://github.com/stdlib-js/stdlib/commit/cff470f9608165100c8c122fce70c40b1af864ec) - **docs:** update namespace table of contents (#4708) _(by stdlib-bot, Planeshifter)_
10961099
- [`d11aaf3`](https://github.com/stdlib-js/stdlib/commit/d11aaf3e4ea651384185655584eea9c5b8ca9ae2) - **feat:** add `isSortedAscending` to namespace _(by Athan Reines)_
10971100
- [`5a848eb`](https://github.com/stdlib-js/stdlib/commit/5a848ebda6a2ff9cc34cfa5cf93ffce65b8bab0e) - **feat:** add `array/base/assert/is-sorted-ascending` _(by Athan Reines)_

base/assert/docs/types/index.d.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import isRealFloatingPointDataType = require( './../../../../base/assert/is-real
4242
import isSafeDataTypeCast = require( './../../../../base/assert/is-safe-data-type-cast' );
4343
import isSameKindDataTypeCast = require( './../../../../base/assert/is-same-kind-data-type-cast' );
4444
import isSignedIntegerDataType = require( './../../../../base/assert/is-signed-integer-data-type' );
45+
import isSortedAscending = require( './../../../../base/assert/is-sorted-ascending' );
4546
import isUnsignedIntegerDataType = require( './../../../../base/assert/is-unsigned-integer-data-type' );
4647

4748
/**
@@ -689,6 +690,38 @@ interface Namespace {
689690
*/
690691
isSignedIntegerDataType: typeof isSignedIntegerDataType;
691692

693+
/**
694+
* Tests if an array is sorted in ascending order.
695+
*
696+
* @param x - input array
697+
* @returns boolean indicating if an array is sorted in ascending order
698+
*
699+
* @example
700+
* var out = ns.isSortedAscending( [ 1, 2, 3 ] );
701+
* // returns true
702+
*
703+
* @example
704+
* var out = ns.isSortedAscending( [ 3, 2, 1 ] );
705+
* // returns false
706+
*
707+
* @example
708+
* var out = ns.isSortedAscending( [ 3, 3, 3 ] );
709+
* // returns true
710+
*
711+
* @example
712+
* var out = ns.isSortedAscending( [ 3 ] );
713+
* // returns true
714+
*
715+
* @example
716+
* var out = ns.isSortedAscending( [] );
717+
* // returns false
718+
*
719+
* @example
720+
* var out = ns.isSortedAscending( [ 1, 3, 2 ] );
721+
* // returns false
722+
*/
723+
isSortedAscending: typeof isSortedAscending;
724+
692725
/**
693726
* Tests whether an input value is a supported array unsigned integer data type.
694727
*

0 commit comments

Comments
 (0)