aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.ts b/src/lib.ts
index da18d94..eef06cd 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -584,7 +584,7 @@ export class DateRangeTree {
const endDate = nextRange != null ? nextRange[1] : range[1];
this.tree.insert([startDate, endDate]);
}
- has(range: DateRange): boolean {
+ contains(range: DateRange): boolean {
const itr = this.tree.lowerBound([range[0], new YearDate()]);
let r = itr.data();
if (r == null){