docs: function toNested(val, def) {
      function nest(src) {
          var dest = {};
          for (var p in src) {
              if (src.hasOwnProperty(p))
                  if (/\./g.test(p))
                      object_1.set(dest, p, src[p]);
                  else
                      dest[p] = src[p];
          }
          return dest;
      }
      return function_1.tryWrap(nest, val)(def);
  }