diff --git a/docs/sp/items.md b/docs/sp/items.md index 9f1170090..8e3336ad3 100644 --- a/docs/sp/items.md +++ b/docs/sp/items.md @@ -42,7 +42,7 @@ import "@pnp/sp/items"; const sp = spfi(...); // Using async iterator to loop through pages of items in a large list -for await (const items of sp.web.lists.getByTitle("BigList").items()) { +for await (const items of sp.web.lists.getByTitle("BigList").items) { console.log(items); break; // closes the iterator, returns }