MCPcopy Create free account
hub / github.com/breck7/scroll / formatValue

Function formatValue

external/.d3.js:8264–8269  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8262 }
8263
8264 function formatValue(value) {
8265 return value == null ? ""
8266 : value instanceof Date ? formatDate(value)
8267 : reFormat.test(value += "") ? "\"" + value.replace(/"/g, "\"\"") + "\""
8268 : value;
8269 }
8270
8271 return {
8272 parse: parse,

Callers 1

preformatBodyFunction · 0.85

Calls 2

formatDateFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected