Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
getFieldProp = (model, field) => {
2
return
field.split(
'.'
).reduce((obj, f) => {
3
return
obj && obj.properties && obj.properties[f]
4
}, model)
5
}
6
7
export
{
8
getFieldProp
Callers
3
Items.js
File · 0.90
mappers.js
File · 0.90
index.js
File · 0.90
Calls
1
reduce
Method · 0.80
Tested by
no test coverage detected