code: function fromOffsetPath(ancestor, offsets) {
    let current = ancestor;
    for (let i = 0, len = offsets.length; i < len; i++) {
      if (current.childNodes.length <= offsets[i]) {
        current = current.childNodes[current.childNodes.length - 1];
      } else {
        current = current.childNodes[offsets[i]];
      }
    }
    return current;
  }
docs: @method fromOffsetPath
  
  return element from offsetPath(array of offset)
  
  @param {Node} ancestor - ancestor node
  @param {array} offsets - offsetPath