Skip to content

Commit aa6cac7

Browse files
committed
refactor: use base assertion utility
1 parent 68d21bb commit aa6cac7

File tree

1 file changed

+1
-16
lines changed
  • lib/node_modules/@stdlib/array/complex64/lib

1 file changed

+1
-16
lines changed

lib/node_modules/@stdlib/array/complex64/lib/main.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var isFunction = require( '@stdlib/assert/is-function' );
3333
var isComplexLike = require( '@stdlib/assert/is-complex-like' );
3434
var isEven = require( '@stdlib/math/base/assert/is-even' );
3535
var isInteger = require( '@stdlib/math/base/assert/is-integer' );
36+
var isComplex64Array = require( '@stdlib/array/base/assert/is-complex64array' );
3637
var hasIteratorSymbolSupport = require( '@stdlib/assert/has-iterator-symbol-support' );
3738
var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' );
3839
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
@@ -101,22 +102,6 @@ function isComplexArrayConstructor( value ) {
101102
);
102103
}
103104

104-
/**
105-
* Returns a boolean indicating if a value is a `Complex64Array`.
106-
*
107-
* @private
108-
* @param {*} value - value to test
109-
* @returns {boolean} boolean indicating if a value is a `Complex64Array`
110-
*/
111-
function isComplex64Array( value ) { // TODO: move to array/base/assert/is-complex64-array
112-
return (
113-
typeof value === 'object' &&
114-
value !== null &&
115-
value.constructor.name === 'Complex64Array' &&
116-
value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT
117-
);
118-
}
119-
120105
/**
121106
* Returns a boolean indicating if a value is a `Complex128Array`.
122107
*

0 commit comments

Comments
 (0)