|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- "use strict";
-
-
-
-
-
- const DecorativeCursor = require("./decorative-cursor");
-
-
-
-
-
-
- module.exports = class SkipCursor extends DecorativeCursor {
-
-
-
- constructor(cursor, count) {
- super(cursor);
- this.count = count;
- }
-
-
- moveNext() {
- while (this.count > 0) {
- this.count -= 1;
- if (!super.moveNext()) {
- return false;
- }
- }
- return super.moveNext();
- }
- };
|