MCPcopy Create free account
hub / github.com/nodejs/node / get

Method get

deps/npm/lib/utils/queryable.js:257–262  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

255
256 // return the value for a single query if found; otherwise, returns undefined
257 get (query) {
258 const obj = this.query(query)
259 if (obj) {
260 return obj[query]
261 }
262 }
263
264 // creates objects along the way for the provided `query` parameter and assigns `value` to the last property of the query chain
265 set (query, value, { force } = {}) {

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected