docs: function getPropertyByPath(source: Object, path: string | Array<string>): any {
    if (typeof path === 'string' && source.hasOwnProperty(path)) {
      return source[path];
    }
  
    const parsedPath = typeof path === 'string' ? path.split('.') : path;
    return parsedPath.reduce((previous, key) => {
      if (previous === undefined) {
        return previous;
      }
      return previous[key];
    }, source);
  }