mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Spreadsheet: Add Range(s).first() functions
This commit is contained in:
parent
853f7092f8
commit
6c35419236
2 changed files with 22 additions and 0 deletions
|
@ -133,6 +133,10 @@ class Ranges {
|
|||
this.ranges = ranges;
|
||||
}
|
||||
|
||||
first() {
|
||||
return this.ranges[0].first();
|
||||
}
|
||||
|
||||
static from(...ranges) {
|
||||
return new Ranges(ranges);
|
||||
}
|
||||
|
@ -178,6 +182,10 @@ class Range {
|
|||
this.normalize();
|
||||
}
|
||||
|
||||
first() {
|
||||
return new Position(this.startingColumnName, this.startingRow);
|
||||
}
|
||||
|
||||
forEach(callback) {
|
||||
const ranges = [];
|
||||
let startingColumnIndex = thisSheet.column_index(this.startingColumnName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue