MCPcopy
hub / github.com/strongloop/loopback / getPropValue

Function getPropValue

test/replication.test.js:1899–1903  ·  view source on GitHub ↗
(obj, name)

Source from the content-addressed store, hash-verified

1897 }
1898
1899 function getPropValue(obj, name) {
1900 return Array.isArray(obj) ?
1901 obj.map(function(it) { return getPropValue(it, name); }) :
1902 obj[name];
1903 }
1904
1905 function getIds(list) {
1906 return getPropValue(list, 'id');

Callers 2

getIdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…