Merge pull request #3020 from bluong/minMax

Adding index arg to accessor for min/max.  Letting args be optional
This commit is contained in:
Masahiro Wakame
2014-10-27 11:34:02 +09:00
Vendored
+2 -2
View File
@@ -89,7 +89,7 @@ declare module D3 {
* @param arr Array to search
* @param map Accsessor function
*/
min<T, U>(arr: T[], map: (v: T) => U): U;
min<T, U>(arr: T[], map: (v?: T, i?: number) => U): U;
/**
* Find the minimum value in an array
*
@@ -102,7 +102,7 @@ declare module D3 {
* @param arr Array to search
* @param map Accsessor function
*/
max<T, U>(arr: T[], map: (v: T) => U): U;
max<T, U>(arr: T[], map: (v?: T, i?: number) => U): U;
/**
* Find the maximum value in an array
*