6- Pagination- Paginating Data

Hi,

Can someone please explain this piece of code (Paginate.js) in details in terms of what exactly is happening?
i’m kind of confused!

Here are the other components:

Thanks!

It basically reads "For the given items, extract pageSize number of elements starting from startIndex"

.slice with one argument returns an array from the given index to the end.
.take extracts the given number of elements from the array.
.value() returns the output of applying preceding operation.

1 Like