MCPcopy Create free account
hub / github.com/idank/explainshell / dsv

Function dsv

explainshell/web/static/js/d3.v3.js:1691–1698  ·  view source on GitHub ↗
(url, row, callback)

Source from the content-addressed store, hash-verified

1689 function d3_dsv(delimiter, mimeType) {
1690 var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0);
1691 function dsv(url, row, callback) {
1692 if (arguments.length < 3) callback = row, row = null;
1693 var xhr = d3.xhr(url, mimeType, callback);
1694 xhr.row = function(_) {
1695 return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row;
1696 };
1697 return xhr.row(row);
1698 }
1699 function response(request) {
1700 return dsv.parse(request.responseText);
1701 }

Callers

nothing calls this directly

Calls 1

typedResponseFunction · 0.85

Tested by

no test coverage detected