first commit
This commit is contained in:
1
resources/js/plugins/fake-api/utils/paginateArray.js
Normal file
1
resources/js/plugins/fake-api/utils/paginateArray.js
Normal file
@@ -0,0 +1 @@
|
||||
export const paginateArray = (array, perPage, page) => array.slice((page - 1) * perPage, page * perPage)
|
Reference in New Issue
Block a user