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