- fixed Year-Prefix Bug in MetricParser - added metric_confidence and metric_proof_text to database - added Entity-Check and Annual-Priority to LLM prompt - improved UI: added confidence traffic light and mouse-over proof tooltip - restored missing API endpoints (create, bulk, wiki-override)
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
export default function dlv(obj, key, def, p, undef) {
|
|
key = key.split ? key.split('.') : key;
|
|
for (p = 0; p < key.length; p++) {
|
|
obj = obj ? obj[key[p]] : undef;
|
|
}
|
|
return obj === undef ? def : obj;
|
|
}
|