code: function splitPath(path) {
    const delim = /[./]/;
    const result = R.pipe(
      R.split(delim),
      R.without('')
    )(path);
    return result;
  }
docs: Split a path string delimited by "." or "/".
  
  @param {String} path
  A path string to split.
  
  @return {Array}
  An array of path segments.
  
  @example
  splitPath('a/b/c/1.2.3');
  // ['a', 'b', 'c', '1', '2', '3']