MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / getFileName

Function getFileName

src/lib/getFileName.js:10–16  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8import Parse from 'parse';
9
10export default function getFileName(name) {
11 if (name instanceof Parse.File) {
12 return getFileName(name.name());
13 }
14 const offset = name.indexOf('_') + 1;
15 return name.substr(offset);
16}

Callers 4

formatValueForCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected