Created
July 30, 2020 21:27
-
-
Save Robzelf/9c97f9d95264d8d392448773834c9fc3 to your computer and use it in GitHub Desktop.
Paginate through array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page_through_array: function( page_size, page_number ) { | |
return = _array.slice( ( page_number - 1 ) * page_size, page_number * page_size ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment