Merge pull request #15731 from alexandrepetrillo/patch-2

fix Streamjs GroupingResult
This commit is contained in:
Yui 2017-04-14 08:01:25 -07:00 committed by GitHub
commit 460be51a58
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ declare namespace Stream {
}
export interface GroupingResult<T> {
[index: string]: T
[index: string]: T[]
}
export interface Iterator<T> {

View File

@ -97,7 +97,7 @@ numStream.collect({
});
var groupingResult = myStream.groupBy(lst => lst.name);
var elems = groupingResult["hello"].elems;
var length = groupingResult["hello"].length;
groupingResult = myStream.groupingBy(lst => lst.name);
groupingResult = myStream.groupBy("name");
groupingResult = myStream.groupingBy("name");