MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / reJsValue

Function reJsValue

Rewrite-Parser.beta.js:2495–2507  ·  view source on GitHub ↗
(target, nvalue, jsname, ori, orivalue)

Source from the content-addressed store, hash-verified

2493}
2494
2495function reJsValue(target, nvalue, jsname, ori, orivalue) {
2496 let q = orivalue
2497 if (target != 'null') {
2498 for (let i = 0; i < target.length; i++) {
2499 let elem = target[i].trim()
2500 if (jsname.indexOf(elem) != -1 || ori.indexOf(elem) != -1) {
2501 q = nvalue[i]
2502 return q
2503 }
2504 } //for
2505 }
2506 return q
2507} //reJsValue
2508
2509function getQxReInfo(x, y, mark) {
2510 let noteK = isNoteK(x)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected