fix last collection type for return

This commit is contained in:
Skillz
2020-08-26 16:52:05 -04:00
parent 4fbe8691bc
commit 88705c9b84
+1 -1
View File
@@ -20,7 +20,7 @@ export class Collection<K, V> extends Map<K, V> {
return this.values().next().value;
}
last() {
last(): V {
return [...this.values()][this.size - 1];
}