MCPcopy Create free account
hub / github.com/DavidWells/analytics / get

Function get

packages/analytics-plugin-google-analytics-v3/src/node.js:138–144  ·  view source on GitHub ↗
(obj, key, def, p, undef)

Source from the content-addressed store, hash-verified

136}
137
138function get(obj, key, def, p, undef) {
139 key = key.split ? key.split('.') : key
140 for (p = 0; p < key.length; p++) {
141 obj = obj ? obj[key[p]] : undef
142 }
143 return obj === undef ? def : obj
144}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected