-
Notifications
You must be signed in to change notification settings - Fork 0
Util.Pad.get()
github-actions[bot] edited this page Sep 30, 2024
·
2 revisions
gets a page without changing the current page
type: Function
arguments:
- page
Number
let pad = new util.Pad(2, [
"a", "b", // page 1
"c", "d", // page 2
"e", "f" // page 3
]);
pad.current; // [ "a", "b" ]
pad.get(3); // [ "e", "f" ]
pad.current; // [ "a", "b" ]