Skip to content

Commit 87d2120

Browse files
committed
refactor: use base assertion utility
1 parent 4331e1f commit 87d2120

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ 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' );
3636
var isComplex64Array = require( '@stdlib/array/base/assert/is-complex64array' );
37+
var isComplex128Array = require( '@stdlib/array/base/assert/is-complex128array' );
3738
var hasIteratorSymbolSupport = require( '@stdlib/assert/has-iterator-symbol-support' );
3839
var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' );
3940
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
@@ -102,22 +103,6 @@ function isComplexArrayConstructor( value ) {
102103
);
103104
}
104105

105-
/**
106-
* Returns a boolean indicating if a value is a `Complex128Array`.
107-
*
108-
* @private
109-
* @param {*} value - value to test
110-
* @returns {boolean} boolean indicating if a value is a `Complex128Array`
111-
*/
112-
function isComplex128Array( value ) { // TODO: move to array/base/assert/is-complex128-array
113-
return (
114-
typeof value === 'object' &&
115-
value !== null &&
116-
value.constructor.name === 'Complex128Array' &&
117-
value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT*2
118-
);
119-
}
120-
121106
/**
122107
* Retrieves a complex number from a complex number array buffer.
123108
*

0 commit comments

Comments
 (0)