Created
June 11, 2018 11:29
-
-
Save malikkurosaki/b8fe45a33cdc851bdd84826d09365b36 to your computer and use it in GitHub Desktop.
create pagenation array
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 characters
var n = []; | |
var m = []; | |
for(i=1;i<=100;i++){ | |
n.push(i); | |
if(i%10 == 0){ | |
m.push(n); | |
n = []; | |
} | |
} | |
m.push(n); | |
console.log(m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment