> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # PageRefList API reference for the PageRefList type. A list containing the references to pages in the design. ## Methods Gets the number of items in the list. **Returns** The number of items. `number` Converts the list to an array. **Returns** An array containing all items. The items are the same as in the list. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). Executes a function for each item in the list. **Parameters** The function to run for each item. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Parameters** The current item in the list. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Returns** `void` **Returns** `void` Creates a new array with items that match a specific type. **Parameters** A function that checks if an item is of type `C`. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Parameters** The item to test. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Returns** `true` if the item is of type `C`, otherwise `false`. `item is C` **Returns** An array of items that are of type `C`. readonly `C`\[] Creates a new array with items that pass a test. **Parameters** A function that tests each item. Returns `true` to keep the item. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Parameters** The item to test. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/). **Returns** `true` if the item should be included, otherwise `false`. `boolean` **Returns** An array of items that passed the test. For more information, see [PageRef](/docs/apps/api/latest/design-types-page-ref/).