code: function findRelativePath (path, index = 0) {
    let nextInPath = _.last(path)
    if (path.length <= 1) {
      return index
    }
    if (nextInPath === '') { // . for sibling
      if (index <= 0) {
        index += 1
      }
      path.pop()
      return findRelativePath(path, index)
    } else if (nextInPath === '.') { // .. for sibling of parent
      if (index <= 0) {
        index += 1
      }
      path.pop()
      return findRelativePath(path, index + 1)
    }
  
    return index
  }
docs: /* eslint-disable complexity 
  Find how many path elements we have to go back in order to find the absolute path
  
  @param {string[]} path Array of path elements. THIS ARRAY IS MUTATED BY THE FUNCTION
  @param {number} [index=0] How many elements we've already gone back
  @returns {number} How many elements back we need go