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

Function get

packages/csv-stringify/lib/utils/get.js:90–98  ·  view source on GitHub ↗
(object, path)

Source from the content-addressed store, hash-verified

88};
89
90const get = function (object, path) {
91 path = castPath(path, object);
92 let index = 0;
93 const length = path.length;
94 while (object != null && index < length) {
95 object = object[toKey(path[index++])];
96 }
97 return index && index === length ? object : undefined;
98};
99
100export { get };

Callers 1

stringifierFunction · 0.90

Calls 2

castPathFunction · 0.85
toKeyFunction · 0.85

Tested by

no test coverage detected