MCPcopy Create free account
hub / github.com/parse-community/parse-server / arrayParser

Function arrayParser

src/Options/parsers.js:42–50  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

40}
41
42function arrayParser(opt) {
43 if (Array.isArray(opt)) {
44 return opt;
45 } else if (typeof opt === 'string') {
46 return opt.split(',');
47 } else {
48 throw new Error(`${opt} should be a comma separated string or an array`);
49 }
50}
51
52function moduleOrObjectParser(opt) {
53 if (typeof opt == 'object') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…