MCPcopy Create free account
hub / github.com/microsoft/SandDance / get1

Function get1

docs/app/js/sanddance-app.js:106515–106517  ·  view source on GitHub ↗
(field1)

Source from the content-addressed store, hash-verified

106513 return path.length === 1 ? get1(path[0]) : getN(path);
106514}
106515const get1 = (field1)=>function(obj) {
106516 return obj[field1];
106517 };
106518const getN = (path)=>{
106519 const len = path.length;
106520 return function(obj) {

Callers 1

getterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected