mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Merge branch 'master' of https://github.com/Skillz4Killz/Discordeno into unit-tests
This commit is contained in:
@@ -16,8 +16,8 @@ export class Collection<K, V> extends Map<K, V> {
|
||||
return [...this.values()];
|
||||
}
|
||||
|
||||
first() {
|
||||
return this.values().next().value as V;
|
||||
first(): V {
|
||||
return this.values().next().value;
|
||||
}
|
||||
|
||||
last(): V {
|
||||
@@ -75,7 +75,7 @@ export class Collection<K, V> extends Map<K, V> {
|
||||
|
||||
reduce<T>(
|
||||
callback: (accumulator: T, value: V, key: K) => T,
|
||||
initialValue?: T,
|
||||
initialValue?: T
|
||||
): T {
|
||||
let accumulator: T = initialValue!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user