Sign in
apache
/
nifi-fds
/
6435e394f6c7c31d3f61a4bfc9702bde2a1659fa
/
.
/
node_modules
/
istanbul-reports
/
node_modules
/
handlebars
/
lib
/
handlebars
/
helpers
/
lookup.js
blob: dcd58517823490fc3cdc4eab524b8605c635c988 [
file
] [
log
] [
blame
]
export
default
function
(
instance
)
{
instance
.
registerHelper
(
'lookup'
,
function
(
obj
,
field
)
{
if
(!
obj
)
{
return
obj
;
}
if
(
field
===
'constructor'
&&
!
obj
.
propertyIsEnumerable
(
field
))
{
return
undefined
;
}
return
obj
[
field
];
});
}