MCPcopy Create free account
hub / github.com/breck7/scroll / searchForConcept

Method searchForConcept

ScrollSetCLI.js:80–84  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

78 }
79
80 searchForConcept(query) {
81 if (query === undefined || query === "" || !query.toLowerCase) return
82 const { searchIndex } = this
83 return searchIndex.get(query) || searchIndex.get(query.toLowerCase()) || searchIndex.get(Utils.titleToPermalink(query))
84 }
85
86 searchForConceptCommand(query) {
87 console.log(lodash.pickBy(this.searchForConcept(query), lodash.identity))

Callers 1

Calls 2

titleToPermalinkMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected