dict, lazy_set: Replace num_items method with size property.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-02 22:58:50 -08:00
committed by Tim Abbott
parent da633e953e
commit 60fac80c8e
13 changed files with 43 additions and 43 deletions

View File

@@ -41,7 +41,7 @@ export class LazySet {
this.arr = undefined;
}
num_items() {
get size() {
if (this.set !== undefined) {
return this.set.size;
}