Created
July 10, 2020 10:28
-
-
Save coder618/b83600e2cb302168951cfd7bd8276e29 to your computer and use it in GitHub Desktop.
Revisions
-
coder618 created this gist
Jul 10, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function returnIndex() { var postsPerPage = 12; console.log('return start endindex ', page, postsPerPage); let startIndex = postsPerPage * page; let endIndex = startIndex + postsPerPage; return [ startIndex, endIndex ]; }