MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / hasValue

Function hasValue

MathBox/parser.js:95–106  ·  view source on GitHub ↗
(values, index)

Source from the content-addressed store, hash-verified

93 }
94
95 function hasValue(values, index) {
96 var parts = index.split(/\./);
97 var value = values;
98 var part;
99 while (part = parts.shift()) {
100 if (!(part in value)) {
101 return false;
102 }
103 value = value[part];
104 }
105 return true;
106 }
107
108 function getValue(values, index) {
109 var parts = index.split(/\./);

Callers 1

parser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected