edd9070dd38635efd888a36aec356d5aae4add2c525de0ec8f2ed419c1a40c485a28cb67911dbb638d2c3b873edba5aa42e22ae002f9b23027592bfc1b4df6-exec 319 B

12345678910111213141516
  1. 'use strict';
  2. const Reach = require('./reach');
  3. const internals = {};
  4. module.exports = function (obj, template, options) {
  5. return template.replace(/{([^}]+)}/g, ($0, chain) => {
  6. const value = Reach(obj, chain, options);
  7. return (value === undefined || value === null ? '' : value);
  8. });
  9. };