mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix test for crossfilter.groupAll()
This commit is contained in:
@@ -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