MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / dstValue

Function dstValue

contributed/modClock/main.js:1271–1277  ·  view source on GitHub ↗
(source, reqVal, item)

Source from the content-addressed store, hash-verified

1269}
1270
1271function dstValue(source, reqVal, item) {
1272 let ret;
1273 if (undefined == reqVal[item])
1274 return 0;
1275 ret = source.indexOf(reqVal[item]);
1276 return (-1 === ret) ? 0 : ret;
1277}
1278
1279
1280//---------------

Callers 1

configServerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected