Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 14, 2024
1 parent 6083adc commit ace6419
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js.map

Large diffs are not rendered by default.

17 changes: 1 addition & 16 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var isComplexLike = require( '@stdlib/assert-is-complex-like' );
var isEven = require( '@stdlib/math-base-assert-is-even' );
var isInteger = require( '@stdlib/math-base-assert-is-integer' );
var isComplex64Array = require( '@stdlib/array-base-assert-is-complex64array' );
var isComplex128Array = require( '@stdlib/array-base-assert-is-complex128array' );
var hasIteratorSymbolSupport = require( '@stdlib/assert-has-iterator-symbol-support' );
var ITERATOR_SYMBOL = require( '@stdlib/symbol-iterator' );
var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );
Expand Down Expand Up @@ -102,22 +103,6 @@ function isComplexArrayConstructor( value ) {
);
}

/**
* Returns a boolean indicating if a value is a `Complex128Array`.
*
* @private
* @param {*} value - value to test
* @returns {boolean} boolean indicating if a value is a `Complex128Array`
*/
function isComplex128Array( value ) { // TODO: move to array/base/assert/is-complex128-array
return (
typeof value === 'object' &&
value !== null &&
value.constructor.name === 'Complex128Array' &&
value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT*2
);
}

/**
* Retrieves a complex number from a complex number array buffer.
*
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"dependencies": {
"@stdlib/array-base-accessor-getter": "^0.1.0",
"@stdlib/array-base-assert-is-complex128array": "github:stdlib-js/array-base-assert-is-complex128array#main",
"@stdlib/array-base-assert-is-complex64array": "github:stdlib-js/array-base-assert-is-complex64array#main",
"@stdlib/array-base-getter": "^0.1.0",
"@stdlib/array-float32": "^0.1.1",
Expand Down

0 comments on commit ace6419

Please sign in to comment.