code: function getParent(data, str) {
    const seperator = '/';
    const parts = str.substring(1).split(seperator).slice(0, -1);
    let numPart;
  
    parts.forEach((part, i) => {
      if (i === parts.length) {
        return;
      }
      numPart = +part;
      const newPart = !isNaN(numPart) ? [] : {};
      data[numPart || part] = isUndef(data[numPart || part])
        ? newPart
        : data[part];
      data = data[numPart || part];
    });
  
    return data;
  }
docs: Finds the parent object from a JSON-Pointer ("/foo/bar/baz" = "bar" is "baz" parent),
  also creates the object structure needed.
  
  @private
  @param {Object} data The root object to traverse through
  @param {String} The JSON-Pointer string to use when traversing
  @returns {Object} The parent object