pairs document

This commit is contained in:
Brandon Luong
2014-10-22 14:14:56 -07:00
parent 7c32dfc7b7
commit c4733bccc5
Vendored
+7
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