docs: function getByPath(
    root: any/*?Object | Error*/,
    path: Array<string>,
    fallbackValue?: any
  ): any {
    let current = root;
    for (let i = 0; i < path.length; i++) {
      const segment = path[i];
      // Use 'in' to check entire prototype chain since immutable js records
      // use prototypes
      if (current && segment in current) {
        current = current[segment];
      } else {
        return fallbackValue;
      }
    }
    return current;
  }