Preview: reachTemplate.js
Size: 320 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@hapi/hoek/lib/reachTemplate.js
'use strict';
const Reach = require('./reach');
const internals = {};
module.exports = function (obj, template, options) {
return template.replace(/{([^{}]+)}/g, ($0, chain) => {
const value = Reach(obj, chain, options);
return (value === undefined || value === null ? '' : value);
});
};
Directory Contents
Dirs: 0 × Files: 26