Skip to content

Commit 758aa55

Browse files
committed
Fix off-by-one bug and update param type
1 parent 8e86370 commit 758aa55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function fromIteratorMap( it, clbk, thisArg ) {
4444
var i;
4545

4646
out = [];
47-
i = 0;
47+
i = -1;
4848
while ( true ) {
4949
i += 1;
5050
v = it.next();

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ defineProperty( Complex64Array, 'BYTES_PER_ELEMENT', {
284284
* @name from
285285
* @memberof Complex64Array
286286
* @type {Function}
287-
* @param {(ArrayLikeObject|Object)} src - array-like object or iterable
287+
* @param {(ArrayLikeObject|Iterable)} src - array-like object or iterable
288288
* @param {Function} [clbk] - callback to invoke for each source element
289289
* @param {*} [thisArg] - context
290290
* @throws {TypeError} `this` context must be a constructor

0 commit comments

Comments
 (0)