Put in order · Vue.js course · Module 9: Composables & VueUse

Composable with a Parameter

Arrange a composable accepting a parameter:

Items to put in order

  • function usePagination(
  • items,
  • ) { ... }
  • perPage = 10

You can check the correct answer by solving this task in the CodeWorlds game.