d3.entries accepts objects, not arrays (but returns an array).

See example usage in the docs - https://github.com/mbostock/d3/wiki/Arrays#wiki-d3_entries.
This commit is contained in:
Samuel Lai
2014-01-07 19:30:07 +11:00
parent 0bf4a78332
commit 4e6158da8b
Vendored
+1 -1
View File
@@ -212,7 +212,7 @@ declare module D3 {
*
* @param map Array of objects to get the key-value pairs from
*/
entries(map: any[]): any[];
entries(map: any): any[];
/**
* merge multiple arrays into one array
*