Skip to content

Commit cdd914b

Browse files
committed
Auto-generated commit
1 parent 2ff5b95 commit cdd914b

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-01-11)
7+
## Unreleased (2025-01-12)
88

99
<section class="packages">
1010

@@ -20,6 +20,7 @@
2020

2121
##### Features
2222

23+
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706)
2324
- [`d11aaf3`](https://github.com/stdlib-js/stdlib/commit/d11aaf3e4ea651384185655584eea9c5b8ca9ae2) - add `isSortedAscending` to namespace
2425
- [`8b1548f`](https://github.com/stdlib-js/stdlib/commit/8b1548fb45c1ff131f5edac20cb984344a2d28ec) - update namespace TypeScript declarations [(#3190)](https://github.com/stdlib-js/stdlib/pull/3190)
2526
- [`43aa58f`](https://github.com/stdlib-js/stdlib/commit/43aa58f81dcad604f11a5715a1546c015b0a9623) - add `isByteOrder` to namespace
@@ -172,6 +173,8 @@ A total of 3 people contributed to this release. Thank you to the following cont
172173

173174
<details>
174175

176+
- [`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)_
177+
- [`cff470f`](https://github.com/stdlib-js/stdlib/commit/cff470f9608165100c8c122fce70c40b1af864ec) - **docs:** update namespace table of contents (#4708) _(by stdlib-bot, Planeshifter)_
175178
- [`d11aaf3`](https://github.com/stdlib-js/stdlib/commit/d11aaf3e4ea651384185655584eea9c5b8ca9ae2) - **feat:** add `isSortedAscending` to namespace _(by Athan Reines)_
176179
- [`5a848eb`](https://github.com/stdlib-js/stdlib/commit/5a848ebda6a2ff9cc34cfa5cf93ffce65b8bab0e) - **feat:** add `array/base/assert/is-sorted-ascending` _(by Athan Reines)_
177180
- [`1d9e4dd`](https://github.com/stdlib-js/stdlib/commit/1d9e4dd5514ba4f3c1063dff732e37254dc0dd84) - **docs:** add missing comment _(by Athan Reines)_

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ The namespace exports the following:
100100
- <span class="signature">[`isSafeDataTypeCast( from, to )`][@stdlib/array/base/assert/is-safe-data-type-cast]</span><span class="delimiter">: </span><span class="description">determine whether an array data type can be safely cast to another array data type.</span>
101101
- <span class="signature">[`isSameKindDataTypeCast( from, to )`][@stdlib/array/base/assert/is-same-kind-data-type-cast]</span><span class="delimiter">: </span><span class="description">determine whether an array data type can be safely cast to, or is of the same "kind" as, another array data type.</span>
102102
- <span class="signature">[`isSignedIntegerDataType( value )`][@stdlib/array/base/assert/is-signed-integer-data-type]</span><span class="delimiter">: </span><span class="description">test if an input value is a supported array signed integer data type.</span>
103+
- <span class="signature">[`isSortedAscending( x )`][@stdlib/array/base/assert/is-sorted-ascending]</span><span class="delimiter">: </span><span class="description">test if an array is sorted in ascending order.</span>
103104
- <span class="signature">[`isUnsignedIntegerDataType( value )`][@stdlib/array/base/assert/is-unsigned-integer-data-type]</span><span class="delimiter">: </span><span class="description">test if an input value is a supported array unsigned integer data type.</span>
104105

105106
</div>
@@ -319,6 +320,8 @@ Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
319320

320321
[@stdlib/array/base/assert/is-signed-integer-data-type]: https://github.com/stdlib-js/array-base-assert-is-signed-integer-data-type
321322

323+
[@stdlib/array/base/assert/is-sorted-ascending]: https://github.com/stdlib-js/array-base-assert-is-sorted-ascending
324+
322325
[@stdlib/array/base/assert/is-unsigned-integer-data-type]: https://github.com/stdlib-js/array-base-assert-is-unsigned-integer-data-type
323326

324327
<!-- </toc-links> -->

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( '@stdlib/array-base-assert-is-real
4242
import isSafeDataTypeCast = require( '@stdlib/array-base-assert-is-safe-data-type-cast' );
4343
import isSameKindDataTypeCast = require( '@stdlib/array-base-assert-is-same-kind-data-type-cast' );
4444
import isSignedIntegerDataType = require( '@stdlib/array-base-assert-is-signed-integer-data-type' );
45+
import isSortedAscending = require( '@stdlib/array-base-assert-is-sorted-ascending' );
4546
import isUnsignedIntegerDataType = require( '@stdlib/array-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)