MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / getFieldProp

Function getFieldProp

packages/xadmin-model/src/utils.js:1–5  ·  view source on GitHub ↗
(model, field)

Source from the content-addressed store, hash-verified

1const getFieldProp = (model, field) => {
2 return field.split('.').reduce((obj, f) => {
3 return obj && obj.properties && obj.properties[f]
4 }, model)
5}
6
7export {
8 getFieldProp

Callers 3

Items.jsFile · 0.90
mappers.jsFile · 0.90
index.jsFile · 0.90

Calls 1

reduceMethod · 0.80

Tested by

no test coverage detected