MCPcopy
hub / github.com/adaltas/node-csv / toKey

Function toKey

packages/csv-stringify/lib/utils/get.js:84–88  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

82};
83
84const toKey = function (value) {
85 if (typeof value === "string" || isSymbol(value)) return value;
86 const result = `${value}`;
87 return result == "0" && 1 / value == -Infinity ? "-0" : result;
88};
89
90const get = function (object, path) {
91 path = castPath(path, object);

Callers 1

getFunction · 0.85

Calls 1

isSymbolFunction · 0.85

Tested by

no test coverage detected