You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/array/filled-by/lib/main.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -356,6 +356,7 @@ function filledarrayBy() {
356
356
}
357
357
thrownewTypeError('invalid argument. Must provide a length, typed array, array-like object, or an iterable. Value: `'+arg+'`.');
358
358
}
359
+
// TODO: there are possible performance improvements here. Namely, for array-like object and iterator source values, we need only know the length; otherwise, we traverse an output array twice, setting values along the way both times.
0 commit comments