MCPcopy Create free account
hub / github.com/github/docs / getFilenameByValue

Function getFilenameByValue

tests/content/site-data-references.js:115–117  ·  view source on GitHub ↗
(object, value)

Source from the content-addressed store, hash-verified

113})
114
115function getFilenameByValue(object, value) {
116 return Object.keys(object).find((key) => object[key] === value)
117}
118
119// if path exists, assume it's a directory; otherwise, assume a YML extension
120async function getFilepath(filepath) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected