]> git.saurik.com Git - logizomai.git/commitdiff
Expose .keys() from ResourceMap for Iterator<Key>.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Oct 2017 06:37:38 +0000 (23:37 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Oct 2017 06:37:38 +0000 (23:37 -0700)
lib/index.ts

index e2f70228a630e2bdf62ba3069e2f9fbfc590ff28..4b875d4c0e81a16cda23041f5a65091fc9564f9e 100644 (file)
@@ -264,6 +264,10 @@ export class ResourceMap<Key, Value extends Resource> extends Resource {
         return deleted;
     }
 
+    public keys(): IterableIterator<Key> {
+        return this.map.keys();
+    }
+
     public values(): IterableIterator<Value> {
         return this.map.values();
     }