MCPcopy
hub / github.com/cockpit-project/cockpit / get

Function get

pkg/networkmanager/interfaces.js:508–513  ·  view source on GitHub ↗
(first, second, def)

Source from the content-addressed store, hash-verified

506
507 function settings_from_nm(settings) {
508 function get(first, second, def) {
509 if (settings[first] && settings[first][second])
510 return settings[first][second].v;
511 else
512 return def;
513 }
514
515 function get_ip(first, ip_to_text) {
516 const dns_data = self.supports_dns_data

Callers 2

get_ipFunction · 0.70
settings_from_nmFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected