From 206399dbf59fb5607731bb7b01010b0f3b5b9d54 Mon Sep 17 00:00:00 2001 From: Dirk Heniges Date: Thu, 6 Jun 2024 08:22:31 -0700 Subject: [PATCH] Update items.md Get Paged Items docs to reflect correct async iterator usage --- docs/sp/items.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }