2121/* eslint-disable max-lines */
2222
2323import contains = require( './../../../../base/assert/contains' ) ;
24+ import hasSameValues = require( './../../../../base/assert/has-same-values' ) ;
2425import isAccessorArray = require( './../../../../base/assert/is-accessor-array' ) ;
26+ import isComplex64Array = require( './../../../../base/assert/is-complex64array' ) ;
27+ import isComplex128Array = require( './../../../../base/assert/is-complex128array' ) ;
2528
2629/**
2730* Interface describing the `assert` namespace.
@@ -51,6 +54,26 @@ interface Namespace {
5154 */
5255 contains : typeof contains ;
5356
57+ /**
58+ * Tests if two arrays have the same values.
59+ *
60+ * ## Notes
61+ *
62+ * - If provided arrays of unequal length, the function returns `false`.
63+ *
64+ * @param x - first input array
65+ * @param y - second input array
66+ * @returns boolean indicating whether both arrays have the same values
67+ *
68+ * @example
69+ * var x = [ 0, 0, 1, 0 ];
70+ * var y = [ 0, 0, 1, 0 ];
71+ *
72+ * var out = ns.hasSameValues( x, y );
73+ * // returns true
74+ */
75+ hasSameValues : typeof hasSameValues ;
76+
5477 /**
5578 * Tests if an array-like object supports the accessor (get/set) protocol.
5679 *
@@ -69,6 +92,44 @@ interface Namespace {
6992 * // returns false
7093 */
7194 isAccessorArray : typeof isAccessorArray ;
95+
96+ /**
97+ * Tests if a value is a `Complex64Array`.
98+ *
99+ * @param value - value to test
100+ * @returns boolean indicating whether a value is a `Complex64Array`
101+ *
102+ * @example
103+ * var Complex64Array = require( './../../../../complex64' );
104+ *
105+ * var arr = new Complex64Array( 10 );
106+ * var bool = ns.isComplex64Array( arr );
107+ * // returns true
108+ *
109+ * @example
110+ * var bool = ns.isComplex64Array( [] );
111+ * // returns false
112+ */
113+ isComplex64Array : typeof isComplex64Array ;
114+
115+ /**
116+ * Tests if a value is a `Complex128Array`.
117+ *
118+ * @param value - value to test
119+ * @returns boolean indicating whether a value is a `Complex128Array`
120+ *
121+ * @example
122+ * var Complex128Array = require( './../../../../complex128' );
123+ *
124+ * var arr = new Complex128Array( 10 );
125+ * var bool = ns.isComplex128Array( arr );
126+ * // returns true
127+ *
128+ * @example
129+ * var bool = ns.isComplex128Array( [] );
130+ * // returns false
131+ */
132+ isComplex128Array : typeof isComplex128Array ;
72133}
73134
74135/**
0 commit comments