Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 30d7379

Browse files
committed
fix offset for iterable
1 parent 0f65000 commit 30d7379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getCollectionEntries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function getEntries(type, collection, from=0, to=Infinity) {
2929
if (idx > to) {
3030
done = false;
3131
break;
32-
} if (from < idx) {
32+
} if (from <= idx) {
3333
entries.push({ key: idx, value: item });
3434
}
3535
idx++;

0 commit comments

Comments
 (0)