code: function getProp(obj, key) {
      var path = [].concat(key);
      var val = obj;
      for (var _i = 0, path_1 = path; _i < path_1.length; _i++) {
          var pathKey = path_1[_i];
          if (val[pathKey] === undefined) {
              return undefined;
          }
          val = val[pathKey];
      }
      return val;
  }
docs: Get the specific nested property
  
  @export
  @template T Type of the property value
  @param {object} obj Source object
  @param {(string|Array<string>)} key Key value
  @returns {T} The nested property value