diff --git a/lib/node_modules/@stdlib/array/uint64/README.md b/lib/node_modules/@stdlib/array/uint64/README.md index 135bbba2b154..9e7ea549f00d 100644 --- a/lib/node_modules/@stdlib/array/uint64/README.md +++ b/lib/node_modules/@stdlib/array/uint64/README.md @@ -278,6 +278,44 @@ z = arr.at( -100 ); // returns undefined ``` + + +#### Uint64Array.prototype.entries() + +Returns an iterator for iterating over array key-value pairs. + +```javascript +var Uint64 = require( '@stdlib/number/uint64/ctor' ); + +var arr = [ + new Uint64( 1 ), + new Uint64( 2 ), + new Uint64( 3 ) +]; +arr = new Uint64Array( arr ); + +// Create an iterator: +var it = arr.entries(); + +// Iterate over the key-value pairs... +var v = it.next().value; +// returns [ 0, [ 1n ] ] + +v = it.next().value; +// returns [ 1, [ 2n ] ] + +v = it.next().value; +// returns [ 2, [ 3n ] ] + +var bool = it.next().done; +// returns true +``` + +The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the following properties: + +- **next**: function which returns an [iterator][mdn-iterator-protocol] protocol-compliant object containing the next iterated value (if one exists) assigned to a `value` property and a `done` property having a `boolean` value indicating whether the [iterator][mdn-iterator-protocol] is finished. +- **return**: function which closes an [iterator][mdn-iterator-protocol] and returns a single (optional) argument in an [iterator][mdn-iterator-protocol] protocol-compliant object. + #### Uint64Array.prototype.get( i ) @@ -466,6 +504,8 @@ logEach( '%s', out );