MCPcopy
hub / github.com/Chalarangelo/30-seconds-of-code / find

Method find

src/core/model.js:81–83  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

79 }
80
81 static find(id) {
82 return Model.indexedInstances[this.name].id.get(id);
83 }
84
85 static search(idOrSlug) {
86 const searchTerm = idOrSlug

Callers 15

searchMethod · 0.95
updateCurrentMethod · 0.80
getMetaByKeyFunction · 0.80
getMetaStringFunction · 0.80
orderedCollectionsMethod · 0.80
snippetMethod · 0.80
collectionMethod · 0.80
parentMethod · 0.80
mainMethod · 0.80
updateLogsMethod · 0.80
collectionsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected