Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/uint64/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ var arr = Uint64Array.from( [ 1, 2 ], mapFcn );
A callback function is provided two arguments:

- **value**: source value.
- **index**: source index..
- **index**: source index.

To set the callback execution context, provide a `thisArg`.

Expand Down Expand Up @@ -391,7 +391,7 @@ var arr = [
out = new Uint64Array( arr );
logEach( '%s', out );

// Create a 64-bit unsigned integer array from an typed array:
// Create a 64-bit unsigned integer array from a typed array:
arr = new Uint32Array( [ 1, 2, 3, 4 ] );
out = new Uint64Array( arr );
logEach( '%s', out );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
var hasBigIntSupport = require( '@stdlib/assert/has-bigint-support' );
var BigInt = require( '@stdlib/bigint/ctor' );
var Uint64 = require( '@stdlib/number/uint64/ctor' );
var Uint32Array = require( '@stdlib/array/float64' );
var Uint32Array = require( '@stdlib/array/uint32' );
var zeroTo = require( '@stdlib/array/zero-to' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint64/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var arr = [
out = new Uint64Array( arr );
logEach( '%s', out );

// Create a 64-bit unsigned integer array from an typed array:
// Create a 64-bit unsigned integer array from a typed array:
arr = new Uint32Array( [ 1, 2, 3, 4 ] );
out = new Uint64Array( arr );
logEach( '%s', out );
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint64/lib/from_array.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var indices = require( './indices.js' );
// MAIN //

/**
* Returns a strided array of high and low words..
* Returns a strided array of high and low words.
*
* @private
* @param {Uint32Array} buf - output array
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/array/uint64/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
return (
value instanceof Uint64Array ||
(
typeof value === 'object' &&
value !== null &&
value.constructor.name === 'Uint64Array' &&
value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT &&
typeof value === 'object' &&
typeof value._length === 'number' && // eslint-disable-line no-underscore-dangle

// NOTE: we don't perform a more rigorous test here for a typed array for performance reasons, as robustly checking for a typed array instance could require walking the prototype tree and performing relatively expensive constructor checks...
Expand Down Expand Up @@ -325,7 +325,7 @@
* @throws {TypeError} second argument must be a function
* @throws {TypeError} an array element must be either a 64-bit unsigned integer or a value which can be converted to a 64-bit unsigned integer
* @throws {TypeError} an iterator must return either a 64-bit unsigned integer or a value which can be converted to a 64-bit unsigned integer
8 @throws {TypeError} when provided an iterator, a callback must return either a 64-bit unsigned integer or a value which can be converted to a 64-bit unsigned integer
* @throws {TypeError} when provided an iterator, a callback must return either a 64-bit unsigned integer or a value which can be converted to a 64-bit unsigned integer
* @returns {Uint64Array} 64-bit unsigned integer array
*
* @example
Expand Down Expand Up @@ -434,7 +434,7 @@
len = tmp.length / 2;
out = new this( len );
buf = out._buffer; // eslint-disable-line no-underscore-dangle
for ( i = 0; i < len; i += 2 ) {
for ( i = 0; i < tmp.length; i += 2 ) {
buf[ i+indices.HIGH ] = tmp[ i ];
buf[ i+indices.LOW ] = tmp[ i+1 ];
}
Expand Down Expand Up @@ -496,7 +496,7 @@
});

/**
* Size (in bytes) of the array.
* Size (in bytes) of the array.
*
* @name byteLength
* @memberof Uint64Array.prototype
Expand All @@ -514,7 +514,7 @@
});

/**
* Offset (in bytes) of the array from the start of its underlying `ArrayBuffer`.
* Offset (in bytes) of the array from the start of its underlying `ArrayBuffer`.
*
* @name byteOffset
* @memberof Uint64Array.prototype
Expand Down Expand Up @@ -685,7 +685,7 @@
buf[ idx+indices.LOW ] = words[ 1 ];
return;
}
if ( isNonNegativeInteger( value ) || ( isBigInt( value ) && isNonNegativeInteger( Number( value ) ) ) ) {

Check warning on line 688 in lib/node_modules/@stdlib/array/uint64/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 110. Maximum allowed is 80
if ( idx >= this._length ) {
throw new RangeError( format( 'invalid argument. Index argument is out-of-bounds. Value: `%u`.', idx ) );
}
Expand Down Expand Up @@ -748,7 +748,7 @@
// We need to copy source values...
tmp = new Uint32Array( sbuf.length );
for ( i = 0; i < sbuf.length; i++ ) {
tmp[ i ] = sbuf[ i ]; // TODO: handle accessor arrays

Check warning on line 751 in lib/node_modules/@stdlib/array/uint64/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: handle accessor arrays'
}
sbuf = tmp;
}
Expand Down