(options, iteratee)
| 552 | |
| 553 | // iterate over every row in the worksheet, including maybe empty rows |
| 554 | eachRow(options, iteratee) { |
| 555 | if (!iteratee) { |
| 556 | iteratee = options; |
| 557 | options = undefined; |
| 558 | } |
| 559 | if (options && options.includeEmpty) { |
| 560 | const n = this._rows.length; |
| 561 | for (let i = 1; i <= n; i++) { |
| 562 | iteratee(this.getRow(i), i); |
| 563 | } |
| 564 | } else { |
| 565 | this._rows.forEach(row => { |
| 566 | if (row && row.hasValues) { |
| 567 | iteratee(row, row.number); |
| 568 | } |
| 569 | }); |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | // return all rows as sparse array |
| 574 | getSheetValues() { |
no test coverage detected