MCPcopy Index your code
hub / github.com/adaltas/node-csv / isKey

Function isKey

packages/csv-stringify/lib/utils/get.js:38–57  ·  view source on GitHub ↗
(value, object)

Source from the content-addressed store, hash-verified

36};
37
38const isKey = function (value, object) {
39 if (Array.isArray(value)) {
40 return false;
41 }
42 const type = typeof value;
43 if (
44 type === "number" ||
45 type === "symbol" ||
46 type === "boolean" ||
47 !value ||
48 isSymbol(value)
49 ) {
50 return true;
51 }
52 return (
53 reIsPlainProp.test(value) ||
54 !reIsDeepProp.test(value) ||
55 (object != null && value in Object(object))
56 );
57};
58
59const stringToPath = function (string) {
60 const result = [];

Callers 1

castPathFunction · 0.85

Calls 1

isSymbolFunction · 0.85

Tested by

no test coverage detected