MCPcopy Create free account
hub / github.com/neomjs/neo / parseArrayFromString

Function parseArrayFromString

src/Neo.mjs:1190–1194  ·  view source on GitHub ↗

* @param {String} str * @returns {Function} * @private

(str)

Source from the content-addressed store, hash-verified

1188 * @private
1189 */
1190function parseArrayFromString(str) {
1191 return (extractArraysRegex.exec(str) || [null]).slice(1).reduce(
1192 (fun, args) => [fun].concat(args.match(charsRegex))
1193 )
1194}
1195
1196Neo.config ??= {};
1197

Callers 1

createArrayNsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected