Merge pull request #3021 from bluong/pairs

Pairs
This commit is contained in:
Masahiro Wakame
2014-10-27 11:34:36 +09:00

7
d3/d3.d.ts vendored
View File

@@ -233,6 +233,13 @@ declare module D3 {
*/
transpose(matrix: any[]): any[];
/**
* Creates an array containing tuples of adjacent pairs
*
* @param arr An array containing entries to pair
* @returns any[][] An array of 2-element tuples for each pair
*/
pairs(arr: any[]): any[][];
/**
* List the keys of an associative array.
*
* @param map Array of objects to get the key values from