MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / objectGet

Function objectGet

src/common/object.js:10–16  ·  view source on GitHub ↗
(obj, rawKey)

Source from the content-addressed store, hash-verified

8}
9
10export function objectGet(obj, rawKey) {
11 for (const key of normalizeKeys(rawKey)) {
12 if (!obj || typeof obj !== 'object') break;
13 obj = obj[key];
14 }
15 return obj;
16}
17
18/**
19 * @param {Object} [obj = {}]

Callers 8

getOptionFunction · 0.90
setOptionFunction · 0.90
UpdateValueFunction · 0.90
requestAuthFunction · 0.90
requestAuthFunction · 0.90
compareItemsFunction · 0.90
getFunction · 0.90
hook-setting.jsFile · 0.90

Calls 1

normalizeKeysFunction · 0.85

Tested by

no test coverage detected