mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Fix test for crossfilter.groupAll()
This commit is contained in:
1 parent
66f219903a
commit
9c5b75e796
1 file changed
+2
-2
@@ -25,8 +25,8 @@ var payments = crossfilter<Payment>([
|
||||
]);
|
||||
|
||||
var total_payments : number = payments.groupAll<number>().reduce(
|
||||
function(p,v) { return p+=v; },
|
||||
function(p,v) { return p-=v; },
|
||||
function(p,v) { return p+=v.total; },
|
||||
function(p,v) { return p-=v.total; },
|
||||
function() { return 0; } ).value();
|
||||
|
||||
var paymentsByTotal = payments.dimension((d) => d.total);
|
||||
|
||||
Reference in new issue
Block a user