MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isFile

Function isFile

src/utils/helpers.js:229–231  ·  view source on GitHub ↗

* Checks whether given type is file or not * @param {'file'|'link'} type * @returns {Boolean}

(type)

Source from the content-addressed store, hash-verified

227 * @returns {Boolean}
228 */
229 isFile(type) {
230 return /^(file|link)$/.test(type);
231 },
232 /**
233 * Replace matching part of url to alias name by which storage is added
234 * @param {String} url

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected